/* =============================================================================
   /real-estate
   =============================================================================
   Page-specific components: the week, the how steps, the day timeline, the
   series, the connects lists, the builder. Everything else is brand.css.
   ============================================================================= */

.hero__line {
    margin-top: var(--space-l);
    max-width: 56rem;
}

/* --- Where the week goes ------------------------------------------------- */
.week {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
    background: var(--white);
    overflow: hidden;
}

@media (max-width: 1000px) { .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .week { grid-template-columns: minmax(0, 1fr); } }

.week__item {
    padding: clamp(1.1rem, 0.9rem + 0.9vw, 1.6rem);
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.week__item:last-child { border-right: 0; }

@media (min-width: 1001px) {
    .week__item { border-bottom: 0; }
}

.week__n { font-size: 0.78rem; color: var(--amber); }

.week__name {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 500;
    font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 24;
    line-height: 1.2;
    margin: 0;
}

.week__now {
    font-size: var(--step--1);
    color: var(--fg-muted);
    margin: 0;
}

.week__worth {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--slate-400);
    margin: 0.35rem 0 0;
    padding-top: 0.6rem;
    border-top: 1px solid var(--rule);
}

/* --- What white glove means ---------------------------------------------- */
.how {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--rule);
}

.how__step {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: var(--space-s);
    padding: var(--space-m) 0;
    border-bottom: 1px solid var(--rule);
}

.how__n { color: var(--amber); font-size: 0.85rem; padding-top: 0.35rem; }

.how__name {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 500;
    font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 24;
    margin: 0 0 0.35rem;
}

.how__step p { margin: 0; color: var(--fg-muted); font-size: var(--step--1); }

/* --- A day on scheduled tasks -------------------------------------------
   The rail is the page's one signature motion: it draws down as the section
   reveals, and each node lights as its item arrives. */
.day {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 0;
    display: grid;
    gap: var(--space-m);
}

.day::before {
    content: '';
    position: absolute;
    left: 5.5rem;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 1px;
    background: var(--rule-strong);
    transform-origin: top;
}

.js-motion .day::before {
    transform: scaleY(0);
    transition: transform 900ms var(--ease-out);
}

.js-motion .day.is-revealed::before { transform: scaleY(1); }

.day__item {
    position: relative;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: var(--space-m);
    align-items: start;
}

.day__item::before {
    content: '';
    position: absolute;
    left: calc(5.5rem - 5px);
    top: 0.45rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--amber-bright);
    box-shadow: 0 0 0 4px var(--paper-2);
}

.day__time {
    font-size: 0.8rem;
    color: var(--slate-500);
    padding-top: 0.25rem;
    text-align: right;
}

.day__body {
    padding: var(--space-s) var(--space-m);
    border: 1px solid var(--rule);
    border-radius: var(--radius-m);
    background: var(--white);
    display: grid;
    gap: 0.5rem;
}

.day__name {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 500;
    font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 24;
    margin: 0;
}

.day__runs { margin: 0; color: var(--fg-muted); font-size: var(--step--1); }

.day__approve {
    margin: 0.2rem 0 0;
    padding-top: 0.6rem;
    border-top: 1px solid var(--rule);
    font-size: var(--step--1);
    color: var(--slate-600);
}

.day__you {
    display: inline-block;
    margin-right: 0.4rem;
    padding: 0.05rem 0.45rem;
    border-radius: var(--radius-s);
    background: var(--amber-wash);
    color: var(--amber);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .day::before { left: 0.55rem; }
    .day__item { grid-template-columns: minmax(0, 1fr); gap: 0.3rem; padding-left: 1.8rem; }
    .day__item::before { left: 0.55rem; transform: translateX(-5px); }
    .day__time { text-align: left; }
}

/* --- Series -------------------------------------------------------------- */
.series {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--space-l);
    align-items: start;
}

@media (max-width: 900px) { .series { grid-template-columns: minmax(0, 1fr); } }

