/* ============================================
   SHARED STYLES - Secondary Pages
   ============================================
   Version: 1.2.20260219
   Shared styles for about.html and privacy.html
   ============================================ */

/* ============================================
   PAGE LAYOUT
   ============================================ */

.shared-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.shared-page--about {
    max-width: 980px;
}

/* ============================================
   HEADER
   ============================================ */

.shared-header {
    margin-bottom: 2rem;
}

.shared-header--bordered {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--nb-border-subtle);
}

.shared-return-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--nb-border-subtle);
    background: var(--nb-bg-layer-1);
    color: var(--nb-text-secondary);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.shared-return-link:hover,
.shared-return-link:focus {
    color: var(--nb-accent-primary);
    border-color: var(--nb-accent-border-soft);
    background: var(--nb-accent-tint-subtle);
}

.shared-return-link:focus-visible {
    outline: 2px solid var(--nb-accent-primary);
    outline-offset: 2px;
}

.shared-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--nb-text-primary);
    margin: 0 0 0.5rem;
}

.shared-title--large {
    font-size: 2rem;
}

.shared-subtitle {
    color: var(--nb-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.shared-intro {
    color: var(--nb-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0.5rem 0 0;
}

/* ============================================
   CONTENT
   ============================================ */

.shared-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nb-text-primary);
    margin: 2rem 0 1rem;
}

.shared-content h2:first-child {
    margin-top: 0;
}

/* Section heading with top border */
.shared-content h2.section-divider {
    font-size: 1.15rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--nb-border-subtle);
}

.shared-content h3 {
    color: var(--nb-text-primary);
}

.shared-content p {
    color: var(--nb-text-secondary);
    line-height: 1.7;
    margin: 0 0 1rem;
}

