:root {
  --aba-green: #004D3B;
  --aba-green-dark: #003B2F;
  --aba-green-soft: #E7F2EE;
  --aba-gold: #D99A2B;
  --aba-gold-light: #F2B84B;
  --aba-maroon: #4A1718;
  --aba-maroon-dark: #321011;
  --aba-ivory: #FAF7EF;
  --aba-white: #FFFFFF;
  --aba-text: #1F2937;
  --aba-muted: #6B7280;
  --aba-border: #E5E7EB;
  --aba-shadow: 0 22px 55px rgba(0, 59, 47, .14);
  --aba-radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--aba-text);
  background: var(--aba-ivory);
  font-family: Inter, Roboto, "Segoe UI", Arial, "Noto Sans Arabic", sans-serif;
  letter-spacing: 0;
}

.topbar {
  border: 0 !important;
  background: var(--aba-green-dark) !important;
  color: rgba(255, 255, 255, .78) !important;
}

.topbar-inner {
  min-height: 38px;
  font-size: 12px;
}

.site-header {
  position: sticky !important;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 154, 43, .35) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 16px 40px rgba(0, 59, 47, .08) !important;
  backdrop-filter: blur(18px);
}

.site-header .nav {
  min-height: 78px;
}

.brand {
  gap: 12px !important;
  color: var(--aba-green-dark) !important;
  text-decoration: none !important;
}

.brand img,
.footer-logo,
.site-footer .footer-grid > div:first-child > img {
  display: inline-block !important;
  object-fit: contain;
}

.brand::before,
.site-footer .footer-grid > div:first-child::before {
  content: none !important;
  display: none !important;
}

.brand > span {
  display: grid;
  gap: 2px;
  color: var(--aba-green-dark) !important;
  font-weight: 900 !important;
}

.brand > span small {
  color: var(--aba-muted) !important;
  font-weight: 700;
}

.site-header .links a,
.language-switch a {
  color: var(--aba-green-dark) !important;
  font-weight: 750;
}

.site-header .links a:hover,
.language-switch a:hover {
  color: var(--aba-maroon) !important;
}

.language-switch .is-active,
.site-header .links .btn,
.btn-primary {
  border-color: var(--aba-green) !important;
  background: var(--aba-green) !important;
  color: var(--aba-white) !important;
  box-shadow: 0 12px 26px rgba(0, 77, 59, .18) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--aba-gold) !important;
  background: var(--aba-gold) !important;
  color: var(--aba-green-dark) !important;
}

.btn-secondary,
.btn-outline,
.site-header .links a:not(.btn) {
  border-color: rgba(0, 77, 59, .2) !important;
}

.btn-secondary,
.btn-outline {
  background: rgba(255, 255, 255, .94) !important;
  color: var(--aba-green-dark) !important;
}

.btn-secondary:hover,
.btn-outline:hover {
  border-color: var(--aba-gold) !important;
  background: var(--aba-ivory) !important;
  color: var(--aba-maroon) !important;
}

.mobile-menu-button {
  border: 1px solid rgba(0, 77, 59, .18) !important;
  border-radius: 8px !important;
  background: var(--aba-white) !important;
  color: var(--aba-green-dark) !important;
}

.mobile-menu-sheet {
  border: 1px solid rgba(217, 154, 43, .32) !important;
  border-radius: 8px !important;
  background: var(--aba-white) !important;
}

.mobile-menu-section strong,
.mobile-menu-grid a,
.mobile-menu-close {
  color: var(--aba-green-dark) !important;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, calc(100vh - 72px));
  border-bottom: 1px solid rgba(217, 154, 43, .28);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 72px),
    linear-gradient(132deg, var(--aba-green-dark) 0%, var(--aba-green) 48%, var(--aba-maroon) 100%) !important;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 24px;
  pointer-events: none;
  border: 1px solid rgba(217, 154, 43, .46);
  border-radius: 8px;
}

.hero::after,
.page-hero::after {
  background:
    linear-gradient(115deg, rgba(0, 59, 47, .78), rgba(0, 77, 59, .52) 42%, rgba(74, 23, 24, .64)),
    linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .16)) !important;
}

.hero-inner,
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px !important;
  padding-top: 108px !important;
  padding-bottom: 112px !important;
}

