/* ==========================================================================
   1Hundred Year Family — family legacy workbooks
   Extends 1hyf-landing.css. Tokens from that file only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Shell
   -------------------------------------------------------------------------- */
.wb{ overflow-x: hidden; }


.wb .wb-measure{ width: min(100% - 40px, 780px); margin-inline: auto; }

/* --------------------------------------------------------------------------
   2. Action bar
   -------------------------------------------------------------------------- */
.wb .wb-bar{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 244, 238, .94);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.wb .wb-bar .wrap{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-block: 12px;
}
.wb .wb-bar-mark{
    color: var(--olive);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
}
.wb .wb-bar-mark span{ color: var(--brass-text); }
.wb .wb-bar-spacer{ flex: 1 1 auto; }

.wb .wb-progress{
    color: var(--ink-faint);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.wb .wb-progress b{ color: var(--brass-text); }


.wb .wb-action{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    color: var(--olive);
    background: transparent;
    border: 1px solid var(--olive);
    border-radius: var(--pill);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease), transform .18s var(--ease);
}
.wb .wb-action:hover{ color: var(--cream); background: var(--olive); transform: translateY(-1px); }
.wb .wb-action:active{ transform: translateY(0); }
.wb .wb-action--solid{ color: var(--cream); background: var(--olive); }
.wb .wb-action--solid:hover{ background: var(--olive-deep); border-color: var(--olive-deep); }

/* --------------------------------------------------------------------------
   3. Hero
   -------------------------------------------------------------------------- */
.wb .wb-hero{
    position: relative;
    color: var(--on-dark);
    background: var(--olive);
    overflow: hidden;
}
.wb .wb-hero-media{ position: absolute; inset: 0; }
.wb .wb-hero-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .26;
    background: var(--olive);
}
.wb .wb-hero-media::after{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45, 54, 31, .55) 0%, rgba(45, 54, 31, .82) 100%);
}
.wb .wb-hero-content{
    position: relative;
    padding: clamp(64px, 10vw, 132px) 0 clamp(48px, 7vw, 92px);
}
.wb .wb-hero h1{ font-size: clamp(38px, 6.6vw, 72px); }
.wb .wb-hero h1 em{ color: var(--brass-light); font-style: italic; }
.wb .wb-hero .wb-standfirst{
    max-width: 34ch;
    margin-top: 20px;
    color: var(--on-dark-soft);
    font-size: clamp(18px, 2.4vw, 22px);
    line-height: 1.45;
}
.wb .wb-rule{
    width: 76px;
    height: 2px;
    margin: 34px 0;
    background: var(--brass);
}

