/* Railway heritage: shared shell and editorial home-page presentation.
   Existing collection workflows retain their layout and behavior. */
:root {
    --paper: #f6f3ec;
    --surface: #fffefa;
    --ink: #102735;
    --muted: #5d6b70;
    --line: #dedfd9;
    --green: #173847;
    --green-soft: #e8eeed;
    --amber: #926326;
    --brass: #ba8743;
    --night: #102735;
}

.app-shell { grid-template-columns: 232px minmax(0, 1fr); }
.app-sidebar { background: var(--night); border: 0; padding: 32px 20px 24px; scrollbar-width: thin; scrollbar-color: #627781 var(--night); }
.brand { color: #f6f3ec; margin-bottom: 32px; font-size: 25px; }
.brand:hover { color: #e7c18a; }
.brand .rail-mark { color: #d2aa70; }
.brand small { color: #b5c4c9; font-size: 8px; letter-spacing: 1.5px; }
.primary-nav { gap: 3px; }
.nav-caption { color: #a5b8bf; margin-bottom: 9px; font-size: 9px; letter-spacing: 1.5px; }
.nav-caption-tools { margin-top: 23px; }
.primary-nav > a { color: #d0dce0; font-size: 12px; min-height: 43px; padding: 10px; border-radius: 3px; gap: 11px; }
.primary-nav > a:hover { color: #fff; background: #213e4c; }
.primary-nav > a.active { background: #284552; color: #fff; box-shadow: inset 3px 0 #d2aa70; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; opacity: .85; }
.primary-nav > a.active .nav-icon { color: #e3bf89; opacity: 1; }
.sidebar-account { border-color: #344b56; margin-top: 26px; padding-top: 18px; }
.sidebar-add { color: #f6f3ec; border-color: #657980; border-radius: 3px; }
.sidebar-add:hover { color: #fff; background: #284552; }
.signup-link, .signout, .account-name { color: #c3d1d7; }
.signup-link:hover, .signout:hover, .account-name:hover { color: #efcf9d; }
.sidebar-account .nav-caption { color: #a5b8bf; }
.sidebar-ticket { padding-top: 30px; }
.sidebar-publisher { border-top: 1px solid #344b56; padding-top: 22px; }
.sidebar-publisher img { display: block; width: 106px; height: auto; background: white; padding: 7px; border-radius: 3px; margin-bottom: 13px; }
.sidebar-publisher > span { color: #b5c4c9; font-size: 9px; letter-spacing: .8px; }
.sidebar-publisher strong { color: #d9e1e4; font-family: var(--sans); font-size: 10px; font-weight: 500; line-height: 1.6; letter-spacing: .2px; margin: 4px 0 0; }
.utility-bar { padding: 0 38px; color: #566970; min-height: 62px; font-size: 9px; letter-spacing: 1.6px; }
.domain-label { color: #647379; letter-spacing: 1.3px; }
.main-content { padding: 40px 38px 52px; }
.button, .btn { border-radius: 3px; }
.button.primary:hover, .btn-primary:hover { background: #294e60; border-color: #294e60; }
.button.secondary { border-color: #b6c0bf; }
.button.secondary:hover { background: #e8eeed; color: var(--night); }
.text-link { text-decoration-color: #acb8b6; }
.text-link:hover { color: #84591f; }
.app-footer { align-items: center; gap: 24px; padding: 24px 38px; }
.app-footer .footer-brand > span { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); letter-spacing: -.5px; }
.footer-brand > small { display: block; font-size: 11px; margin-top: 5px; }
.footer-owner { display: flex; align-items: center; gap: 13px; }
.footer-owner img { width: 68px; height: auto; background: #fff; padding: 4px; border: 1px solid var(--line); border-radius: 3px; }
.footer-owner > span { font-family: var(--sans); font-size: 10px; }
.footer-owner strong { display: block; font-size: 11px; color: var(--ink); font-weight: 600; margin-top: 3px; }

/* The public welcome is an editorial spread with a separate image caption. */
.railway-welcome { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 36px; align-items: center; margin-bottom: 40px; }
.welcome-copy { padding: 24px 0; }
.welcome-copy .eyebrow { margin-bottom: 27px; font-size: 10px; letter-spacing: 1.8px; }
.welcome-copy h1 { font-size: clamp(42px, 4.45vw, 74px); letter-spacing: -.055em; line-height: 1.04; margin-bottom: 26px; }
.welcome-copy h1 em { color: var(--amber); font-weight: 400; }
.welcome-copy > p { font-size: 14px; line-height: 1.9; max-width: 420px; margin-bottom: 28px; }
.welcome-copy .button-row { gap: 12px; }
.welcome-copy .button { min-height: 48px; padding: 13px 19px; font-size: 12px; }
.welcome-copy .button.primary { gap: 18px; }
.welcome-explore { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 11px; color: #52676e; padding-block: 5px; }
.welcome-explore:hover { color: #84591f; text-decoration: underline; text-underline-offset: 5px; }
.welcome-footnote { display: flex; align-items: center; gap: 13px; margin-top: 36px; color: #626f73; font-size: 8px; font-weight: 600; letter-spacing: 1.05px; }
.small-track { width: 47px; height: 7px; border-block: 1px solid #a67c43; background: repeating-linear-gradient(90deg, transparent 0 7px, #a67c43 7px 8px); flex-shrink: 0; }
.steam-portrait { min-width: 0; margin: 0; background: var(--night); }
.steam-portrait > img { display: block; width: 100%; height: clamp(360px, 34vw, 540px); object-fit: cover; object-position: 62% 50%; }
.steam-portrait figcaption { display: grid; grid-template-columns: 1fr auto; padding: 18px 22px; column-gap: 10px; align-items: center; }
.steam-portrait figcaption > span:first-child { color: #c1cfd3; font-size: 8px; letter-spacing: 1.6px; grid-column: 1; }
.steam-portrait figcaption > strong { grid-column: 1; color: #f6f3ec; font: 400 21px / 1.3 var(--serif); margin-top: 5px; letter-spacing: -.4px; }
.portrait-scale { grid-column: 2; grid-row: 1 / 3; color: #dbb77f; font-size: 8px; letter-spacing: 1px; writing-mode: vertical-rl; }
.collection-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; border-block: 1px solid #d6d9d3; padding: 29px 0 32px; scroll-margin-top: 24px; }
.collection-features article { padding-right: 18px; }
.collection-features article + article { border-left: 1px solid #d6d9d3; padding-left: 28px; }
.feature-index { display: flex; align-items: center; gap: 13px; font: italic 21px var(--serif); color: var(--amber); }
.feature-index > span { font: 600 9px var(--sans); letter-spacing: 1.7px; }
.collection-features h2 { font-size: 27px; margin: 17px 0 12px; letter-spacing: -.035em; }
.collection-features p { font-size: 12px; line-height: 1.85; margin: 0; max-width: 340px; }
.layout-story { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); gap: 44px; align-items: center; padding: 54px 0; }
.layout-story figure { margin: 0; }
.layout-story figure > img { display: block; width: 100%; aspect-ratio: 1.3; height: auto; object-fit: cover; }
.layout-story figcaption { display: flex; justify-content: space-between; gap: 15px; margin-top: 14px; font-size: 8px; letter-spacing: 1.3px; color: #5d6b70; }
.layout-story figcaption span { font-family: var(--serif); font-size: 12px; letter-spacing: 0; font-style: italic; }
.layout-story-copy .eyebrow { font-size: 9px; letter-spacing: 1.5px; }
.layout-story h2 { font-size: clamp(30px, 3.05vw, 44px); line-height: 1.12; margin: 21px 0; }
.layout-story-copy > p { font-size: 13px; line-height: 1.9; max-width: 430px; }
.layout-notes { padding: 5px 0 0; margin: 0 0 23px; list-style: none; }
.layout-notes li { display: flex; gap: 12px; margin-bottom: 12px; font-size: 11px; color: #405862; }
.layout-notes li::before { content: ''; width: 6px; height: 6px; border: 1px solid #a67c43; flex-shrink: 0; margin-top: 6px; transform: rotate(45deg); }
.community-invitation { background: #e9eeeb; border: 1px solid #d7dfda; padding: 30px 32px; display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.community-invitation h2 { font-size: 29px; margin-bottom: 13px; }
.community-invitation p { font-size: 12px; max-width: 480px; margin: 0; }
.community-invitation .button-row { flex-direction: column; align-items: flex-start; gap: 19px; flex-shrink: 0; }
.community-invitation .button.secondary { border-color: #6d8288; }

/* Authenticated dashboard: a compact reminder of the craft. */
.roster-feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--night); margin-bottom: 36px; overflow: hidden; }
.roster-feature-copy { padding: 31px 34px; }
.roster-feature .eyebrow { color: #dbb77f; font-size: 9px; }
.roster-feature h2 { color: #f6f3ec; font-size: 34px; line-height: 1.12; }
.roster-feature h2 em { color: #dfbd8d; }
.roster-feature p { color: #c4d2d5; font-size: 12px; max-width: 360px; }
.roster-feature .text-link { color: #f4e2c7; text-decoration-color: #8e9d99; }
.roster-feature > img { height: 100%; min-height: 280px; max-height: 340px; width: 100%; object-fit: cover; }
.stat-accent { background: #f1eadd; }

@media (min-width: 1600px) {
    .railway-welcome { gap: 58px; }
    .welcome-copy > p { font-size: 16px; }
    .welcome-copy .button { font-size: 13px; }
}
@media (max-width: 1200px) {
    .app-shell { grid-template-columns: 214px minmax(0, 1fr); }
    .app-sidebar { padding-inline: 16px; }
    .main-content { padding: 30px 28px 42px; }
    .utility-bar, .app-footer { padding-inline: 28px; }
    .railway-welcome { gap: 26px; }
    .welcome-copy h1 { font-size: 49px; }
    .welcome-copy > p { font-size: 13px; }
    .welcome-copy .button { font-size: 11px; padding-inline: 13px; }
    .welcome-footnote { letter-spacing: .5px; }
    .layout-story { gap: 30px; }
    .collection-features { gap: 20px; }
    .collection-features article + article { padding-left: 20px; }
    .collection-features h2 { font-size: 24px; }
    .community-invitation { flex-direction: column; align-items: flex-start; gap: 22px; }
    .community-invitation .button-row { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (min-width: 721px) and (max-width: 1000px) {
    .app-shell { grid-template-columns: 198px minmax(0, 1fr); }
    .primary-nav > a { font-size: 11px; padding-inline: 7px; gap: 8px; }
    .brand { font-size: 23px; }
    .railway-welcome { grid-template-columns: 1fr; }
    .welcome-copy { padding-top: 8px; }
    .welcome-copy h1 { font-size: 64px; }
    .welcome-copy > p { max-width: 500px; }
    .welcome-footnote { margin-top: 23px; }
    .steam-portrait > img { height: 350px; object-position: 60% 58%; }
    .collection-features { gap: 15px; }
    .collection-features h2 { font-size: 22px; }
    .collection-features article { padding-right: 0; }
    .collection-features article + article { padding-left: 15px; }
    .layout-story { grid-template-columns: 1fr; gap: 30px; }
    .layout-story figure > img { aspect-ratio: 1.6; }
    .roster-feature { grid-template-columns: 1fr; }
    .roster-feature > img { max-height: 260px; min-height: 0; }
    .app-footer { flex-wrap: wrap; }
}
@media (max-width: 720px) {
    .app-shell { display: block; }
    .app-sidebar { padding: 20px 20px 10px; border: 0; }
    .brand { font-size: 21px; margin-bottom: 20px; gap: 9px; max-width: calc(100% - 84px); }
    .brand small { font-size: 7px; letter-spacing: 1.1px; }
    .primary-nav { gap: 5px; scrollbar-color: #7c9098 var(--night); }
    .primary-nav > a { min-height: 44px; padding: 10px 12px; font-size: 11px; gap: 8px; }
    .primary-nav > a.active { box-shadow: inset 0 -2px #d2aa70; }
    .nav-icon { width: 16px; height: 16px; flex-basis: 16px; }
    .sidebar-account { top: 19px; right: 20px; padding: 0; margin: 0; }
    .sidebar-account .sidebar-add { min-height: 36px; padding: 7px 13px; }
    .sidebar-account .signup-link { display: none; }
    .sidebar-account .profile-account { max-width: 86px; font-size: 9px; }
    .sidebar-account .profile-account > span:last-child { display: none; }
    .sidebar-account .profile-avatar { width: 27px; height: 27px; }
    .sidebar-account .signout { min-height: 27px; padding: 0; }
    .sidebar-ticket { display: none; }
    .utility-bar { padding-inline: 20px; min-height: 38px; font-size: 7px; letter-spacing: 1.1px; }
    .domain-label { font-size: 7px; letter-spacing: .7px; }
    .main-content { padding: 26px 20px 34px; }
    .railway-welcome { grid-template-columns: 1fr; gap: 26px; margin-bottom: 30px; }
    .welcome-copy { padding: 6px 0 0; }
    .welcome-copy .eyebrow { font-size: 9px; margin-bottom: 21px; letter-spacing: 1.55px; }
    .welcome-copy h1 { font-size: clamp(40px, 12.3vw, 68px); line-height: 1.06; margin-bottom: 20px; }
    .welcome-copy > p { font-size: 13px; line-height: 1.85; margin-bottom: 22px; max-width: 500px; }
    .welcome-copy .button { font-size: 11px; min-height: 46px; padding: 12px 17px; }
    .welcome-explore { margin-top: 18px; font-size: 11px; min-height: 36px; }
    .welcome-footnote { display: none; }
    .steam-portrait > img { height: 300px; object-position: 62% 54%; }
    .steam-portrait figcaption { padding: 16px 18px; }
    .steam-portrait figcaption > strong { font-size: 23px; }
    .collection-features { grid-template-columns: 1fr; gap: 0; padding: 0; }
    .collection-features article { padding: 25px 0; }
    .collection-features article + article { padding: 25px 0; border-left: 0; border-top: 1px solid #d6d9d3; }
    .collection-features h2 { font-size: 29px; margin: 12px 0 10px; }
    .collection-features p { max-width: 500px; font-size: 12px; }
    .layout-story { grid-template-columns: 1fr; gap: 30px; padding: 34px 0; }
    .layout-story figure > img { aspect-ratio: 1.25; }
    .layout-story figcaption { font-size: 7px; letter-spacing: 1px; }
    .layout-story figcaption span { font-size: 11px; }
    .layout-story h2 { font-size: 36px; margin: 19px 0; }
    .layout-story-copy > p { font-size: 13px; }
    .layout-notes li { font-size: 11px; }
    .community-invitation { padding: 25px 22px; gap: 22px; }
    .community-invitation h2 { font-size: 31px; }
    .community-invitation .button-row { gap: 20px; }
    .roster-feature { grid-template-columns: 1fr; margin-bottom: 29px; }
    .roster-feature-copy { padding: 27px; }
    .roster-feature h2 { font-size: 32px; }
    .roster-feature > img { height: 220px; min-height: 0; }
    .app-footer { padding: 23px 20px; flex-direction: column; align-items: flex-start; gap: 22px; }
    .app-footer .footer-brand > span { font-size: 21px; }
    .footer-brand > small { font-size: 10px; }
    .footer-owner { width: 100%; border-top: 1px solid var(--line); padding-top: 18px; }
    .footer-owner strong { font-size: 10px; }
}
@media (max-width: 380px) {
    .brand { font-size: 18px; }
    .brand small { font-size: 6px; }
    .main-content { padding-inline: 16px; }
    .welcome-copy .button-row { gap: 9px; }
    .welcome-copy .button { padding-inline: 13px; }
    .steam-portrait > img { height: 270px; }
    .layout-story h2 { font-size: 32px; }
}
@media print {
    .railway-welcome, .layout-story, .roster-feature { break-inside: avoid; }
    .roster-feature { background: white; border: 1px solid #999; }
    .roster-feature h2, .roster-feature p, .roster-feature .text-link { color: #102735; }
}
