.site-container {
  width: min(var(--dentalora-container), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  background: #fff;
}

.site-header .site-container {
  width: min(1240px, calc(100% - 2rem));
}

.header-topbar {
  background: #0b3655;
  color: #d4e8f6;
  font-size: 0.79rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-topbar-inner {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.header-topbar-left,
.header-topbar-right {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.topbar-icon {
  display: inline-flex;
  color: #27a0e0;
}

.topbar-icon svg {
  width: 11px;
  height: 11px;
}

.topbar-item a {
  color: #38b9ff;
  text-decoration: none;
}

.topbar-item a:hover,
.topbar-item a:focus {
  color: #8fd8ff;
}

.topbar-emergency .emergency-label {
  color: #49bdfd;
  font-weight: 600;
}

.topbar-social {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 0.8rem;
}

.topbar-social-link {
  color: #d6ebf8;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.topbar-social-link svg {
  width: 12px;
  height: 12px;
}

.topbar-social-link:hover,
.topbar-social-link:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none;
}

.site-header-main {
  background: #ffffff;
  border-bottom: 1px solid #d9e4ee;
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 2rem;
  min-height: 76px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-width: max-content;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  max-height: 44px;
  width: auto;
}

.brand-mark {
  width: 41px;
  height: 41px;
  border-radius: 11px;
  background: linear-gradient(145deg, #1f9bff, #0777e5);
  box-shadow: 0 8px 14px rgba(12, 128, 229, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark-grid {
  width: 19px;
  height: 19px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.brand-mark-grid span {
  border: 1.8px solid #fff;
  border-radius: 2px;
}

.site-branding-text {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.18rem;
}

.site-title {
  margin: 0;
  font-size: clamp(1.72rem, 2.15vw, 2.02rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-title a {
  color: #102f47;
  text-decoration: none;
}

.site-title-dot {
  color: #1e8ef8;
  font-size: clamp(1.72rem, 2.15vw, 2.02rem);
  line-height: 0.9;
}

.site-description {
  display: none;
}

.button,
button,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.button-primary,
button,
input[type="submit"] {
  background: var(--dentalora-primary);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus,
button:hover,
button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--dentalora-primary-dark);
  color: #fff;
  text-decoration: none;
}

.button-outline {
  border-color: var(--dentalora-primary);
  color: var(--dentalora-primary);
  background: transparent;
}

.button-outline:hover,
.button-outline:focus {
  background: var(--dentalora-surface-soft);
}

.main-navigation {
  justify-self: center;
}

.menu-toggle {
  display: none;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation > div > ul,
.main-navigation > ul {
  display: flex;
  gap: 1.95rem;
  align-items: center;
}

.main-navigation a {
  color: #173750;
  font-weight: 600;
  font-size: 0.99rem;
  padding: 1.65rem 0;
  position: relative;
  text-decoration: none;
}

.main-navigation a::after {
  content: "";
  width: 0;
  height: 2px;
  background: #1e8ef8;
  position: absolute;
  left: 0;
  bottom: 0;
  transition: width 0.2s ease;
}

.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation a:hover,
.main-navigation a:focus {
  color: #1d89ef;
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current-menu-ancestor > a::after,
.main-navigation a:hover::after,
.main-navigation a:focus::after {
  width: 100%;
}

.main-navigation .menu-item-has-children {
  position: relative;
}

.main-navigation .sub-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  min-width: 235px;
  background: #fff;
  border: 1px solid #d7e5ef;
  border-radius: 10px;
  padding: 0.65rem;
  display: none;
  box-shadow: 0 12px 30px rgba(5, 37, 62, 0.1);
}

.main-navigation .sub-menu a {
  padding: 0.45rem 0.55rem;
}

.main-navigation .sub-menu a::after {
  display: none;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
}

.header-search-toggle {
  border: 0;
  background: transparent;
  color: #17364f;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-search-toggle svg {
  width: 18px;
  height: 18px;
}

.header-search-toggle:hover,
.header-search-toggle:focus {
  background: #ecf5fd;
  color: #1977d7;
}

.header-search-form {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 280px;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid #d7e5ef;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 43, 70, 0.14);
  display: none;
  gap: 0.4rem;
}

.header-actions.search-open .header-search-form {
  display: flex;
}

.header-search-form input[type="search"] {
  border-radius: 8px;
  border: 1px solid #c8d9e7;
  padding: 0.5rem 0.65rem;
}

.header-search-form button {
  padding: 0.55rem 0.9rem;
}

.header-cta-button {
  border-radius: 11px;
  padding: 0.75rem 1.62rem;
  background: #1f8ef6;
  box-shadow: 0 8px 18px rgba(19, 124, 225, 0.22);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1;
  white-space: nowrap;
}

.header-cta-button:hover,
.header-cta-button:focus {
  background: #117ee6;
}

.site-content {
  padding: 2.25rem 0;
}

.site-main-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
}

.no-sidebar .site-main-wrapper {
  grid-template-columns: minmax(0, 1fr);
}

.site-main {
  min-width: 0;
}

.full-width-main {
  max-width: 900px;
  margin-inline: auto;
}

.entry-header,
.archive-header,
.page-header {
  margin-bottom: 1rem;
}

.entry-title,
.archive-title,
.page-title {
  margin: 0;
  line-height: 1.25;
}

.entry-meta {
  color: var(--dentalora-muted);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.post-card,
.page-entry,
.single-entry,
.attachment-entry {
  padding: 1.25rem;
  border: 1px solid var(--dentalora-border);
  border-radius: var(--dentalora-radius);
  margin-bottom: 1.5rem;
  background: #fff;
}

.post-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--dentalora-radius);
}

.post-grid .post-card {
  margin-bottom: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.widget-area .widget {
  border: 1px solid var(--dentalora-border);
  border-radius: var(--dentalora-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.widget-title {
  margin-top: 0;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--dentalora-border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.search-submit {
  white-space: nowrap;
}

.front-hero {
  background: linear-gradient(135deg, #e8f5f3 0%, #f4fbfa 45%, #fff 100%);
  border-bottom: 1px solid var(--dentalora-border);
  margin-top: -2.25rem;
  margin-bottom: 2rem;
  padding: 4rem 0;
}

.front-hero-kicker {
  color: var(--dentalora-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.front-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 0.75rem;
}

.front-hero p {
  max-width: 700px;
}

.front-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.front-latest-posts {
  margin-top: 2rem;
}

.contact-template-box {
  margin-top: 1.5rem;
  border: 1px solid var(--dentalora-border);
  border-radius: var(--dentalora-radius);
  padding: 1rem;
  background: var(--dentalora-surface-soft);
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--dentalora-border);
  background: #f9fcfc;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 2rem 0;
}

.site-info-wrap {
  border-top: 1px solid var(--dentalora-border);
}

.site-info {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-info p {
  margin: 0;
  color: var(--dentalora-muted);
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .comment-body {
  border: 1px solid var(--dentalora-border);
  border-radius: var(--dentalora-radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-topbar-inner {
    min-height: auto;
    padding: 0.45rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-topbar-left,
  .header-topbar-right {
    width: 100%;
    justify-content: flex-start;
    gap: 0.85rem 1.2rem;
  }

  .topbar-social {
    padding-left: 0.75rem;
  }

  .site-header-inner {
    grid-template-columns: 1fr auto;
    min-height: auto;
    row-gap: 0.7rem;
    padding: 0.72rem 0;
  }

  .main-navigation {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .menu-toggle {
    display: inline-flex;
    margin: 0.2rem 0;
  }

  .main-navigation > div > ul,
  .main-navigation > ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.45rem;
    padding: 0.85rem;
    border: 1px solid var(--dentalora-border);
    border-radius: var(--dentalora-radius);
    background: #fff;
    margin-top: 0.5rem;
  }

  .main-navigation.toggled > div > ul,
  .main-navigation.toggled > ul {
    display: flex;
  }

  .main-navigation a {
    padding: 0.35rem 0;
  }

  .main-navigation a::after {
    bottom: -3px;
  }

  .main-navigation .sub-menu {
    position: static;
    width: 100%;
    border: 0;
    box-shadow: none;
    padding: 0.45rem 0 0.4rem 0.9rem;
  }

  .header-search-form {
    right: 0;
    top: calc(100% + 8px);
  }

  .site-main-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .widget-area {
    margin-top: 0.75rem;
  }
}

@media (max-width: 860px) {
  .topbar-item {
    width: 100%;
    line-height: 1.35;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-search-form {
    position: static;
    width: min(360px, 100%);
  }

  .post-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-widgets {
    grid-template-columns: minmax(0, 1fr);
  }
}
