/* Shared content frame and responsive navigation for AuksoKaina themes. */
@media (min-width: 1280px) {
    :root { --max: 1440px; }
}

html body .home-explainer-section__content.container {
    width: min(calc(100% - 40px), var(--max)) !important;
    max-width: var(--max) !important;
    margin-inline: auto !important;
    text-align: left;
}

html body .home-explainer-section { padding: 40px 0 48px; }
html body .content-answer,
html body .content-section {
    margin-inline: 0 !important;
    text-align: left !important;
}
html body .content-answer__body,
html body .content-section .prose {
    max-width: 84ch !important;
    min-width: 0;
    margin-inline: 0;
    text-align: left;
}
html body .content-answer__body p { margin: 0 0 16px; }
html body .content-answer__body p:last-child { margin-bottom: 0; }

/* One divider per section, without two adjacent lines or empty number columns. */
html body .content-answer {
    margin-bottom: 0 !important;
    padding: 0 0 28px !important;
    border-bottom: 0 !important;
}
html body .content-section {
    display: block !important;
    padding: 28px 0 !important;
    border-top: 1px solid var(--border, #dedbd3) !important;
    border-bottom: 0 !important;
}
html body .content-section:first-of-type { border-top-width: 1px !important; }
html body .content-sections { border: 0 !important; }
html body .content-jump {
    max-width: 900px;
    margin-bottom: 0 !important;
    padding: 16px 0 24px;
    border-bottom: 0 !important;
}
html body .content-answer h2,
html body .content-section h2 {
    font-size: clamp(24px, 2.3vw, 32px) !important;
    line-height: 1.25 !important;
    max-width: 34ch;
    margin: 0 0 16px !important;
}
html body .content-main,
html body .content-section > div,
html body .related-hub__grid a { min-width: 0; }
html body .related-hub__grid strong { overflow-wrap: break-word; }
html body .related-hub { margin-top: 32px; padding-top: 28px; }
html body .page-hero { padding-top: 48px; padding-bottom: 32px; }
html body .page-hero h1,
html body .newsroom-hero h1 { font-size: clamp(34px, 4vw, 60px); line-height: 1.1; }
html body .newsroom-hero { padding: 48px 0 32px; }
html body .newsroom-stream { padding: 32px 0 48px; min-height: 0; }

.guide-library { padding-top: 0; }
.guide-library__heading { margin: 0 0 22px; font-size: 26px; line-height: 1.3; }
.guide-library__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--border, #dedbd3); border-radius: 12px; min-width: 0; }
.guide-card__label { margin: 0 0 10px; font-size: 11px; font-weight: 750; letter-spacing: .08em; color: var(--gold-dark, #80662b); text-transform: uppercase; }
.guide-card__title { margin: 0 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.guide-card__title a { text-decoration: none; }
.guide-card__intro { margin: 0 0 22px; color: var(--muted, #666); font-size: 16px; line-height: 1.65; }
.guide-card__link { align-self: flex-start; margin-top: auto; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.guide-card:focus-within { border-color: var(--gold-dark, #80662b); }
.guide-library__tools { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border, #dedbd3); }
.guide-library__tools a { text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }

@media (max-width: 1100px) {
    html body .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 24px; max-height: calc(100dvh - 76px); overflow-y: auto; background: #fff; border-bottom: 1px solid var(--border, #dedbd3); }
    html body .site-nav.is-open { display: flex; }
    html body .menu-button { display: flex; margin-left: auto; flex-direction: column; gap: 4px; border: 0; background: transparent; padding: 12px; }
    html body .menu-button span { display: block; width: 22px; height: 2px; background: #171717; }
    html body .menu-button b { display: none; }
    html body .site-nav > a,
    html body .site-nav .fineness-menu__trigger { width: 100%; padding: 12px !important; font-size: 15px; }
    html body .site-nav .fineness-menu { display: block; }
    html body .site-nav .fineness-menu__panel { display: none !important; position: static; width: 100%; max-height: none; margin-top: 6px; transform: none !important; box-shadow: none; }
    html body .site-nav .fineness-menu.is-open > .fineness-menu__panel { display: block !important; visibility: visible !important; opacity: 1 !important; pointer-events: auto; padding: 14px !important; max-height: none; border: 1px solid var(--border, #dedbd3); }
    html body .site-nav .content-menu__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html body .site-nav .content-menu__grid > a { min-width: 0; }
}

@media (max-width: 767px) {
    html body .home-explainer-section__content.container { width: calc(100% - 24px) !important; }
    html body .home-tools-section > .container,
    html body .home-articles-section > .container,
    html body .faq-section > .container { width: calc(100% - 24px); }
    html body .home-explainer-section { padding: 28px 0 32px; }
    html body .content-section { padding: 24px 0 !important; }
    html body .content-answer__body,
    html body .content-section .prose { font-size: 16px !important; line-height: 1.7 !important; }
    html body .content-answer h2,
    html body .content-section h2 { font-size: 24px !important; }
    .guide-library__grid { grid-template-columns: 1fr; gap: 14px; }
    .guide-card { padding: 22px; }
    .guide-card__title { font-size: 22px; }
    html body .newsroom-hero { padding: 32px 0 24px; }
    html body .newsroom-stream { padding: 24px 0 32px; }
}
