/* Age verification category and model pages.
   Uses the shared Totem design tokens from style.css; no new color system. */

.age-category-page,
.age-page {
    color: var(--dark);
}

.age-category-page h1, .age-category-page h2, .age-category-page h3,
.age-page h1, .age-page h2, .age-page h3 {
    color: var(--dark);
    letter-spacing: -0.03em;
}

.age-category-page a:focus-visible,
.age-page a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

/* Keep source-preview visible: these pages do not rely on scroll observers. */
.age-category-page .linear-showcase {
    opacity: 1;
    transform: none;
}

.age-category-page .linear-showcase:is(:hover, :focus-visible) {
    background: transparent;
    outline: none;
}

/* Fade a painted glow layer instead of animating its blur and border. */
.age-category-page .linear-showcase .linear-glow-card {
    border: 0;
    box-shadow: none;
    overflow: visible;
    isolation: isolate;
    transform: scale(1);
    transition: transform 240ms ease;
    will-change: transform;
}

.age-category-page .linear-glow-card::before {
    content: "";
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(229, 90, 44, 0.3);
    border-radius: inherit;
    padding: 0;
    background: transparent;
    -webkit-mask: none;
    mask: none;
    box-shadow: 0 0 40px rgba(229, 90, 44, 0.12), 0 0 80px rgba(229, 90, 44, 0.06), var(--shadow-md);
    opacity: 0;
    transition: opacity 240ms ease;
    will-change: opacity;
}

.age-category-page .linear-showcase .linear-glow-card img {
    border-radius: inherit;
    background: transparent;
    transform: scale(1);
    transition: transform 240ms ease;
    will-change: transform;
}

.age-category-page .linear-showcase .linear-link {
    gap: 8px;
}

.age-category-page .linear-link > i {
    transform: translateX(0);
    transition: transform 240ms ease;
}

.age-category-page .linear-showcase:is(:hover, :focus-visible, :active) .linear-glow-card {
    transform: scale(1.02);
}

.age-category-page .linear-showcase:is(:hover, :focus-visible, :active) .linear-glow-card::before {
    opacity: 1;
}

.age-category-page .linear-showcase:is(:hover, :focus-visible, :active) .linear-glow-card img {
    transform: scale(1.05);
}

.age-category-page .linear-showcase:is(:hover, :focus-visible, :active) .linear-link > i {
    transform: translateX(4px);
}

.age-category-page .linear-showcase:focus-visible .linear-glow-card {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

.age-section {
    padding: clamp(56px, 7vw, 96px) 0;
}

.age-section.age-muted {
    background: var(--gray-50);
    border-block: 1px solid var(--gray-200);
}

.age-section-heading {
    max-width: 720px;
    margin: 0 auto 2.75rem;
    text-align: center;
}

.age-section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 0.9rem;
}

.age-section-heading p {
    color: var(--gray-600);
    line-height: 1.85;
}

.age-section-heading.age-heading-left {
    text-align: left;
    margin-inline: 0;
}

/* ---- Category: two reading paths ---- */
.age-path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.age-path-card {
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--white);
    min-width: 0;
}

.age-path-index {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 1.1rem;
}

.age-path-card h3 {
    font-size: 1.3rem;
    font-weight: 750;
    margin-bottom: 0.7rem;
}

.age-path-card p {
    color: var(--gray-600);
    line-height: 1.85;
    font-size: 0.95rem;
}

.age-path-card ul {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.age-path-card li {
    font-size: 0.9rem;
    color: var(--gray-700);
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.age-path-card li i {
    color: var(--primary);
    font-size: 0.75rem;
    line-height: 1.9;
}

/* ---- Scenario tags ---- */
.age-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.age-tag-list > span,
.age-tag-list > a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.age-tag-list i {
    color: var(--primary);
}

/* ---- Compliance note ---- */
/* A restrained footnote: hairline rules and a label column, no alert-colour block. */
.age-note {
    padding: clamp(48px, 6vw, 80px) 0;
}

.age-note-inner {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
    gap: clamp(20px, 3.5vw, 44px);
    align-items: start;
    max-width: 1000px;
    margin-inline: auto;
    padding: clamp(1.4rem, 2.5vw, 2rem) 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.age-note-inner h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.6;
    color: var(--gray-500);
}

.age-note-inner h2::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.age-note-inner p {
    margin: 0;
    max-width: 720px;
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.95;
}

.age-category-page .age-note-inner {
    max-width: 1100px;
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.age-category-page .age-note-inner h2 {
    color: var(--dark);
    font-size: clamp(1.125rem, 1.6vw, 1.5rem);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.age-category-page .age-note-inner p {
    max-width: 800px;
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.8;
}

/* ---- Model hero ---- */
.age-hero {
    padding: 130px 0 0;
    background: linear-gradient(135deg, #fff8f4 0%, #ffffff 55%, #f8fafc 100%);
}

.age-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    padding: 20px 0 44px;
}

.age-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(229, 90, 44, 0.16);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    margin-bottom: 1.4rem;
}

.age-hero h1 {
    font-size: clamp(3rem, 5.5vw, 5rem);
    line-height: 1.05;
    font-weight: 850;
    margin-bottom: 1.1rem;
}

.age-hero-title {
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    font-weight: 750;
    line-height: 1.45;
    margin-bottom: 0.9rem;
    text-wrap: balance;
}

.age-hero-description {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.9;
    max-width: 560px;
}

.age-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
    list-style: none;
    margin: 1.75rem 0 2rem;
}

.age-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.65;
}

.age-checks i {
    color: var(--primary);
    line-height: 1.65;
}

.age-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.age-actions .btn-primary {
    border-radius: var(--radius-button);
    padding: 14px 24px;
}

.age-hero-visual {
    background: transparent;
    border: 0;
    padding: 2rem;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.age-hero-visual img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.age-hero-visual img.age-hero-tall {
    max-height: 330px;
    width: auto;
}

.age-hero-visual img.age-hero-square {
    width: 100%;
    max-width: 360px;
}

.age-quick-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    border-top: 1px solid var(--gray-200);
    margin: 0;
    padding: 26px 0 30px;
}

.age-quick-specs > div {
    min-width: 0;
}

.age-quick-specs dt {
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.45rem;
}

.age-quick-specs dd {
    margin: 0;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    font-weight: 750;
    color: var(--dark);
    line-height: 1.35;
}

.age-quick-specs dd span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-500);
}