.series__stage { position: sticky; top: 5.5rem; }

@media (max-width: 900px) { .series__stage { position: static; } }

.series__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}

.series__ep {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: var(--space-s);
    align-items: start;
    padding: var(--space-s) 0.4rem;
    margin: 0 -0.4rem;
    border-bottom: 1px solid var(--rule);
    border-radius: var(--radius-s);
    transition: background var(--dur-fast) var(--ease-out);
}

.series__ep.is-live { cursor: pointer; }
.series__ep.is-live:hover { background: var(--paper-2); }
.series__ep.is-current { background: var(--paper-2); }

.series__n { color: var(--amber); font-size: 0.8rem; padding-top: 0.2rem; }

.series__text { display: grid; gap: 0.2rem; }
.series__title { font-weight: 600; color: var(--fg); }
.series__blurb { font-size: 0.85rem; color: var(--slate-500); line-height: 1.5; }

.series__meta {
    display: grid;
    justify-items: end;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--slate-400);
    white-space: nowrap;
}

/* --- Connects lists ------------------------------------------------------ */
.connects {
    list-style: none;
    margin: var(--space-s) 0 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--rule);
}

.connects li {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: var(--space-s);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--rule);
}

.connects strong { display: block; font-size: var(--step--1); color: var(--fg); }
.connects small { display: block; font-size: 0.82rem; color: var(--slate-500); line-height: 1.5; }

/* --- Proof quote, smaller ----------------------------------------------- */
.quote--small { margin: var(--space-s) 0; }
.quote--small .quote__text { font-size: var(--step-1); margin: 0; }

/* --- "Not for" ticks become crosses ------------------------------------- */
.ticks--no li::before {
    content: '\00d7';
    color: var(--slate-400);
    font-weight: 600;
}

/* --- Meet Pat ------------------------------------------------------------ */
.pat__player { box-shadow: var(--shadow-l); }

/* --- Hero with Meet Pat beside the words --------------------------------- */
.hero--re .hero__aside { display: grid; gap: var(--space-s); }
.hero--re .hero__line { margin-top: var(--space-xl); }
.hero__caption {
    margin: 0;
    font-size: var(--step--1);
    line-height: 1.55;
    color: var(--slate-500);
}

/* --- Progressive disclosure: the long sections behind one line each ----
   templates/pages/real-estate/_detail.html wraps a whole section in a
   details element. The summary carries kicker, title and a one-line blurb;
   the section inside is flattened (no band, no rule, no second wrap) so it
   reads as the body of the disclosure rather than a page inside a page. */
.detail { border-top: 1px solid var(--rule); }

.disclosure--section summary {
    align-items: flex-start;
    padding: var(--space-m) 0;
}

.disclosure--section summary::after {
    margin-top: 1rem;
    width: 0.7rem;
    height: 0.7rem;
}

.disclosure__label { display: grid; gap: 0.25rem; }

.disclosure__kicker {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
}

.disclosure__title {
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 500;
    font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 28;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--fg);
}

.disclosure__blurb {
    font-weight: 400;
    font-size: 1rem;
    color: var(--slate-500);
}

.disclosure--section > .disclosure__body { padding: 0 0 var(--space-m); color: inherit; }

.disclosure--section .section {
    padding-top: 0;
    padding-bottom: var(--space-s);
    background: transparent;
    border: 0;
}

.disclosure--section .section .wrap {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.disclosure--section .section__head { margin-bottom: var(--space-m); }
.disclosure--section .section__title { font-size: var(--step-1); }

@media (max-width: 640px) {
    .disclosure--section summary { padding: var(--space-s) 0; }
}

/* Inside a disclosure the summary already carries the heading, so the
   section keeps its lede and body and drops its own eyebrow and title. */
.disclosure--section .section__head > .eyebrow,
.disclosure--section .section__head > .section__title,
.disclosure--section .split > div > .eyebrow,
.disclosure--section .split > div > .section__title { display: none; }