.hero .eyebrow,
.page-hero .eyebrow,
.kicker,
.eyebrow {
  color: var(--aba-gold-light) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.hero h1,
.page-hero h1,
.page-hero h2 {
  max-width: 860px;
  color: var(--aba-white) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

.hero-lead,
.hero-lead em,
.page-hero .hero-lead,
.page-hero .hero-lead em {
  max-width: 780px;
  color: rgba(255, 255, 255, .9) !important;
}

.hero-actions {
  gap: 12px !important;
}

.hero-trust,
.hero-tags {
  gap: 10px !important;
}

.hero-trust .trust-pill,
.hero-tags span {
  border: 1px solid rgba(242, 184, 75, .38) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .1) !important;
  color: rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(12px);
}

.hero .share-row span,
.page-hero .share-row span {
  color: rgba(255, 255, 255, .74) !important;
}

.hero .share-row a,
.page-hero .share-row a {
  border-color: rgba(242, 184, 75, .38) !important;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--aba-green-dark) !important;
}

.section {
  background: var(--aba-ivory) !important;
}

.section.white {
  background: var(--aba-white) !important;
}

.section-title,
.section-head,
.section-heading {
  color: var(--aba-text);
}

.section h2,
.section h3,
.body-copy h2,
.body-copy h3,
.content-card h2,
.content-card h3 {
  color: var(--aba-green-dark) !important;
  letter-spacing: 0 !important;
}

.service-card,
.feature-card,
.flow-step,
.option-card,
.faq-card,
.testimonial-card,
.stat-card,
.content-card,
.article-card,
.tool-card,
.lookup-panel,
.certificate-preview,
.cta-box,
.location-grid,
.program-card,
.resource-card {
  border: 1px solid rgba(0, 77, 59, .12) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 16px 38px rgba(0, 59, 47, .08) !important;
}

.service-card:hover,
.feature-card:hover,
.option-card:hover,
.program-card:hover,
.article-card:hover {
  border-color: rgba(217, 154, 43, .56) !important;
  box-shadow: 0 24px 50px rgba(0, 59, 47, .12) !important;
  transform: translateY(-2px);
}

.service-icon,
.feature-icon,
.flow-number,
.option-icon,
.stat-icon,
.portal-step-number {
  border-radius: 8px !important;
  background: var(--aba-green-soft) !important;
  color: var(--aba-green) !important;
}

.stats-card strong,
.stat-value,
.metric-value,
.service-card h3,
.feature-card h3,
.option-card strong,
.faq-card summary {
  color: var(--aba-green-dark) !important;
}

.certificate-layout {
  align-items: stretch !important;
}

.certificate-preview {
  position: relative;
  display: block !important;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 154, 43, .52) !important;
  background: var(--aba-white) !important;
}

.certificate-preview img {
  display: block !important;
  width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 6px !important;
}

.certificate-preview::before,
.certificate-preview::after {
  content: none !important;
  display: none !important;
}

.lookup-panel {
  border-top: 5px solid var(--aba-gold) !important;
}

.certificate-lookup-form input,
.lookup-captcha input,
.form-control,
.form-select {
  border-color: rgba(0, 77, 59, .18) !important;
  border-radius: 8px !important;
  color: var(--aba-text) !important;
}

.certificate-lookup-form input:focus,
.lookup-captcha input:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--aba-gold) !important;
  box-shadow: 0 0 0 4px rgba(217, 154, 43, .18) !important;
}

.lookup-captcha {
  border-color: rgba(217, 154, 43, .34) !important;
  border-radius: 8px !important;
  background: var(--aba-ivory) !important;
}

.lookup-result-card {
  border: 1px solid rgba(0, 77, 59, .15) !important;
  border-radius: 8px !important;
  background: var(--aba-white) !important;
}

.lookup-result-card.not-found {
  border-color: rgba(74, 23, 24, .28) !important;
  background: rgba(74, 23, 24, .05) !important;
}

.lookup-data {
  gap: 10px !important;
}

.lookup-data > div {
  border: 1px solid var(--aba-border);
  border-radius: 8px;
  background: var(--aba-ivory);
}

.cta {
  background: linear-gradient(135deg, var(--aba-green-dark), var(--aba-maroon)) !important;
}

.cta-box {
  border-color: rgba(242, 184, 75, .42) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
    transparent !important;
  color: var(--aba-white) !important;
}

.cta-box .cta-title,
.cta-box p,
.cta-box .eyebrow {
  color: var(--aba-white) !important;
}