.shared-content ul {
    color: var(--nb-text-secondary);
    line-height: 1.7;
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.shared-content li {
    margin-bottom: 0.4rem;
}

.shared-content a {
    color: var(--nb-text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--nb-border-subtle);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.shared-content a:hover,
.shared-content a:focus {
    color: var(--nb-accent-primary);
    text-decoration-color: var(--nb-accent-primary);
}

.shared-content code {
    font-family: "SF Mono", Consolas, Monaco, monospace;
    font-size: 0.9em;
    color: var(--nb-text-primary);
}

/* ============================================
   HIGHLIGHT BOX (Privacy and About)
   ============================================ */

.highlight-box {
    background: var(--nb-bg-layer-1);
    border: 1px solid var(--nb-border-subtle);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--nb-text-primary);
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-section {
    margin-top: 2rem;
}

.about-pillars,
.about-qa {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.about-card {
    background: linear-gradient(165deg, rgba(24, 33, 58, 0.92), rgba(19, 27, 48, 0.96));
    border: 1px solid var(--nb-border-subtle);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--nb-shadow-1);
}

.about-card h3 {
    color: var(--nb-text-primary);
    font-size: 1rem;
    margin: 0 0 0.45rem;
}

.about-card p {
    color: var(--nb-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.about-audience-grid {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.about-audience-card {
    border: 1px solid var(--nb-border-subtle);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(30, 58, 138, 0.14), rgba(19, 27, 48, 0.95));
    padding: 1rem;
}

.about-audience-card h3 {
    margin: 0 0 0.4rem;
    color: var(--nb-text-primary);
    font-size: 1rem;
}

.about-audience-card p {
    margin: 0;
    color: var(--nb-text-secondary);
}

.about-journey {
    margin-top: 2.1rem;
}

.journey-grid {
    position: relative;
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.journey-grid::before {
    display: none;
}

.journey-card {
    border: 1px solid var(--nb-border-subtle);
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(24, 33, 58, 0.94), rgba(19, 27, 48, 0.98));
    padding: 0.9rem;
    box-shadow: var(--nb-shadow-1);
}

.journey-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.6rem;
}

.journey-badge {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--nb-text-on-accent);
    background: linear-gradient(135deg, var(--nb-gradient-start), var(--nb-gradient-end));
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
    flex: 0 0 auto;
}

.journey-card-head h3 {
    margin: 0;
    color: var(--nb-text-primary);
    font-size: 1rem;
}

.journey-roles {
    display: grid;
    gap: 0.35rem;
    margin: 0;
}

.journey-roles div {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 0.45rem;
    padding-top: 0.35rem;
    border-top: 1px dashed rgba(59, 130, 246, 0.25);
}

.journey-roles div:first-child {
    border-top: 0;
    padding-top: 0;
}

.journey-roles dt {
    margin: 0;
    color: var(--nb-text-muted);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.journey-roles dd {
    margin: 0;
    color: var(--nb-text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.journey-tech {
    margin-top: 0.65rem;
    border-top: 1px solid rgba(59, 130, 246, 0.22);
    padding-top: 0.5rem;
}

.journey-tech summary {
    cursor: pointer;
    list-style: none;
    color: var(--nb-accent-hover);
    font-size: 0.82rem;
    font-weight: 600;
}

.journey-tech summary::-webkit-details-marker {
    display: none;
}

.journey-tech summary::before {
    content: "+ ";
    color: var(--nb-accent-hover);
}

.journey-tech summary:focus-visible {
    outline: 2px solid var(--nb-accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.journey-tech[open] summary::before {
    content: "- ";
}

.journey-tech p {
    margin: 0.45rem 0 0 !important;
    font-size: 0.82rem;
    color: var(--nb-text-muted) !important;
    line-height: 1.5;
}

.journey-flow-dot {
    display: none;
}

@keyframes journeyBadgePulse {
    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.11);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.16);
    }
}

@keyframes journeyTraverse {
    0% {
        left: 2%;
        opacity: 0;
    }
    7% {
        opacity: 1;
    }
    88% {
        opacity: 1;
    }
    100% {
        left: calc(98% - 10px);
        opacity: 0;
    }
}

.about-detail {
    margin-top: 0.85rem;
    border: 1px solid var(--nb-border-subtle);
    border-radius: 10px;
    background: var(--nb-bg-layer-1);
    overflow: hidden;
}

.about-detail summary {
    cursor: pointer;
    list-style: none;
    color: var(--nb-text-primary);
    font-weight: 600;
    padding: 0.95rem 1rem;
    background: rgba(19, 27, 48, 0.9);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.about-detail summary::-webkit-details-marker {
    display: none;
}

.about-detail summary::before {
    content: "+";
    width: 20px;
    height: 20px;
    border: 1px solid var(--nb-accent-border-soft);
    border-radius: 999px;
    color: var(--nb-accent-hover);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    flex: 0 0 auto;
}

.about-detail[open] summary::before {
    content: "-";
}

.about-detail summary:focus-visible {
    outline: 2px solid var(--nb-accent-primary);
    outline-offset: -2px;
}

.about-detail-body {
    padding: 0 1rem 0.9rem;
}

.about-detail-body p:last-child {
    margin-bottom: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.shared-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--nb-border-subtle);
    text-align: center;
}

.shared-footer .footer-attribution {
    color: var(--nb-text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.shared-footer .footer-attribution a {
    color: var(--nb-text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--nb-border-subtle);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.shared-footer .footer-attribution a:hover,
.shared-footer .footer-attribution a:focus {
    color: var(--nb-accent-primary);
    text-decoration-color: var(--nb-accent-primary);
}

.shared-footer .footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.shared-footer .footer-nav a {
    color: var(--nb-text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.shared-footer .footer-nav a:hover,
.shared-footer .footer-nav a:focus {
    color: var(--nb-accent-primary);
}

.shared-footer .footer-nav-divider {
    color: var(--nb-text-disabled);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 480px) {
    .shared-page {
        padding: 1.5rem 1rem 3rem;
    }

    .shared-title {
        font-size: 1.5rem;
    }

    .shared-title--large {
        font-size: 1.75rem;
    }

    .journey-roles div {
        grid-template-columns: 58px minmax(0, 1fr);
    }
}

@media (min-width: 720px) {
    .about-pillars,
    .about-qa {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 920px) {
    .journey-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-top: 1.15rem;
        gap: 0.8rem;
    }

    .journey-grid::before {
        content: "";
        display: block;
        position: absolute;
        left: 12%;
        right: 12%;
        top: 2px;
        bottom: auto;
        width: auto;
        height: 2px;
        background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.65), rgba(79, 70, 229, 0.55), rgba(37, 99, 235, 0.2));
    }

    .journey-flow-dot {
        display: block;
        position: absolute;
        top: -2px;
        left: 12%;
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: radial-gradient(circle, #ffffff 20%, #93c5fd 58%, #2563eb 100%);
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16), 0 0 12px rgba(59, 130, 246, 0.4);
        animation: journeyTraverse 7s linear infinite;
    }

    .journey-card:nth-child(1) .journey-badge,
    .journey-card:nth-child(3) .journey-badge {
        animation: journeyBadgePulse 3.4s ease-in-out infinite;
    }

    .journey-tech p {
        font-size: 0.79rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey-badge,
    .journey-flow-dot {
        animation: none;
    }

    .journey-flow-dot {
        display: none;
    }
}