.wb .wb-meta{
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px 40px;
    max-width: 640px;
}
.wb .wb-meta dt{
    margin-bottom: 5px;
    color: var(--brass-light);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.wb .wb-meta dd{ color: var(--on-dark); font-size: 17px; line-height: 1.4; }

/* --------------------------------------------------------------------------
   4. The guiding question
   -------------------------------------------------------------------------- */
.wb .wb-guiding{
    margin: 40px 0;
    padding: clamp(28px, 4vw, 40px);
    color: var(--cream);
    background: var(--olive);
    border-radius: var(--radius);
}
.wb .wb-guiding .eyebrow{ color: var(--brass-light); }
.wb .wb-guiding .wb-guiding-q{
    margin-top: 12px;
    color: var(--cream);
    font-family: var(--font-display);
    font-size: clamp(26px, 3.6vw, 38px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.16;
}

/* --------------------------------------------------------------------------
   5. Part openers
   -------------------------------------------------------------------------- */
.wb .wb-part-number{
    display: block;
    color: var(--brass-text);
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
}
.wb .wb-part-title{ margin: 10px 0 14px; font-size: clamp(28px, 4vw, 44px); }
.wb .wb-part-note{ max-width: 62ch; color: var(--ink-soft); font-style: italic; }

/* --------------------------------------------------------------------------
   6. Shared-language definitions
   -------------------------------------------------------------------------- */
.wb .wb-def{ padding: 26px 0; border-top: 1px solid var(--line); }
.wb .wb-def:last-of-type{ border-bottom: 1px solid var(--line); }
.wb .wb-def h3{ margin-bottom: 8px; }
.wb .wb-def-ask{
    margin: 14px 0 10px;
    color: var(--olive);
    font-family: var(--font-display);
    font-size: 20px;
    font-style: italic;
    line-height: 1.3;
}
.wb .wb-def-ask b{
    margin-right: 10px;
    color: var(--brass-text);
    font-family: var(--font-body);
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    vertical-align: .15em;
}
.wb .wb-def-examples{ color: var(--ink-faint); font-size: 15px; }

/* --------------------------------------------------------------------------
   7. Agenda table
   -------------------------------------------------------------------------- */
.wb .wb-agenda{ width: 100%; margin-top: 22px; border-collapse: collapse; }
.wb .wb-agenda th{
    padding: 11px 12px;
    color: var(--cream);
    background: var(--olive);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-align: left;
    text-transform: uppercase;
}
.wb .wb-agenda td{
    padding: 12px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.45;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.wb .wb-agenda td:first-child{
    color: var(--olive);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   8. Questions and fields
   -------------------------------------------------------------------------- */
.wb .wb-q{ padding: 34px 0 4px; border-top: 1px solid var(--line); }
.wb .wb-q:first-of-type{ border-top: none; }
.wb .wb-q-head{ display: flex; gap: 16px; align-items: baseline; }
.wb .wb-q-number{
    min-width: 28px;
    color: var(--brass-text);
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 400;
}
.wb .wb-q-text{
    font-family: var(--font-display);
    font-size: clamp(19px, 2.2vw, 23px);
    font-weight: 500;
    line-height: 1.24;
    letter-spacing: -.015em;
}
.wb .wb-q-help{
    max-width: 64ch;
    margin: 10px 0 0 44px;
    color: var(--ink-faint);
    font-size: 15px;
    font-style: italic;
    line-height: 1.5;
}
.wb .wb-q-stem{
    margin: 14px 0 0 44px;
    color: var(--clay);
    font-family: var(--font-display);
    font-size: 21px;
    font-style: italic;
    line-height: 1.3;
}

.wb .wb-field{ margin: 16px 0 0 44px; }
.wb .wb-field-label{
    margin-bottom: 8px;
    color: var(--ink-faint);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.wb textarea, .wb input[type="text"]{
    width: 100%;
    max-width: 100%;
    padding: 13px 15px;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    resize: none;
    overflow: hidden;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.wb textarea:focus, .wb input[type="text"]:focus{
    background: #fff;
    border-color: var(--brass);
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.wb textarea::placeholder, .wb input::placeholder{ color: var(--ink-faint); opacity: .75; }

/* Priority grids (questions 4, 5, 8, 9) */
.wb .wb-grid{ display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0 44px; }
.wb .wb-grid-row{ display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.wb .wb-grid-row > .wb-grid-n{
    padding-top: 12px;
    color: var(--brass-text);
    font-family: var(--font-display);
    font-size: 17px;
    text-align: center;
}
.wb .wb-grid-head{ display: none; }

/* Ranked slots (questions 15, 16) */
.wb .wb-slots{ display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0 44px; }
.wb .wb-slot{ display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; }
.wb .wb-slot-n{
    color: var(--brass-text);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* --------------------------------------------------------------------------
   9. Panels, pull quotes, status
   -------------------------------------------------------------------------- */
.wb .wb-panel{
    margin: 30px 0;
    padding: 26px 28px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.wb .wb-panel .wb-field{ margin-left: 0; }
.wb .wb-panel-fields{ display: grid; grid-template-columns: 1fr; gap: 20px; }

.wb .wb-pull{
    margin: 34px 0;
    padding-left: 22px;
    color: var(--clay);
    font-family: var(--font-display);
    font-size: clamp(20px, 2.6vw, 26px);
    font-style: italic;
    line-height: 1.32;
    border-left: 2px solid var(--brass);
}

.wb .wb-status{
    display: none;
    margin-top: 20px;
    padding: 15px 18px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
}
.wb .wb-status--ok{ display: block; color: var(--cream); background: var(--olive); }
.wb .wb-status--warn{
    display: block;
    color: var(--clay);
    background: var(--cream);
    border: 1px solid var(--clay);
}

.wb .wb-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.wb .wb-note{ margin-top: 18px; color: var(--ink-faint); font-size: 15px; font-style: italic; line-height: 1.55; }

/* --------------------------------------------------------------------------
   10. Closing
   -------------------------------------------------------------------------- */
.wb .wb-three{ margin: 26px 0; }
.wb .wb-three li{
    display: flex;
    gap: 18px;
    align-items: baseline;
    padding: 20px 0;
    border-top: 1px solid var(--line-dark);
}
.wb .wb-three .wb-three-n{
    min-width: 30px;
    color: var(--brass-light);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
}
.wb .wb-three .wb-three-t{
    font-family: var(--font-display);
    font-size: clamp(21px, 2.8vw, 28px);
    font-weight: 500;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   11. Larger screens
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
    .wb .wb-meta{ grid-template-columns: 1fr 1fr; }
    .wb .wb-panel-fields{ grid-template-columns: 1fr 1fr; }
    .wb .wb-grid-row{ grid-template-columns: 26px 1fr 1.25fr; }
    .wb .wb-grid-head{
        display: grid;
        grid-template-columns: 26px 1fr 1.25fr;
        gap: 10px;
        color: var(--ink-faint);
        font-family: var(--font-body);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
    }
}

/* --------------------------------------------------------------------------
   12. Print
   -------------------------------------------------------------------------- */
@media print {
    .wb .wb-bar, .wb .wb-actions, .wb .wb-status, .wb .wb-note, .site-footer{ display: none !important; }

    body{ background: #fff; font-size: 11pt; }
    body::before{ display: none; }

    .wb .wb-hero, .wb .wb-guiding{ color: var(--ink) !important; background: #fff !important; }
    .wb .wb-hero-media{ display: none; }
    .wb .wb-hero h1 em, .wb .wb-guiding .eyebrow, .wb .wb-meta dt{ color: var(--brass-text) !important; }
    .wb .wb-meta dd, .wb .wb-hero .wb-standfirst{ color: var(--ink) !important; }
    .wb .wb-guiding{ border: 1px solid var(--line); }

    .wb .section--dark{ color: var(--ink) !important; background: #fff !important; }
    .wb .wb-three li{ border-top-color: var(--line); }
    .wb .wb-three .wb-three-n{ color: var(--brass-text); }

    .wb .section{ padding: 18px 0; }
    .wb .wb-q{ page-break-inside: avoid; }

    .wb textarea, .wb input[type="text"]{
        background: #fff;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }
}

/* --------------------------------------------------------------------------
   13. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .wb .wb-action{ transition: none; }
    .wb .wb-action:hover{ transform: none; }
}