.site-footer {
  border-top: 5px solid var(--aba-gold) !important;
  background:
    linear-gradient(135deg, var(--aba-green-dark), var(--aba-maroon-dark)) !important;
  color: rgba(255, 255, 255, .78) !important;
}

.site-footer .footer-grid > div:first-child::before {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .94);
}

.site-footer strong,
.footer-grid strong {
  color: var(--aba-white) !important;
}

.footer-links a {
  color: rgba(255, 255, 255, .76) !important;
}

.footer-links a:hover {
  color: var(--aba-gold-light) !important;
}

.footer-bottom {
  border-color: rgba(242, 184, 75, .18) !important;
  color: rgba(255, 255, 255, .64) !important;
}

.cs-widget-button,
.chat-toggle,
[data-cs-open] {
  background: var(--aba-green) !important;
  color: var(--aba-white) !important;
}

@media (max-width: 991.98px) {
  .site-header .nav {
    min-height: 68px;
  }

  .hero-inner,
  .page-hero-inner {
    padding-top: 82px !important;
    padding-bottom: 78px !important;
  }

  .hero::before,
  .page-hero::before {
    inset: 14px;
  }
}

@media (max-width: 767.98px) {
  .brand::before {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 12px;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .hero h1,
  .page-hero h1,
  .page-hero h2 {
    font-size: clamp(28px, 10vw, 42px) !important;
  }

  .hero-actions .btn,
  .page-hero .btn,
  .certificate-lookup-form .btn {
    width: 100%;
  }

  .certificate-preview {
    min-height: 300px;
  }

}

/* Layout-only public navigation refresh. Keeps existing links and behavior intact. */
@media (min-width: 1024px) {
  .topbar {
    background:
      linear-gradient(90deg, var(--aba-green-dark), var(--aba-maroon)) !important;
  }

  .topbar-inner {
    min-height: 32px !important;
  }

  .site-header {
    padding: 10px 0 !important;
    border-bottom: 0 !important;
    background: rgba(250, 247, 239, .78) !important;
    box-shadow: none !important;
  }

  .site-header .nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 70px !important;
    align-items: center;
    padding: 9px 12px !important;
    border: 1px solid rgba(0, 77, 59, .12);
    border-top: 3px solid var(--aba-gold);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 38px rgba(0, 59, 47, .1);
  }

  .site-header .brand {
    flex: 0 0 auto;
    min-width: 0;
    max-width: min(280px, 100%);
    padding-right: 12px;
    border-right: 1px solid rgba(217, 154, 43, .22);
  }

  .site-header .brand > span {
    max-width: 190px;
    line-height: 1.1;
  }

  .site-header .nav-links {
    display: flex !important;
    flex: 1 1 620px;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
    justify-content: end;
    min-width: 0;
    padding: 5px;
    border: 1px solid rgba(0, 77, 59, .08);
    border-radius: 8px;
    background: rgba(250, 247, 239, .7);
  }

  .site-header .nav-links a:not(.btn),
  .site-header .desktop-lang a {
    min-height: 36px;
    padding: 8px 8px !important;
    border: 1px solid transparent !important;
    border-radius: 7px !important;
    color: var(--aba-green-dark) !important;
    font-size: 12px !important;
    line-height: 1.1;
    white-space: nowrap;
  }

  .site-header .nav-links a:not(.btn):hover,
  .site-header .nav-links a:not(.btn):focus {
    border-color: rgba(217, 154, 43, .42) !important;
    background: #fff !important;
    color: var(--aba-maroon) !important;
  }

  .site-header .nav-links .btn {
    min-height: 38px;
    padding: 9px 11px !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  .site-header .desktop-lang {
    flex: 0 0 auto;
  }

  html[dir="rtl"] .site-header .brand {
    padding-right: 0;
    padding-left: 12px;
    border-right: 0;
    border-left: 1px solid rgba(217, 154, 43, .22);
  }
}

@media (min-width: 1024px) and (max-width: 1220px) {
  .site-header .brand {
    max-width: 100%;
  }

  .site-header .nav-links {
    flex-basis: 100%;
    justify-content: start;
    overflow: visible;
  }

  html[dir="rtl"] .site-header .nav-links {
    justify-content: end;
  }
}

@media (max-width: 1023.98px) {
  .site-header {
    border-bottom-color: rgba(217, 154, 43, .24) !important;
  }

  .site-header .nav {
    min-height: 66px !important;
    border-bottom: 3px solid rgba(217, 154, 43, .78);
  }

  .mobile-menu-trigger {
    border-radius: 8px !important;
    border-color: rgba(0, 77, 59, .14) !important;
    background: var(--aba-ivory) !important;
    color: var(--aba-green-dark) !important;
  }

  .mobile-menu-sheet {
    border-radius: 8px 8px 0 0 !important;
    border-top: 5px solid var(--aba-gold) !important;
  }

  .mobile-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .mobile-menu-link {
    border-radius: 8px !important;
    background: rgba(250, 247, 239, .9) !important;
  }
}

@media (max-width: 480px) {
  .mobile-menu-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ABA Layout V2: desktop public site becomes an institutional rail, not a template header. */
@media (min-width: 1180px) {
  body {
    background:
      linear-gradient(90deg, rgba(0, 77, 59, .035) 1px, transparent 1px) 0 0 / 52px 52px,
      var(--aba-ivory) !important;
  }

  .topbar,
  main#main-content,
  .site-footer,
  .cs-widget-button,
  .chat-toggle,
  [data-cs-open] {
    margin-left: 292px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 46;
    border-bottom: 1px solid rgba(217, 154, 43, .18) !important;
  }

  .topbar-inner {
    justify-content: flex-end !important;
    gap: 26px;
    min-height: 34px !important;
  }

  .site-header {
    position: fixed !important;
    z-index: 60;
    inset: 0 auto 0 0;
    width: 292px;
    padding: 16px !important;
    border-right: 1px solid rgba(217, 154, 43, .38) !important;
    border-bottom: 0 !important;
    background:
      linear-gradient(180deg, rgba(0, 77, 59, .98), rgba(0, 59, 47, .98) 54%, rgba(74, 23, 24, .98)) !important;
    box-shadow: 18px 0 45px rgba(0, 59, 47, .14) !important;
  }

  .site-header::before {
    content: "Akademi Bahasa Asing";
    display: block;
    margin-bottom: 14px;
    padding: 8px 0 12px;
    border-bottom: 1px solid rgba(242, 184, 75, .24);
    color: rgba(255, 255, 255, .62);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .site-header .nav {
    display: flex !important;
    width: 100%;
    height: calc(100dvh - 32px);
    min-height: 0 !important;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header .brand {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px !important;
    max-width: 100%;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(242, 184, 75, .2);
    color: #fff !important;
  }

  .brand::before {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-color: rgba(242, 184, 75, .92);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 28px rgba(0, 0, 0, .18);
    font-size: 14px;
  }

  .site-header .brand > span {
    max-width: 100%;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1.12;
  }

  .site-header .brand > span small {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .68) !important;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
  }

  .site-header .nav-links {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 7px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .site-header .nav-links a:not(.btn),
  .site-header .desktop-lang a {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px !important;
    border: 1px solid rgba(255, 255, 255, .1) !important;
    border-left: 3px solid transparent !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .055) !important;
    color: rgba(255, 255, 255, .86) !important;
    font-size: 13px !important;
    font-weight: 800;
  }

  .site-header .nav-links a:not(.btn)::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: rgba(242, 184, 75, .72);
  }

  .site-header .nav-links a:not(.btn):hover,
  .site-header .nav-links a:not(.btn):focus {
    border-color: rgba(242, 184, 75, .32) !important;
    border-left-color: var(--aba-gold) !important;
    background: rgba(255, 255, 255, .11) !important;
    color: #fff !important;
  }

  .site-header .desktop-lang {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 8px 0;
    padding: 6px;
    border: 1px solid rgba(242, 184, 75, .24);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
  }

  .site-header .desktop-lang a {
    min-height: 34px;
    justify-content: center;
    padding: 8px 6px !important;
    border: 0 !important;
    border-left: 0 !important;
    background: transparent !important;
    font-size: 12px !important;
  }

  .site-header .desktop-lang a::after {
    display: none;
  }

  .site-header .desktop-lang .is-active,
  .site-header .desktop-lang a.is-active {
    background: var(--aba-gold) !important;
    color: var(--aba-green-dark) !important;
  }

  .site-header .nav-links .btn {
    margin-top: auto;
    min-height: 48px;
    justify-content: center;
    border: 1px solid rgba(242, 184, 75, .72) !important;
    border-radius: 8px !important;
    background: var(--aba-gold) !important;
    color: var(--aba-green-dark) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .18) !important;
    font-size: 14px !important;
  }

  .mobile-lang-safe,
  .mobile-menu {
    display: none !important;
  }

  .hero,
  .page-hero {
    border-bottom: 1px solid rgba(217, 154, 43, .18);
  }

  .hero {
    min-height: min(620px, calc(100dvh - 34px));
  }

  .page-hero {
    min-height: min(560px, calc(100dvh - 34px));
  }

  .hero-inner,
  .page-hero-inner {
    max-width: 1120px;
    margin-left: 0;
    padding-left: clamp(34px, 5vw, 82px) !important;
    padding-top: clamp(92px, 11vh, 140px) !important;
    padding-bottom: 90px !important;
  }

  .hero-inner::before,
  .page-hero-inner::before {
    content: "Official Test Service";
    display: inline-flex;
    margin-bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(242, 184, 75, .42);
    border-radius: 8px;
    background: rgba(250, 247, 239, .08);
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .hero h1,
  .page-hero h1,
  .page-hero h2 {
    max-width: 820px;
  }

  .feature-strip {
    margin-top: 0 !important;
    background: var(--aba-green-dark) !important;
  }

  .feature-strip .container {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
    border: 1px solid rgba(217, 154, 43, .26);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, .98);
  }

  .feature-strip .feature-card {
    border-width: 0 1px 0 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .feature-strip .feature-card:last-child {
    border-right: 0 !important;
  }

  html[dir="rtl"] .topbar,
  html[dir="rtl"] main#main-content,
  html[dir="rtl"] .site-footer,
  html[dir="rtl"] .cs-widget-button,
  html[dir="rtl"] .chat-toggle,
  html[dir="rtl"] [data-cs-open] {
    margin-right: 292px;
    margin-left: 0;
  }

  html[dir="rtl"] .site-header {
    inset: 0 0 0 auto;
    border-right: 0 !important;
    border-left: 1px solid rgba(217, 154, 43, .38) !important;
  }

  html[dir="rtl"] .site-header .brand {
    grid-template-columns: minmax(0, 1fr) 58px;
    padding-left: 0;
    border-left: 0;
  }

  html[dir="rtl"] .site-header .nav-links a:not(.btn) {
    border-right: 3px solid transparent !important;
    border-left: 1px solid rgba(255, 255, 255, .1) !important;
  }

  html[dir="rtl"] .site-header .nav-links a:not(.btn):hover,
  html[dir="rtl"] .site-header .nav-links a:not(.btn):focus {
    border-right-color: var(--aba-gold) !important;
  }

  html[dir="rtl"] .hero-inner,
  html[dir="rtl"] .page-hero-inner {
    padding-right: clamp(34px, 5vw, 82px) !important;
    padding-left: 12px !important;
  }
}

/* Settings-driven logo safety pass. Public pages must display the logo uploaded in admin settings. */
.brand img,
.mobile-menu-brand img,
.site-footer .footer-grid > div:first-child > img {
  display: inline-block !important;
  object-fit: contain;
}

.site-header .brand img {
  width: 58px !important;
  height: 58px !important;
  max-height: 58px !important;
  padding: 5px;
  border: 1px solid rgba(217, 154, 43, .82);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .14);
}

.brand::before,
.site-footer .footer-grid > div:first-child::before {
  content: none !important;
  display: none !important;
}

.site-footer .footer-grid > div:first-child > img {
  width: 74px;
  height: auto;
  max-height: 74px;
  margin-bottom: 14px;
}

/* Final mobile guard for public article pages. */
@media (max-width: 767.98px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body .content-layout {
    display: flex !important;
    flex-direction: column !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 22px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body .content-layout > .article-card {
    order: 1 !important;
  }

  body .content-layout > .side-stack {
    order: 2 !important;
    position: static !important;
  }

  body .content-layout .article-card,
  body .content-layout .side-stack,
  body .content-layout .side-card,
  body .content-layout .faq-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
  }

  body .page-hero h1,
  body .page-hero h2 {
    width: min(100%, 340px) !important;
    max-width: min(100%, 340px) !important;
    font-size: clamp(27px, 8.4vw, 34px) !important;
    line-height: 1.08 !important;
  }

  body .page-hero .hero-lead,
  body .page-hero .hero-actions,
  body .page-hero .share-row,
  body .page-hero .meta-row {
    width: min(100%, 340px) !important;
    max-width: min(100%, 340px) !important;
  }

  body .site-header .brand small {
    max-width: 190px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
}

@media (max-width: 420px) {
  body .site-header .brand small {
    max-width: 170px !important;
  }
}
