/* FAQ page: editorial ivory layout with searchable, topic based answers. */
.faq-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #fbf6ed;
    border-bottom: 1px solid #eadbc3;
}

.faq-hero::before,
.faq-browser::before,
.faq-contact-strip::before,
.faq-contact-strip::after {
    position: absolute;
    z-index: -1;
    width: 190px;
    height: 360px;
    background: url("/assets/heritage-flourish.svg") center / contain no-repeat;
    opacity: .25;
    content: "";
    pointer-events: none;
}

.faq-hero::before { top: 5px; left: -116px; }
.faq-hero-inner {
    position: relative;
    display: grid;
    width: min(1200px, calc(100% - 40px));
    min-height: 366px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    margin: 0 auto;
    padding: 13px 0 17px;
}

.faq-hero-copy {
    position: relative;
    z-index: 2;
    width: min(58%, 600px);
    align-self: center;
    padding: 0 0 15px;
}

.faq-breadcrumb { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: #665b54; font: 400 14px/1.5 var(--font-body), sans-serif; }
.faq-breadcrumb a { color: inherit; text-decoration: none; }
.faq-breadcrumb a:hover { color: #941923; text-decoration: underline; text-underline-offset: 3px; }
.faq-breadcrumb span[aria-hidden="true"] { color: #b87b44; }
body:not(.admin) .faq-hero .eyebrow,
body:not(.admin) .faq-contact-strip .eyebrow { display: inline-block; margin: 0 0 5px; color: #975e32 !important; font: 600 14px/1.5 var(--font-body), sans-serif !important; letter-spacing: .16em !important; }
body:not(.admin) .faq-hero h1 {
    max-width: 18ch;
    margin: 3px 0 8px;
    color: #302421 !important;
    font-size: clamp(38px, 4.15vw, 56px) !important;
    line-height: 1.15 !important;
    letter-spacing: -.025em !important;
}
.faq-hero h1 > span { display: block; }
body:not(.admin) .faq-hero .faq-title-accent { color: #931c29 !important; }
body:not(.admin) .faq-hero p { max-width: 47ch; margin: 0 0 15px; color: #5e544e !important; font-size: 16px !important; line-height: 1.7 !important; }

.faq-hero-image {
    position: absolute;
    z-index: 0;
    top: 0;
    right: calc((100vw - min(1200px, calc(100vw - 40px))) / -2);
    width: min(54vw, 720px);
    height: 305px;
    margin: 0;
    overflow: hidden;
    border-left: 2px solid #d3a46c;
    clip-path: ellipse(104% 111% at 100% 50%);
}
.faq-hero-image::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(251 246 237 / 20%), transparent 26%); content: ""; pointer-events: none; }
.faq-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 41%; }

.faq-search { display: flex; width: min(100%, 475px); max-width: 100%; min-width: 0; min-height: 46px; overflow: hidden; border: 1px solid #ead5b8; border-radius: 5px; background: #fffdf9; }
.faq-search-field { display: flex; min-width: 0; flex: 1; align-items: center; gap: 11px; padding: 0 13px; }
.faq-search-field svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: #68212d; stroke-width: 1.8; stroke-linecap: round; }
.faq-search-field input { width: 100%; min-width: 0; min-height: 44px; padding: 0; border: 0; outline: 0; color: #332823; background: transparent; font: 400 14px/1.4 var(--font-body), sans-serif; }
.faq-search-field input::placeholder { color: #756b65; opacity: 1; }
.faq-search-field:focus-within { box-shadow: inset 0 0 0 2px #b66e45; }
.faq-search-submit { display: grid; width: 48px; flex: 0 0 48px; place-items: center; border: 0; color: #fffaf2; background: #951b27; cursor: pointer; font: 500 24px/1 var(--font-body), sans-serif; transition: background .2s ease; }
.faq-search-submit:hover { background: #761520; }

.faq-topic-chips { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; align-self: end; }
.faq-filter-chip { min-height: 32px; padding: 5px 14px; border: 1px solid #ead8bd; border-radius: 999px; color: #54232a; background: rgb(255 251 245 / 91%); cursor: pointer; font: 500 14px/1.4 var(--font-body), sans-serif; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.faq-filter-chip:hover { border-color: #a51d2a; }
.faq-filter-chip.is-active { border-color: #951b27; color: #fff; background: #951b27; }
.faq-filter-chip:focus-visible,
.faq-topic-nav button:focus-visible,
.faq-button:focus-visible,
.faq-search-submit:focus-visible { outline: 3px solid rgb(192 139 79 / 70%); outline-offset: 3px; }

.faq-browser { position: relative; isolation: isolate; overflow: hidden; background: #fffdf8; }
.faq-browser::before { top: 47%; left: -133px; width: 250px; height: 390px; transform: rotate(13deg); opacity: .16; }
.faq-browser-inner { position: relative; z-index: 1; display: grid; width: min(1200px, calc(100% - 40px)); grid-template-columns: 250px minmax(0, 1fr); gap: 38px; margin: 0 auto; padding: 20px 0 16px; }
.faq-sidebar { align-self: stretch; padding: 5px 22px 20px 0; border-right: 1px solid #eadbc3; }
body:not(.admin) .faq-sidebar h2 { margin: 0 0 12px; color: #76202b !important; font-size: 32px !important; line-height: 1.2 !important; letter-spacing: -.01em !important; }
.faq-topic-nav { display: grid; gap: 3px; padding-bottom: 21px; border-bottom: 1px solid #eee1ce; }
.faq-topic-nav button { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 6px 10px; border: 0; border-left: 3px solid transparent; color: #493d3b; background: transparent; text-align: left; cursor: pointer; font: 500 14px/1.45 var(--font-body), sans-serif; transition: color .18s ease, background .18s ease; }
.faq-topic-nav button:hover,
.faq-topic-nav button.is-active { border-left-color: #9e1725; color: #8f1827; background: #faf3e7; }
.faq-topic-icon { display: grid; width: 23px; height: 23px; flex: 0 0 23px; place-items: center; color: #a51c2c; }
.faq-topic-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.faq-help-card { position: relative; overflow: hidden; padding: 17px 15px 15px; margin-top: 22px; border: 1px solid #eadbc3; background: #fffaf1; }
.faq-help-card::before { position: absolute; right: -68px; bottom: -100px; width: 150px; height: 205px; background: url("/assets/heritage-flourish.svg") center / contain no-repeat; opacity: .2; content: ""; pointer-events: none; }
body:not(.admin) .faq-help-card h3 { max-width: 15ch; margin: 3px 0 5px; color: #8d1b28 !important; font-size: 24px !important; line-height: 1.2 !important; }
body:not(.admin) .faq-help-card p { margin: 0 0 12px; color: #615751 !important; font-size: 16px !important; line-height: 1.7 !important; }

.faq-results { min-width: 0; }
.faq-result-count { min-height: 18px; margin: 0 0 6px; color: #796d64; font: 500 14px/1.5 var(--font-body), sans-serif; text-align: right; }
.faq-group { margin: 0 0 17px; }
.faq-group:last-of-type { margin-bottom: 0; }
.faq-group-heading { display: grid; grid-template-columns: 42px 25px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 8px; }
.faq-group-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: #a31625; font: 600 14px/1 var(--font-body), sans-serif; }
.faq-group-icon { display: block; width: 25px; height: 29px; color: #9f1828; }
.faq-group-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body:not(.admin) .faq-group-heading h2 { max-width: 100%; margin: 0 0 1px; color: #951b29 !important; font-size: clamp(32px, 2vw, 32px) !important; line-height: 1.2 !important; letter-spacing: -.012em !important; overflow-wrap: anywhere; }
body:not(.admin) .faq-group-heading p { max-width: 100%; margin: 0; color: #6d625b !important; font-size: 16px !important; line-height: 1.7 !important; overflow-wrap: anywhere; }
.faq-accordion { margin-left: 56px; border: 1px solid #eadbc3; border-radius: 3px; overflow: hidden; background: #fffdf9; }
.faq-item { border-bottom: 1px solid #eadbc3; }
.faq-item:last-child { border-bottom: 0; }
.faq-item[hidden],
.faq-group[hidden] { display: none !important; }
.faq-item summary { display: flex; min-height: 39px; align-items: center; justify-content: space-between; gap: 15px; padding: 8px 14px; color: #34252a; cursor: pointer; list-style: none; font: 500 14px/1.45 var(--font-body), sans-serif; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover { color: #951b29; background: #fff9ef; }
.faq-toggle { position: relative; width: 15px; height: 15px; flex: 0 0 15px; color: #a51a29; }
.faq-toggle::before,
.faq-toggle::after { position: absolute; top: 7px; left: 2px; width: 11px; height: 2px; background: currentColor; content: ""; transition: transform .2s ease; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item[open] .faq-toggle::after { transform: rotate(0); }
.faq-answer { padding: 0 15px 8px; }
.faq-answer p { max-width: 75ch; margin: 0; color: #625a57 !important; font: 400 16px/1.7 var(--font-body), sans-serif !important; overflow-wrap: anywhere; }
.faq-empty { padding: 45px 24px; border: 1px dashed #d8c4a8; color: #5e534d; background: #fffaf1; text-align: center; }
.faq-empty[hidden] { display: none; }
body:not(.admin) .faq-empty h2 { margin: 8px 0 4px; color: #76202b !important; font-size: 32px !important; }
.faq-empty p { margin: 0; font-size: 16px; }

.faq-button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 10px; padding: 9px 14px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font: 600 14px/1.4 var(--font-body), sans-serif; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.faq-button-primary { color: #fff; background: #971923; }
.faq-button-primary:hover { color: #fff; background: #75131c; }
.faq-button-light { color: #751720; background: #fffaf1; }
.faq-button-light:hover { background: #f5e8d1; }
.faq-button-outline { border-color: rgb(255 242 220 / 68%); color: #fff9ef; background: transparent; }
.faq-button-outline:hover { color: #6d1420; background: #fff8eb; }
.faq-help-card .faq-button { position: relative; width: 100%; justify-content: space-between; }

.faq-contact-strip { position: relative; isolation: isolate; overflow: hidden; color: #fff9ef; background: #86141d; }
.faq-contact-strip::before { top: -83px; left: -118px; opacity: .2; filter: brightness(1.9); }
.faq-contact-strip::after { top: -83px; right: -118px; transform: scaleX(-1); opacity: .2; filter: brightness(1.9); }
.faq-contact-strip-inner { display: flex; width: min(1200px, calc(100% - 40px)); min-height: 107px; align-items: center; justify-content: space-between; gap: 28px; margin: 0 auto; padding: 17px 0; }
body:not(.admin) .faq-contact-strip .eyebrow { margin-bottom: 0; color: #f1c888 !important; font-size: 14px !important; }
body:not(.admin) .faq-contact-strip h2 { margin: 1px 0 0; color: #fffaf2 !important; font-size: clamp(32px, 2.8vw, 34px) !important; line-height: 1.2 !important; }
body:not(.admin) .faq-contact-strip p { margin: 3px 0 0; color: #f8e8d5 !important; font-size: 16px !important; line-height: 1.7 !important; }
.faq-strip-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.faq-strip-actions .faq-button { min-width: 185px; }

.faq-next-step { display: grid; min-height: 148px; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr); align-items: stretch; background: #f8e8c9; }
.faq-next-step figure { min-height: 148px; margin: 0; overflow: hidden; }
.faq-next-step figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 69% 42%; }
.faq-next-copy { align-self: center; max-width: 780px; padding: 18px clamp(24px, 5vw, 68px); }
body:not(.admin) .faq-next-copy .eyebrow { display: block; margin: 0 0 2px; color: #915a33 !important; font: 600 14px/1.5 var(--font-body), sans-serif !important; letter-spacing: .15em !important; }
body:not(.admin) .faq-next-copy h2 { margin: 1px 0 3px; color: #891a26 !important; font-size: clamp(32px, 2.6vw, 33px) !important; line-height: 1.2 !important; }
body:not(.admin) .faq-next-copy p { max-width: 62ch; margin: 0 0 9px; color: #5f554d !important; font-size: 16px !important; line-height: 1.7 !important; }
.faq-next-copy .faq-button { min-width: 188px; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px) !important; white-space: nowrap !important; }
html[lang='hi'] .faq-hero h1,
html[lang='hi'] .faq-group-heading h2,
html[lang='hi'] .faq-sidebar h2,
html[lang='hi'] .faq-help-card h3,
html[lang='hi'] .faq-contact-strip h2,
html[lang='hi'] .faq-next-copy h2 { letter-spacing: 0 !important; line-height: 1.4 !important; }

@media (max-width: 900px) {
    .faq-hero-inner { min-height: 348px; }
    .faq-hero-copy { width: 58%; }
    .faq-hero-image { width: min(53vw, 560px); height: 286px; }
    body:not(.admin) .faq-hero h1 { max-width: 16ch; font-size: clamp(38px, 4.4vw, 48px) !important; }
    .faq-browser-inner { grid-template-columns: 218px minmax(0, 1fr); gap: 25px; }
    .faq-sidebar { padding-right: 17px; }
    .faq-group-heading { grid-template-columns: 38px 22px minmax(0, 1fr); gap: 9px; }
    .faq-group-number { width: 35px; height: 35px; }
    .faq-group-icon, .faq-group-icon svg { width: 22px; height: 22px; }
    .faq-accordion { margin-left: 47px; }
    .faq-strip-actions .faq-button { min-width: 155px; }
}

@media (max-width: 680px) {
    .faq-hero::before { left: -135px; opacity: .16; }
    .faq-hero-inner { display: flex; width: 100%; min-height: 0; flex-direction: column; padding: 0; }
    .faq-hero-copy { width: 100%; min-width: 0; max-width: 100%; order: 1; padding: 17px 20px 14px; }
    .faq-breadcrumb { margin-bottom: 12px; }
    body:not(.admin) .faq-hero .eyebrow { font-size: 14px !important; }
    body:not(.admin) .faq-hero h1 { width: 100%; max-width: 100%; margin-top: 3px; font-size: 38px !important; line-height: 1.15 !important; white-space: normal; overflow-wrap: normal; }
    body:not(.admin) .faq-hero p { max-width: 48ch; margin-bottom: 13px; font-size: 16px !important; }
    .faq-hero-image { position: relative; inset: auto; order: 0; width: 100%; height: clamp(185px, 56vw, 270px); flex: 0 0 auto; border: 0; clip-path: none; }
    .faq-hero-image::after { background: linear-gradient(0deg, rgb(35 17 17 / 12%), transparent 35%); }
    .faq-hero-image img { object-position: center 38%; }
    .faq-search { width: 100%; }
    .faq-topic-chips { order: 2; padding: 0 20px 16px; gap: 7px; }
    .faq-filter-chip { min-height: 34px; padding-inline: 12px; font-size: 14px; }
    .faq-browser-inner { display: block; width: 100%; padding: 17px 20px 20px; }
    .faq-sidebar { padding: 0; border: 0; }
    body:not(.admin) .faq-sidebar h2 { margin-bottom: 9px; font-size: 32px !important; }
    .faq-topic-nav { display: flex; overflow-x: auto; gap: 7px; padding: 0 0 12px; border-bottom: 1px solid #eadbc3; scrollbar-width: thin; }
    .faq-topic-nav button { min-height: 37px; flex: 0 0 auto; gap: 7px; padding: 6px 10px; border: 1px solid #ead8bd; border-radius: 999px; background: #fffaf2; font-size: 14px; }
    .faq-topic-nav button:hover,
    .faq-topic-nav button.is-active { border-color: #9e1725; color: #fff; background: #951b27; }
    .faq-topic-icon { width: 18px; height: 18px; flex-basis: 18px; color: currentColor; }
    .faq-topic-icon svg { width: 18px; height: 18px; }
    .faq-help-card { display: none; }
    .faq-results { padding-top: 8px; }
    .faq-result-count { text-align: left; }
    .faq-group { margin-bottom: 21px; }
    .faq-group-heading { grid-template-columns: 35px minmax(0, 1fr); gap: 10px; margin-bottom: 8px; }
    .faq-group-heading > div { min-width: 0; }
    .faq-group-number { width: 34px; height: 34px; font-size: 14px; }
    .faq-group-icon { display: none; }
    body:not(.admin) .faq-group-heading h2 { font-size: 32px !important; }
    .faq-accordion { margin-left: 0; }
    .faq-item summary { min-height: 43px; padding: 9px 11px; font-size: 14px; }
    .faq-answer { padding: 0 11px 10px; }
    .faq-answer p { font-size: 16px; line-height: 1.7; }
    .faq-contact-strip-inner { display: block; width: 100%; padding: 23px 20px; }
    body:not(.admin) .faq-contact-strip h2 { font-size: 32px !important; }
    .faq-strip-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 15px; }
    .faq-strip-actions .faq-button { min-width: 0; padding-inline: 10px; font-size: 14px; }
    .faq-next-step { grid-template-columns: 1fr; }
    .faq-next-step figure { min-height: 190px; height: 190px; }
    .faq-next-copy { padding: 21px 20px 23px; }
    body:not(.admin) .faq-next-copy h2 { font-size: 32px !important; }
    .faq-next-copy .faq-button { width: 100%; }

    .header .nav { width: calc(100% - 28px); height: 68px; min-width: 0; gap: 9px; }
    .header .brand { min-width: 0; gap: 8px; }
    .header .brand-symbol { width: 38px; height: 38px; flex: 0 0 38px; }
    body:not(.admin) .header .brand strong { font-size: 20px !important; letter-spacing: -.03em !important; }
    body:not(.admin) .header .brand small { font-size: 14px !important; letter-spacing: .1em !important; }
    .header .navlinks { top: 68px; left: 0; right: 0; width: 100%; }
    .header .lang { order: 2; flex: 0 0 auto; padding: 8px; }
    .header .menu-toggle { order: 3; flex: 0 0 40px; width: 40px; margin-left: auto; }
    .header .nav-cta { display: none; }
    .faq-search { width: 100%; max-width: 100%; }
    .faq-results, .faq-group, .faq-group-heading, .faq-accordion { width: 100%; min-width: 0; max-width: 100%; }
    .faq-accordion, .faq-item, .faq-item summary, .faq-answer { min-width: 0; max-width: 100%; }
    .faq-group-heading h2 { overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
    .faq-hero-copy { padding-inline: 16px; }
    .faq-topic-chips { padding-inline: 16px; }
    .faq-browser-inner { padding-inline: 16px; }
    .faq-strip-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-filter-chip,
    .faq-search-submit,
    .faq-button,
    .faq-toggle::before,
    .faq-toggle::after { transition: none; }
}