/* ---- Feature cards ---- */
.age-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.age-feature {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: var(--white);
    padding: 1.6rem 1.7rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.age-feature > i {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.age-feature h3 {
    font-size: 1.05rem;
    font-weight: 750;
    margin-bottom: 0.45rem;
}

.age-feature p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ---- Specifications ---- */
.age-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 1080px);
}

.age-spec-grid .model-spec-card {
    box-shadow: none;
}

.age-spec-note {
    max-width: 1080px;
    margin: 1.5rem auto 0;
    color: var(--gray-500);
    font-size: 0.85rem;
    line-height: 1.8;
}

/* ---- Figures and gallery ---- */
.age-figure {
    max-width: 980px;
    margin-inline: auto;
    text-align: center;
}

.age-figure img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
}

.age-figure figcaption {
    margin-top: 1rem;
    color: var(--gray-500);
    font-size: 0.86rem;
    line-height: 1.7;
}

.age-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    max-width: 980px;
    margin-inline: auto;
}

.age-gallery figure {
    margin: 0;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--white);
    overflow: hidden;
}

.age-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.age-gallery figcaption {
    padding: 0.8rem 1rem;
    color: var(--gray-600);
    font-size: 0.84rem;
    border-top: 1px solid var(--gray-100);
}

/* ---- Related models ---- */
.age-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    max-width: 900px;
    margin-inline: auto;
}

.age-related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    background: var(--white);
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--ease-fast), transform var(--ease-fast);
}

.age-related-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.age-related-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: none;
}

.age-related-card h3 {
    font-size: 1rem;
    font-weight: 750;
    margin-bottom: 0.2rem;
}

.age-related-card p {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.age-related-card > i {
    margin-left: auto;
    color: var(--primary);
}

/* ---- Category additions ---- */
/* Two models only: keep the pair centred instead of leaving half a grid empty. */
.age-category-page .model-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 640px);
    margin-inline: auto;
}

.age-category-page .model-related-card {
    position: relative;
    isolation: isolate;
    transform: translateY(0);
    transition: transform 240ms ease, border-color 240ms ease;
    will-change: transform;
}

/* Keep a hover area below the card to cover its 4px lift. */
.age-category-page .model-related-card::before {
    content: "";
    position: absolute;
    inset: 0 0 -8px;
}

.age-category-page .model-related-card:is(:hover, :focus-visible) {
    border-color: rgba(229, 90, 44, 0.45);
    box-shadow: none;
    transform: translateY(-4px);
}

.age-category-page .model-related-card img {
    background: transparent;
    border-radius: 0;
}

/* ---- Responsive ---- */
@media (max-width: 950px) {
    .age-hero { padding-top: 110px; }
    .age-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .age-hero-visual { min-height: 280px; order: 2; }
    .age-hero-visual img.age-hero-tall { max-height: 260px; }
    .age-spec-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
    .age-path-grid,
    .age-feature-grid,
    .age-related-grid,
    .age-gallery { grid-template-columns: minmax(0, 1fr); }
    .age-checks { grid-template-columns: minmax(0, 1fr); }
    .age-quick-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
    .age-hero-visual { padding: 1.25rem; }
    .age-note-inner { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .age-related-card { transition: none; }
    .age-category-page .linear-showcase .linear-glow-card,
    .age-category-page .linear-showcase:is(:hover, :focus-visible, :active) .linear-glow-card,
    .age-category-page .linear-showcase .linear-glow-card img,
    .age-category-page .linear-showcase:is(:hover, :focus-visible, :active) .linear-glow-card img,
    .age-category-page .linear-link > i,
    .age-category-page .linear-showcase:is(:hover, :focus-visible, :active) .linear-link > i,
    .age-category-page .model-related-card,
    .age-category-page .model-related-card:is(:hover, :focus-visible) {
        transform: none;
        transition: none;
        will-change: auto;
    }
    .age-category-page .linear-glow-card::before {
        transition: none;
        will-change: auto;
    }
}
