

      :root {
        --ink: #202720;
        --muted: #687068;
        --paper: #f5f4ed;
        --white: #fffef9;
        --line: #dcded3;
        --pine: #23483a;
        --sage: #91a66c;
        --gold: #d2a84a;
        --radius: 8px;
      }
      * {
        box-sizing: border-box;
      }
      body {
        margin: 0;
        background: var(--paper);
        color: var(--ink);
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;
        line-height: 1.6;
      }
      a {
        color: inherit;
        text-decoration: none;
      }
      a:hover {
        text-decoration: underline;
        text-underline-offset: 4px;
      }
      button,
      input,
      select,
      textarea {
        font: inherit;
      }
      button,
      .button {
        cursor: pointer;
      }
      button {
        color: inherit;
      }
      button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
      button,
      a,
      input,
      select,
      textarea {
        outline-offset: 4px;
      }
      button:focus-visible,
      a:focus-visible {
        outline: 3px solid #b56d3d;
      }
      h1,
      h2,
      h3,
      h4,
      p {
        margin-top: 0;
      }
      h1,
      h2,
      h3 {
        line-height: 1.13;
        letter-spacing: -0.035em;
      }
      h1 {
        font-size: clamp(36px, 5vw, 68px);
        max-width: 1000px;
        margin-bottom: 22px;
      }
      h2 {
        font-size: 32px;
        margin-bottom: 18px;
      }
      h3 {
        font-size: 22px;
      }
      p {
        margin-bottom: 18px;
      }
      small {
        font-size: 12px;
      }
      .reviewbar {
        height: 31px;
        background: #202720;
        color: #e9ecdf;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 4%;
        font-size: 10px;
        letter-spacing: 0.13em;
      }
      .reviewbar > span:first-child {
        color: #d2a84a;
        font-weight: bold;
      }
      .reviewbar a {
        letter-spacing: 0.03em;
      }
      header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
        padding: 24px 4%;
        border-bottom: 1px solid var(--line);
        background: var(--white);
      }
      .brand {
        display: flex;
        align-items: center;
        gap: 11px;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: -0.04em;
        line-height: 1.1;
        white-space: nowrap;
      }
      .brand small {
        display: block;
        font-size: 9px;
        letter-spacing: 0.24em;
        margin-top: 5px;
        font-weight: 500;
      }
      .brandmark {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        position: relative;
        border: 2px solid var(--ink);
        font-size: 38px;
        line-height: 1;
        border-radius: 50%;
        padding-bottom: 7px;
      }
      .brandmark span {
        position: absolute;
        font-size: 11px;
        bottom: -4px;
        right: 0;
        color: var(--pine);
        background: var(--white);
        padding: 1px;
      }
      nav {
        display: flex;
        gap: 28px;
        font-size: 13px;
        font-weight: bold;
      }
      nav a {
        padding: 9px 0;
        border-bottom: 2px solid transparent;
      }
      nav a.active {
        border-color: var(--pine);
      }
      .header-search {
        border: 1px solid var(--line);
        border-radius: 30px;
        padding: 6px 15px;
        font-size: 14px;
      }
      .header-search:first-letter {
        font-size: 23px;
      }
      .wrap {
        max-width: 1320px;
        margin: auto;
        padding: 52px 4%;
      }
      .eyebrow {
        font-size: 11px;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        font-weight: bold;
        display: block;
        margin-bottom: 15px;
      }
      .muted {
        color: var(--muted);
      }
      .lead {
        font-size: 18px;
        max-width: 680px;
        color: var(--muted);
      }
      .button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        border: 1px solid var(--pine);
        background: var(--pine);
        color: white;
        border-radius: 4px;
        padding: 12px 21px;
        font-size: 13px;
        font-weight: bold;
        line-height: 1.4;
        text-decoration: none;
      }
      .button:hover {
        background: #17382c;
        text-decoration: none;
      }
      .button.secondary {
        background: transparent;
        color: var(--ink);
        border-color: #bfc4b7;
      }
      .button.secondary:hover {
        background: #e8ecdf;
      }
      .button.light {
        background: #f5f4ed;
        border-color: #f5f4ed;
        color: var(--pine);
      }
      .button.small {
        padding: 8px 13px;
        font-size: 12px;
      }
      .actions {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
      }
      .hero {
        display: grid;
        grid-template-columns: 1.07fr 1fr;
        min-height: 515px;
        background: var(--pine);
        color: white;
        position: relative;
        overflow: hidden;
      }
      .hero-copy {
        padding: 65px 4vw 65px max(4vw, calc((100vw - 1220px) / 2));
        z-index: 1;
      }
      .hero .eyebrow {
        color: #c1d0af;
      }
      .hero h1 {
        font-size: clamp(45px, 5vw, 76px);
        line-height: 0.99;
        letter-spacing: -0.06em;
        margin: 25px 0;
      }
      .hero h1 em {
        font-style: normal;
        color: #d2a84a;
      }
      .hero p {
        color: #d7dfcf;
        max-width: 430px;
        line-height: 1.75;
        font-size: 15px;
      }
      .hero .actions {
        margin-top: 28px;
      }
      .hero-art {
        min-width: 0;
        position: relative;
        background: #2e5143;
        display: flex;
        align-items: end;
      }
      .hero-art svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .art-caption {
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: space-between;
        align-items: end;
        padding: 30px;
        width: 100%;
        font-size: 12px;
        color: #e6ecdc;
        letter-spacing: 0.1em;
      }
      .art-caption strong {
        font-size: 28px;
        letter-spacing: 0.05em;
      }
      .hero-number {
        position: absolute;
        top: 30px;
        right: 32px;
        font-size: 10px;
        letter-spacing: 0.2em;
        color: #d6dfce;
        border: 1px solid #96a891;
        padding: 6px 10px;
      }
      .strip {
        display: flex;
        border-bottom: 1px solid var(--line);
        padding: 20px 4%;
        gap: 35px;
        align-items: center;
        font-size: 12px;
        background: #e9ecdf;
      }
      .strip strong {
        font-size: 17px;
        margin-right: 6px;
      }
      .strip .right {
        margin-left: auto;
      }
      .section-head {
        display: flex;
        justify-content: space-between;
        align-items: end;
        gap: 20px;
        margin-bottom: 26px;
      }
      .section-head h2 {
        margin-bottom: 0;
      }
      .section-head .eyebrow {
        margin-bottom: 10px;
      }
      .section-head > a {
        font-size: 13px;
        font-weight: bold;
      }
      .grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
      }
      .grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .card {
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 25px;
        position: relative;
        min-width: 0;
      }
      .card h3 {
        margin: 15px 0;
      }
      .card p {
        font-size: 14px;
        color: var(--muted);
      }
      .card .bottom {
        margin-top: 25px;
        padding-top: 15px;
        border-top: 1px solid var(--line);
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        font-size: 11px;
        color: var(--muted);
      }
      .guide-card {
        border-top: 4px solid var(--biome, var(--pine));
        transition:
          transform 0.15s,
          box-shadow 0.15s;
      }
      .guide-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 18px #20272009;
      }
      .badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3px 8px;
        border-radius: 3px;
        background: #e9ecdf;
        color: #3c503a;
        font-size: 10px;
        font-weight: bold;
        letter-spacing: 0.04em;
        line-height: 1.8;
      }
      .badge::before {
        content: "";
        width: 5px;
        height: 5px;
        background: currentColor;
        border-radius: 50%;
      }
      .badge.outline {
        background: transparent;
        border: 1px solid var(--line);
        color: var(--muted);
      }
      .badge.amber {
        background: #f1e9d3;
        color: #705620;
      }
      .badge.biome {
        background: var(--biome, var(--pine));
        color: white;
      }
      .line-link {
        font-size: 13px;
        font-weight: bold;
      }
      .chapter-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border-left: 1px solid var(--line);
        border-top: 1px solid var(--line);
      }
      .chapter {
        padding: 22px 17px;
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        background: var(--white);
        display: flex;
        flex-direction: column;
        min-height: 132px;
        gap: 12px;
      }
      .chapter:hover {
        background: #edf0e5;
        text-decoration: none;
      }
      .chapter-num {
        font-size: 11px;
        color: var(--muted);
        display: flex;
        justify-content: space-between;
      }
      .chapter-color {
        width: 18px;
        height: 4px;
        background: var(--biome);
      }
      .chapter strong {
        font-size: 15px;
      }
      .chapter small {
        color: var(--muted);
        margin-top: auto;
      }
      .split-feature {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 55px;
        background: #e7eadf;
        border: 1px solid var(--line);
      }
      .split-feature > div {
        padding: 38px;
      }
      .split-feature > div + div {
        border-left: 1px solid #cbd1c1;
      }
      .split-feature h2 {
        font-size: 36px;
      }
      .split-feature p {
        color: #5d6858;
        max-width: 420px;
      }
      .quote {
        font-size: 22px !important;
        color: var(--ink) !important;
        line-height: 1.5;
      }
      .page-head {
        padding-bottom: 30px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 30px;
      }
      .page-head h1 {
        font-size: 48px;
      }
      .toolbar {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin: 25px 0;
      }
      .toolbar input {
        min-width: 220px;
        flex: 2;
      }
      .toolbar select {
        flex: 1;
        min-width: 140px;
      }
      input,
      select,
      textarea {
        background: var(--white);
        border: 1px solid #bbc3b4;
        border-radius: 4px;
        padding: 11px 12px;
        width: 100%;
        color: var(--ink);
        font-size: 14px;
      }
      textarea {
        min-height: 120px;
        resize: vertical;
      }
      label {
        display: block;
        font-size: 12px;
        font-weight: bold;
        margin-bottom: 5px;
      }
      .countline {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: var(--muted);
        margin-bottom: 18px;
      }
      .tabs {
        display: flex;
        gap: 22px;
        border-bottom: 1px solid var(--line);
        margin: 0 0 28px;
        overflow: auto;
      }
      .tabs a {
        font-size: 13px;
        white-space: nowrap;
        padding: 12px 0;
      }
      .tabs a.selected {
        border-bottom: 3px solid var(--pine);
        font-weight: bold;
      }
      .empty {
        text-align: center;
        border: 1px dashed #b8c3ac;
        border-radius: 8px;
        background: #ecefe4;
        padding: 50px 25px;
      }
      .empty .empty-icon {
        display: block;
        font-size: 35px;
        color: #55734c;
        margin-bottom: 10px;
      }
      .empty h3 {
        margin-bottom: 10px;
      }
      .empty p {
        max-width: 500px;
        margin: 0 auto 20px;
        color: var(--muted);
        font-size: 14px;
      }
      .breadcrumb {
        font-size: 11px;
        color: var(--muted);
        margin-bottom: 25px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }
      .reader-layout {
        display: grid;
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 50px;
      }
      .reader-side {
        align-self: start;
        position: sticky;
        top: 25px;
        max-height: 90vh;
        overflow: auto;
        font-size: 12px;
      }
      .reader-side a {
        display: block;
        margin: 12px 0;
        line-height: 1.4;
        color: #52604b;
      }
      .reader-side .eyebrow {
        border-bottom: 1px solid var(--line);
        padding-bottom: 12px;
      }
      .reader-head h1 {
        font-size: 44px;
        letter-spacing: -0.04em;
        margin: 18px 0;
      }
      .reader-head .lead {
        font-size: 16px;
      }
      .meta {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        color: var(--muted);
        font-size: 11px;
        margin: 18px 0;
      }
      .notice {
        padding: 15px 18px;
        border-left: 3px solid var(--gold);
        background: #efecdf;
        font-size: 12px;
        color: #615538;
        margin: 22px 0;
      }
      .article {
        background: var(--white);
        padding: 35px;
        border: 1px solid var(--line);
        border-top: 4px solid var(--biome);
        border-radius: 6px;
        font-size: 15px;
        line-height: 1.8;
        overflow-wrap: anywhere;
      }
      .article h2 {
        font-size: 25px;
        color: var(--biome);
        margin: 40px 0 16px;
        scroll-margin-top: 20px;
      }
      .article h3 {
        font-size: 20px;
        margin: 30px 0 15px;
        color: var(--biome);
      }
      .article h4 {
        font-size: 16px;
        margin: 24px 0 12px;
      }
      .article p {
        margin-bottom: 16px;
      }
      .article a {
        color: #315f69;
        text-decoration: underline;
      }
      .article .subtitle {
        font-size: 16px;
        color: var(--muted);
      }
      .article .bullet {
        padding-left: 18px;
        position: relative;
      }
      .article .bullet::before {
        content: "•";
        position: absolute;
        left: 0;
      }
      .table-wrap {
        overflow: auto;
        margin: 22px 0;
        max-width: 100%;
        border: 1px solid var(--line);
        border-radius: 4px;
      }
      table {
        width: 100%;
        border-collapse: collapse;
        min-width: 460px;
        font-size: 12px;
        line-height: 1.6;
      }
      th {
        text-align: left;
        background: var(--biome, var(--pine));
        color: white;
        font-weight: bold;
      }
      td,
      th {
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
        vertical-align: top;
      }
      tr:nth-child(even) {
        background: #f3f4ed;
      }
      td p,
      th p {
        margin: 0 !important;
      }
      td p + p {
        margin-top: 6px !important;
      }
      .article table h2,
      .article table h3 {
        font-size: 13px;
        margin: 0;
      }
      .article .import-text {
        white-space: pre-wrap;
        font-size: 14px;
      }
      .reader-related {
        margin-top: 35px;
      }
      .reader-related .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .learning-card .comparison {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        margin: 20px 0;
      }
      .comparison label {
        font-size: 10px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
      }
      .comparison p {
        font-size: 14px;
        color: var(--ink);
      }
      .testline {
        background: #f0f2e9;
        padding: 15px;
        font-size: 12px;
      }
      .timeline {
        border-left: 1px solid #b8c3ab;
        padding-left: 30px;
        margin: 30px 0;
      }
      .timeline .card {
        margin-bottom: 20px;
      }
      .session-date {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--muted);
      }
      .watch-hero {
        background: #202d26;
        color: white;
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 35px;
      }
      .watch-hero > div {
        padding: 40px;
      }
      .watch-hero h2 {
        font-size: 38px;
      }
      .watch-hero p {
        color: #c3cdbb;
      }
      .watch-art {
        position: relative;
        min-height: 260px;
        background: #304b3c;
        display: grid;
        place-content: center;
      }
      .watch-art svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
      }
      .watch-art .play {
        position: relative;
        width: 64px;
        height: 64px;
        display: grid;
        place-items: center;
        background: #f5f4eddd;
        border-radius: 50%;
        color: #23483a;
        font-size: 26px;
      }
      .video {
        aspect-ratio: 16/9;
        background: #202d26;
        border-radius: 8px;
        display: grid;
        place-content: center;
        color: #dee5d4;
        overflow: hidden;
        margin: 25px 0;
        text-align: center;
        padding: 20px;
      }
      .video:has(iframe) {
        padding: 0;
        display: block;
      }
      .video iframe {
        border: 0;
        width: 100%;
        height: 100%;
      }
      .episode-row {
        display: grid;
        grid-template-columns: 55px 1fr auto;
        gap: 20px;
        padding: 22px;
        border-bottom: 1px solid var(--line);
        align-items: center;
        background: var(--white);
      }
      .episode-row strong {
        font-size: 18px;
      }
      .episode-row p {
        margin: 6px 0 0;
        color: var(--muted);
        font-size: 13px;
      }
      .episode-num {
        font-size: 28px;
        color: #91a66c;
      }
      .studio-banner {
        display: flex;
        gap: 20px;
        align-items: center;
        justify-content: space-between;
        background: #202d26;
        color: white;
        padding: 24px;
        border-radius: 7px;
        margin-bottom: 25px;
      }
      .studio-banner p {
        font-size: 12px;
        color: #cad3c2;
        margin: 5px 0 0;
      }
      .studio-stats {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        margin: 25px 0;
      }
      .stat {
        border: 1px solid var(--line);
        padding: 20px;
        background: var(--white);
        border-radius: 6px;
      }
      .stat strong {
        font-size: 30px;
        display: block;
        line-height: 1.2;
      }
      .stat span {
        font-size: 11px;
        color: var(--muted);
      }
      .studio-list {
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 6px;
        overflow: hidden;
      }
      .studio-row {
        padding: 14px 18px;
        border-bottom: 1px solid var(--line);
        display: flex;
        gap: 15px;
        align-items: center;
        font-size: 13px;
      }
      .studio-row:last-child {
        border: 0;
      }
      .studio-row .rowtitle {
        flex: 1;
        min-width: 0;
      }
      .studio-row small {
        display: block;
        color: var(--muted);
        margin-top: 3px;
      }
      .text-button {
        border: 0;
        background: none;
        font-size: 12px;
        font-weight: bold;
        color: var(--pine);
        padding: 8px;
        cursor: pointer;
      }
      .danger {
        color: #963d32;
      }
      .studio-row .row-actions {
        display: flex;
        gap: 6px;
      }
      .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
      }
      .form-grid .full {
        grid-column: 1/-1;
      }
      .form-help {
        font-size: 12px;
        color: var(--muted);
        margin: 4px 0 0;
      }
      .form-section {
        padding-top: 18px;
        border-top: 1px solid var(--line);
        margin-top: 5px;
        grid-column: 1/-1;
      }
      .checks {
        max-height: 170px;
        overflow: auto;
        border: 1px solid var(--line);
        padding: 12px;
        border-radius: 4px;
      }
      .check {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 6px 0;
        font-size: 12px;
        font-weight: normal;
      }
      .check input {
        width: auto;
      }
      .check small {
        font-size: 10px;
        color: var(--muted);
      }
      dialog {
        width: min(820px, 95vw);
        border: 1px solid #b9c4ad;
        border-radius: 10px;
        padding: 30px;
        background: var(--paper);
        max-height: 90vh;
        color: var(--ink);
      }
      dialog::backdrop {
        background: #15231acc;
        backdrop-filter: blur(3px);
      }
      .modal-head {
        display: flex;
        justify-content: space-between;
        align-items: start;
        gap: 20px;
      }
      .modal-head h2 {
        font-size: 28px;
      }
      .modal-close {
        background: none;
        border: 0;
        font-size: 25px;
        cursor: pointer;
      }
      .modal-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        border-top: 1px solid var(--line);
        padding-top: 20px;
        margin-top: 25px;
      }
      .form-error {
        color: #963d32;
        font-size: 13px;
      }
      .prose {
        max-width: 800px;
      }
      .prose p {
        color: #56614f;
      }
      .prose h2 {
        margin-top: 35px;
      }
      .about-steps {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        margin-top: 35px;
      }
      .about-steps strong {
        font-size: 40px;
        color: #91a66c;
      }
      .about-steps h3 {
        margin: 15px 0;
      }
      .about-steps p {
        font-size: 14px;
      }
      .result {
        white-space: pre-wrap;
      }
      .skip {
        position: absolute;
        top: -80px;
        padding: 10px;
        background: white;
        z-index: 10;
      }
      .skip:focus {
        top: 0;
      }
      #toast {
        position: fixed;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        background: #202d26;
        color: white;
        padding: 12px 22px;
        border-radius: 6px;
        font-size: 13px;
        box-shadow: 0 5px 30px #0003;
        z-index: 100;
        max-width: 90vw;
        display: none;
      }
      footer {
        border-top: 1px solid var(--line);
        padding: 40px 4%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        background: #e9ecdf;
      }
      footer strong {
        font-size: 18px;
        letter-spacing: -0.03em;
      }
      footer p {
        font-size: 12px;
        margin: 6px 0;
      }
      footer > div:nth-child(2) {
        display: flex;
        gap: 25px;
        justify-content: end;
        font-size: 12px;
      }
      footer small {
        grid-column: 1/-1;
        color: #65705d;
      }
      .saved-mark {
        font-size: 14px;
        border: 0;
        background: transparent;
        color: var(--pine);
        cursor: pointer;
      }
      .backtotop {
        display: block;
        text-align: right;
        margin-top: 20px;
        font-size: 12px;
      }
      .statusdot {
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--sage);
        margin-right: 8px;
      }
      .guide-jump {
        background: #e9ecdf;
        padding: 25px;
        border-radius: 6px;
        margin-bottom: 30px;
      }
      .guide-jump h3 {
        font-size: 20px;
      }
      .guide-jump a {
        font-size: 13px;
        text-decoration: underline;
      }
      .import-status {
        font-size: 11px;
        color: var(--muted);
      }
      @media (min-width: 1500px) {
        .hero-copy {
          padding-left: calc((100vw - 1220px) / 2);
        }
        .hero {
          min-height: 560px;
        }
      }
      @media (max-width: 1050px) {
        header {
          flex-wrap: wrap;
          gap: 16px;
        }
        nav {
          order: 3;
          width: 100%;
          justify-content: center;
        }
        .hero-copy {
          padding: 45px 6%;
        }
        .reader-layout {
          grid-template-columns: 180px minmax(0, 1fr);
          gap: 25px;
        }
        .chapter-grid {
          grid-template-columns: repeat(3, 1fr);
        }
        .grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }
      @media (max-width: 680px) {
        .reviewbar > span:nth-child(2) {
          display: none;
        }
        header {
          padding: 18px 5%;
        }
        .brand {
          font-size: 16px;
        }
        .header-search span {
          display: none;
        }
        nav {
          gap: 19px;
          justify-content: start;
          overflow: auto;
          font-size: 12px;
        }
        .hero {
          grid-template-columns: 1fr;
        }
        .hero-copy {
          padding: 40px 6% 30px;
        }
        .hero h1 {
          font-size: 54px;
        }
        .hero-art {
          min-height: 240px;
        }
        .hero-number {
          top: 20px;
        }
        .art-caption {
          padding: 22px;
        }
        .strip {
          gap: 15px;
          flex-wrap: wrap;
          font-size: 11px;
        }
        .strip .right {
          margin-left: 0;
        }
        .wrap {
          padding: 35px 5%;
        }
        .grid,
        .grid.two,
        .reader-related .grid {
          grid-template-columns: 1fr;
        }
        .section-head {
          align-items: start;
        }
        .section-head h2 {
          font-size: 27px;
        }
        .chapter-grid {
          grid-template-columns: repeat(2, 1fr);
        }
        .chapter {
          min-height: 115px;
        }
        .split-feature {
          grid-template-columns: 1fr;
        }
        .split-feature > div {
          padding: 26px;
        }
        .split-feature > div + div {
          border-left: 0;
          border-top: 1px solid #cbd1c1;
        }
        .page-head h1 {
          font-size: 37px;
        }
        .reader-layout {
          grid-template-columns: 1fr;
          gap: 15px;
        }
        .reader-side {
          position: static;
          max-height: 190px;
          border: 1px solid var(--line);
          padding: 15px;
        }
        .reader-head h1 {
          font-size: 34px;
        }
        .article {
          padding: 22px 18px;
          font-size: 15px;
        }
        .article h2 {
          font-size: 23px;
        }
        .learning-card .comparison {
          grid-template-columns: 1fr;
          gap: 5px;
        }
        .watch-hero {
          grid-template-columns: 1fr;
        }
        .watch-hero > div {
          padding: 27px;
        }
        .watch-art {
          min-height: 180px;
        }
        .studio-stats {
          grid-template-columns: repeat(2, 1fr);
        }
        .studio-banner {
          flex-direction: column;
          align-items: start;
        }
        .studio-row {
          align-items: start;
          flex-wrap: wrap;
        }
        .studio-row .rowtitle {
          min-width: 60%;
        }
        .studio-row .row-actions {
          margin-left: auto;
        }
        .form-grid {
          grid-template-columns: 1fr;
        }
        .form-grid .full {
          grid-column: auto;
        }
        dialog {
          padding: 22px;
        }
        .about-steps {
          grid-template-columns: 1fr;
        }
        .episode-row {
          grid-template-columns: 35px 1fr;
          gap: 12px;
        }
        .episode-row > .button {
          grid-column: 2;
          justify-self: start;
        }
        footer {
          grid-template-columns: 1fr;
        }
        footer > div:nth-child(2) {
          justify-content: start;
          flex-wrap: wrap;
        }
        footer small {
          grid-column: auto;
        }
        .toolbar select {
          min-width: 110px;
        }
        .toolbar input {
          min-width: 100%;
        }
        .timeline {
          padding-left: 15px;
        }
        .actions {
          gap: 8px;
        }
      }
      @media print {
        header,
        .reviewbar,
        footer,
        .reader-side,
        .actions,
        .notice,
        .reader-related,
        .backtotop {
          display: none !important;
        }
        .wrap {
          padding: 0;
        }
        .reader-layout {
          display: block;
        }
        .article {
          border: 0;
          padding: 0;
        }
        body {
          background: white;
        }
        h2,
        h3 {
          break-after: avoid;
        }
        tr {
          break-inside: avoid;
        }
        .table-wrap {
          overflow: visible;
        }
        table {
          min-width: 0;
        }
        a {
          color: inherit !important;
        }
      }
      /* Midnight wiki redesign */
      :root {
        --ink: #e4e7e2;
        --muted: #949c95;
        --paper: #080a09;
        --white: #111512;
        --line: #272f29;
        --pine: #91a66c;
        --sage: #91a66c;
        --gold: #d2a84a;
        color-scheme: dark;
      }
      body {
        background: #080a09;
        color: var(--ink);
      }
      header {
        background: #0b0e0c;
        padding-top: 20px;
        padding-bottom: 20px;
        border-bottom-color: #252c26;
      }
      .brandmark {
        color: #c3cfb5;
        border-color: #c3cfb5;
      }
      .brandmark span {
        background: #0b0e0c;
      }
      .reviewbar {
        background: #050605;
        color: #858e84;
        border-bottom: 1px solid #1d241e;
      }
      .reviewbar > span:first-child {
        color: #9aa48d;
      }
      .header-search {
        color: #bbc7b5;
        border-color: #313b31;
      }
      nav a.active {
        border-color: #91a66c;
      }
      footer {
        background: #0c100d;
        color: #c1c7be;
        border-color: #242e26;
      }
      footer small {
        color: #7f8a7f;
      }
      footer p {
        color: #99a295;
      }
      .button {
        background: #b6c59a;
        border-color: #b6c59a;
        color: #151e11;
      }
      .button:hover {
        background: #c8d5b1;
        border-color: #c8d5b1;
      }
      .button.secondary {
        border-color: #3c493a;
        color: #c4cfba;
        background: #141b15;
      }
      .button.secondary:hover {
        background: #263122;
      }
      .button.light {
        background: #bdcba8;
        border-color: #bdcba8;
        color: #152110;
      }
      .text-button {
        color: #b1c69d;
      }
      .danger {
        color: #ef9a8a;
      }
      .badge {
        background: #222e21;
        color: #c2d2b4;
      }
      .badge.amber {
        background: #302a1d;
        color: #d4bd80;
      }
      .badge.biome {
        color: white;
      }
      .badge.outline {
        color: #a4b09c;
        border-color: #354031;
      }
      .card,
      .studio-list,
      .stat {
        background: #111713;
        border-color: #2a342b;
      }
      .card p,
      .lead,
      .prose p {
        color: #a3ada0;
      }
      .notice {
        background: #1c2118;
        color: #bfc5ad;
        border-left-color: #8d9e6b;
      }
      .article {
        background: #101511;
        border-color: #29372b;
        border-top-color: var(--biome);
        color: #c4cdc0;
      }
      .article h2,
      .article h3 {
        color: #c4d7b5;
      }
      .article a {
        color: #b4cfa2;
      }
      .article td {
        color: #c4cdc0;
      }
      tr:nth-child(even) {
        background: #182019;
      }
      th {
        color: #fff;
      }
      .table-wrap {
        border-color: #34402f;
      }
      td,
      th {
        border-bottom-color: #303b2b;
      }
      .reader-side a {
        color: #9caa94;
      }
      .reader-head h1 {
        color: #e2e9dc;
      }
      .empty {
        background: #111812;
        border-color: #36452e;
      }
      .empty .empty-icon {
        color: #91a66c;
      }
      .comparison p {
        color: #bec8b7;
      }
      .testline {
        background: #1a241a;
        color: #b1bea7;
      }
      .tabs a.selected {
        border-color: #91a66c;
      }
      .guide-jump {
        background: #152017;
      }
      .studio-banner,
      .watch-hero {
        background: #162019;
      }
      .studio-banner p {
        color: #a6b69b;
      }
      .episode-row {
        background: #111713;
      }
      .watch-art svg {
        filter: brightness(0.55) saturate(0.55);
      }
      .watch-art .play {
        background: #c6d1b7;
        color: #142313;
      }
      input,
      textarea,
      select {
        background: #0c120e;
        color: #d7dfcf;
        border-color: #3a4835;
      }
      .article[contenteditable] {
        outline-color: #b5c59a;
      }
      dialog {
        background: #101611;
        color: #d6dfcf;
        border-color: #3a4836;
      }
      dialog::backdrop {
        background: #000d;
      }
      .form-error {
        color: #f0a290;
      }
      .split-feature {
        background: #152017;
        border-color: #2f3c2c;
      }
      .quote {
        color: #dce5d3 !important;
      }
      .about-steps strong {
        color: #84976d;
      }
      .skip {
        background: #152017;
      }
      .reader-game-nav {
        max-width: 1320px;
        margin: auto;
        padding: 0 4%;
      }
      .night-home {
        max-width: 1240px;
        margin: auto;
        padding: 64px 5% 40px;
      }
      .night-intro {
        margin-bottom: 45px;
      }
      .night-intro .eyebrow {
        color: #a4b892;
        font-size: 10px;
        letter-spacing: 0.2em;
      }
      .night-intro h1 {
        font-size: clamp(40px, 4.8vw, 66px);
        line-height: 1.08;
        letter-spacing: -0.055em;
        margin: 25px 0;
      }
      .night-intro h1 span {
        color: #858f80;
      }
      .night-intro p {
        color: #99a294;
        font-size: 15px;
        line-height: 1.9;
      }
      .world-list {
        display: grid;
        grid-template-columns: minmax(0, 2.1fr) minmax(220px, 1fr);
        gap: 24px;
      }
      .world-card {
        border: 1px solid #364330;
        border-radius: 10px;
        overflow: hidden;
        background: #101710;
        display: block;
        transition:
          border-color 0.2s,
          transform 0.2s;
      }
      .world-card:hover {
        text-decoration: none;
        border-color: #809267;
        transform: translateY(-3px);
      }
      .world-art {
        height: 248px;
        position: relative;
        background: #19271b;
        overflow: hidden;
      }
      .world-art svg {
        width: 100%;
        height: 100%;
        position: absolute;
        filter: brightness(0.43) saturate(0.55);
        object-fit: cover;
      }
      .world-art:after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(0deg, #0c160ddd, transparent 75%);
      }
      .world-index {
        position: absolute;
        left: 24px;
        top: 22px;
        z-index: 1;
        color: #bac6af;
        font-size: 10px;
        letter-spacing: 0.18em;
      }
      .world-label {
        position: absolute;
        bottom: 17px;
        left: 25px;
        z-index: 1;
        font-size: 43px;
        font-weight: bold;
        letter-spacing: 0.12em;
        color: #dce6ce;
        text-transform: uppercase;
      }
      .world-content {
        padding: 25px;
        display: flex;
        align-items: end;
        gap: 30px;
      }
      .world-content .eyebrow {
        font-size: 9px;
        color: #819371;
        letter-spacing: 0.12em;
      }
      .world-content h2 {
        font-size: 25px;
        margin-bottom: 10px;
      }
      .world-content p {
        font-size: 13px;
        color: #98a48e;
        line-height: 1.8;
        max-width: 410px;
        margin: 0;
      }
      .enter-world {
        white-space: nowrap;
        font-size: 12px;
        color: #c5d9ae;
        display: flex;
        gap: 20px;
        align-items: center;
      }
      .enter-world b {
        font-size: 22px;
      }
      .next-world {
        padding: 36px 27px;
        border: 1px dashed #2a3429;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: radial-gradient(ellipse at 30% 10%, #172016, #0b0e0b 75%);
      }
      .next-world .eyebrow {
        font-size: 9px;
        color: #7e8c74;
      }
      .next-world h3 {
        font-size: 27px;
        line-height: 1.4;
        color: #b2bfa7;
      }
      .next-world p {
        font-size: 13px;
        color: #7f8e76;
        line-height: 1.8;
        margin-top: 16px;
      }
      .night-footer-note {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        border-top: 1px solid #232c22;
        padding-top: 23px;
        margin-top: 40px;
        font-size: 11px;
        color: #7e8d76;
      }
      .night-footer-note a {
        color: #b2c59d;
      }
      .wiki-shell {
        max-width: 1320px;
        margin: 0 auto;
        padding: 0 4% 60px;
      }
      .game-context {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 25px;
        padding: 25px 0;
        border-bottom: 1px solid #293226;
        font-size: 11px;
        color: #9eae92;
      }
      .game-context-title {
        font-size: 20px;
        font-weight: bold;
        color: #dde5d5;
        display: flex;
        align-items: center;
        gap: 15px;
      }
      .game-context-title small {
        font-size: 9px;
        letter-spacing: 0.16em;
        color: #7c9070;
        font-weight: normal;
      }
      .wiki-tabs {
        display: flex;
        gap: 0;
        overflow: auto;
        justify-content: space-between;
        border-bottom: 1px solid #303b2c;
        width: 100%;
        font-size: 12px;
      }
      .wiki-tabs a {
        padding: 19px 13px;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        color: #95a58b;
      }
      .wiki-tabs a.selected {
        color: #d1e2bf;
        border-bottom-color: #adc58f;
        background: #152012;
      }
      .wiki-tabs a:hover {
        color: #d7e8c5;
        text-decoration: none;
        background: #152012;
      }
      .wiki-subtabs {
        display: flex;
        gap: 9px;
        flex-wrap: wrap;
        padding: 20px 0 0;
        border: 0;
        justify-content: start;
      }
      .wiki-subtabs a {
        border: 1px solid #2b3926;
        border-radius: 5px;
        padding: 6px 13px;
        font-size: 11px;
        white-space: nowrap;
        color: #94a589;
        font-weight: normal;
      }
      .wiki-subtabs a.selected {
        background: #273520;
        color: #d2e4bf;
        border-color: #536746;
      }
      .wiki-subtabs a:hover {
        text-decoration: none;
        background: #1e2b18;
      }
      .wiki-content {
        padding-top: 35px;
      }
      .wiki-title {
        margin-bottom: 30px;
      }
      .wiki-title .eyebrow {
        color: #7f9770;
        font-size: 10px;
      }
      .wiki-title h1 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 14px;
        letter-spacing: -0.035em;
      }
      .wiki-title p {
        font-size: 14px;
        max-width: 740px;
        color: #94a48b;
        margin: 0;
      }
      .wiki-start {
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        border: 1px solid #35422d;
        border-radius: 9px;
        background: #10190f;
        overflow: hidden;
      }
      .start-primary {
        padding: 34px;
        background: radial-gradient(ellipse at 0 0, #25351c, transparent 85%);
      }
      .start-primary .eyebrow {
        color: #9bb77d;
        font-size: 10px;
      }
      .start-primary h2 {
        font-size: 34px;
        line-height: 1.15;
        color: #d3e4bf;
      }
      .start-primary p {
        font-size: 14px;
        color: #9eaf91;
        line-height: 1.9;
        max-width: 460px;
        margin-bottom: 25px;
      }
      .start-choices {
        border-left: 1px solid #35422d;
        display: flex;
        flex-direction: column;
      }
      .start-choices > a {
        padding: 24px 27px;
        flex: 1;
        border-bottom: 1px solid #2a3824;
      }
      .start-choices > a:last-child {
        border-bottom: 0;
      }
      .start-choices > a:hover {
        background: #1b2816;
        text-decoration: none;
      }
      .start-choices span {
        font-size: 9px;
        letter-spacing: 0.12em;
        color: #809b69;
        display: block;
        margin-bottom: 9px;
      }
      .start-choices strong {
        font-size: 17px;
        color: #c4d9af;
      }
      .start-choices p {
        font-size: 12px;
        margin: 8px 0 0;
        color: #8fa57c;
      }
      .wiki-route-intro {
        margin: 35px 0 18px;
      }
      .wiki-route-intro .eyebrow {
        font-size: 9px;
        color: #7c916f;
      }
      .wiki-route-intro h3 {
        font-size: 23px;
      }
      .biome-route {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px;
        background: #2b3726;
        border: 1px solid #2b3726;
        border-radius: 6px;
        overflow: hidden;
      }
      .biome-route a {
        display: flex;
        gap: 17px;
        align-items: center;
        padding: 18px 22px;
        background: #10170e;
        border-left: 3px solid var(--biome);
        font-size: 13px;
      }
      .biome-route a:hover {
        background: #1d2918;
        text-decoration: none;
      }
      .biome-route small {
        color: #7d8f70;
        font-size: 10px;
      }
      .biome-route b {
        margin-left: auto;
        color: #839d6d;
      }
      .chapter-start {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 25px;
        padding: 26px;
        border: 1px solid #34452e;
        border-left: 4px solid var(--biome);
        background: #121e10;
        border-radius: 6px;
        margin-bottom: 32px;
      }
      .chapter-start .eyebrow {
        font-size: 9px;
        color: #8fab79;
      }
      .chapter-start h3 {
        font-size: 24px;
        color: #cfe2bd;
        margin-bottom: 12px;
      }
      .chapter-start p {
        font-size: 13px;
        color: #95ab82;
        max-width: 610px;
        margin: 0;
      }
      .chapter-start .button {
        flex-shrink: 0;
      }
      .section-label {
        font-size: 17px;
        color: #b4c5a4;
        letter-spacing: 0;
      }
      .wiki-list {
        border: 1px solid #2b3825;
        border-radius: 6px;
        overflow: hidden;
        background: #0f160d;
      }
      .wiki-row {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) 20px;
        gap: 18px;
        align-items: start;
        padding: 22px;
        border-bottom: 1px solid #263221;
      }
      .wiki-row:last-child {
        border-bottom: 0;
      }
      .wiki-row:hover {
        background: #182313;
        text-decoration: none;
      }
      .wiki-row-number {
        font-size: 10px;
        color: #718365;
        padding-top: 4px;
      }
      .wiki-row strong {
        font-size: 16px;
        line-height: 1.5;
        font-weight: 600;
        display: block;
        color: #cbdcbb;
      }
      .wiki-row div > span {
        font-size: 12px;
        color: #859a76;
        display: block;
        margin: 8px 0;
        max-width: 800px;
      }
      .wiki-row small {
        font-size: 10px;
        color: #a0b58f;
      }
      .wiki-row > b {
        color: #829b6c;
        padding-top: 4px;
      }
      .pager {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-top: 20px;
      }
      .pager span,
      .collection-count {
        color: #7a906b;
        font-size: 11px;
      }
      .collection-count {
        margin-top: 15px;
      }
      .lesson-index {
        border: 1px solid #2c3926;
        border-radius: 7px;
        overflow: hidden;
      }
      .lesson-summary {
        display: flex;
        align-items: center;
        gap: 20px;
        justify-content: space-between;
        padding: 24px;
        background: #11190e;
        border-bottom: 1px solid #293623;
      }
      .lesson-summary:last-child {
        border-bottom: 0;
      }
      .lesson-summary:hover {
        background: #192514;
        text-decoration: none;
      }
      .lesson-summary .eyebrow {
        font-size: 9px;
        color: #869e75;
        margin-bottom: 10px;
      }
      .lesson-summary h3 {
        font-size: 19px;
        color: #c5d9b3;
        margin-bottom: 10px;
      }
      .lesson-summary p {
        font-size: 13px;
        color: #8da57b;
        margin: 0;
        max-width: 720px;
      }
      .lesson-summary > span {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-shrink: 0;
      }
      .reader-game-nav .wiki-tabs {
        margin-bottom: 0;
      }
      .reader-layout .reader-side {
        background: #10170e;
        border: 1px solid #2b3824;
        padding: 18px;
        border-radius: 6px;
      }
      .reader-side .eyebrow {
        font-size: 10px;
      }
      .reader-head .meta {
        color: #8fa07f;
      }
      .about-steps {
        border-top: 1px solid #2d3927;
        padding-top: 25px;
      }
      @media (max-width: 800px) {
        .world-list {
          grid-template-columns: 1fr;
        }
        .next-world {
          padding: 25px;
        }
        .next-world h3 {
          font-size: 23px;
        }
        .world-content {
          align-items: start;
        }
        .wiki-tabs {
          justify-content: start;
        }
        .wiki-tabs a {
          padding: 15px 13px;
        }
        .wiki-start {
          grid-template-columns: 1fr;
        }
        .start-choices {
          border-left: 0;
          border-top: 1px solid #35422d;
        }
        .start-choices > a {
          padding: 19px 25px;
        }
        .chapter-start {
          align-items: start;
          flex-direction: column;
        }
        .game-context-title small {
          display: none;
        }
        .wiki-title h1 {
          font-size: 31px;
        }
        .biome-route {
          grid-template-columns: repeat(2, 1fr);
        }
        .lesson-summary {
          flex-direction: column;
          align-items: start;
        }
        .lesson-summary > span {
          width: 100%;
          justify-content: space-between;
        }
        .night-intro h1 {
          font-size: 46px;
        }
        .night-home {
          padding-top: 40px;
        }
        .game-context {
          gap: 12px;
        }
        .game-context-title {
          font-size: 17px;
        }
        .game-context > a {
          font-size: 10px;
        }
        .wiki-subtabs {
          gap: 7px;
        }
        .wiki-subtabs a {
          padding: 6px 10px;
        }
        .night-footer-note {
          flex-direction: column;
        }
        .world-art {
          height: 220px;
        }
        .world-content {
          flex-direction: column;
          gap: 20px;
        }
        .world-content .enter-world {
          align-self: end;
        }
        .wiki-row {
          padding: 18px 14px;
          gap: 12px;
        }
        .wiki-row strong {
          font-size: 14px;
        }
        .wiki-row div > span {
          font-size: 12px;
        }
        .pager span {
          text-align: center;
          font-size: 10px;
        }
      }
      @media print {
        body,
        .article {
          background: white;
          color: black;
        }
        .article p,
        .article td {
          color: black;
        }
        .reader-game-nav {
          display: none;
        }
        .article h2,
        .article h3 {
          color: #23483a;
        }
      }
      .intro-goals {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 0 0 25px;
      }
      .intro-goals > div {
        display: grid;
        grid-template-columns: 30px 1fr;
        gap: 5px 12px;
        padding: 23px;
        background: #131d10;
        border: 1px solid #36482c;
        border-radius: 6px;
      }
      .intro-goals span {
        grid-row: 1/3;
        font-size: 12px;
        color: #809e67;
      }
      .intro-goals strong {
        font-size: 15px;
        color: #c9dfb4;
      }
      .intro-goals small {
        color: #8fa77d;
        font-size: 11px;
      }
      .intro-article {
        max-width: 960px;
        padding: 35px 45px;
      }
      .intro-article > p:first-child {
        font-size: 18px;
        line-height: 1.8;
        color: #d3dfc9;
      }
      .intro-article h2 {
        margin-top: 40px;
      }
      .intro-article .bullet {
        margin-bottom: 12px;
      }
      @media (max-width: 680px) {
        .intro-goals {
          grid-template-columns: 1fr;
          gap: 8px;
        }
        .intro-goals > div {
          padding: 16px;
        }
        .intro-article {
          padding: 25px 20px;
        }
        .intro-article > p:first-child {
          font-size: 16px;
        }
      }
      /* Party planning and reader feedback */
      .planner-controls {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        margin: 20px 0;
      }
      .planner-controls label {
        flex: 1;
        min-width: 150px;
      }
      .party-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
      }
      .party-grid fieldset {
        min-width: 0;
        margin: 0;
        border: 1px solid #303b35;
      }
      .party-grid legend {
        padding: 0 10px;
        color: #bad0ae;
      }
      .party-grid label,
      .reader-feedback label,
      .tip-row label {
        display: block;
        margin: 12px 0;
      }
      .party-grid select,
      .reader-feedback input,
      .reader-feedback select,
      .reader-feedback textarea,
      .planner-controls select,
      .tip-row select,
      .tip-row textarea {
        width: 100%;
        margin-top: 8px;
        background: #111713;
        color: #e0e8dd;
        border: 1px solid #3a483e;
        border-radius: 6px;
        padding: 12px;
        font: inherit;
      }
      .reader-feedback {
        border-top: 1px solid #344137;
        margin-top: 48px;
        padding-top: 36px;
      }
      .reader-feedback .full {
        grid-column: 1/-1;
      }
      .budget-details {
        border: 1px solid #344137;
        padding: 22px;
        margin: 24px 0;
        border-radius: 8px;
      }
      .budget-details summary {
        cursor: pointer;
        font-weight: bold;
      }
      .planner-source {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        font: inherit;
        font-size: 14px;
      }
      .planner-callout {
        margin: 20px 0;
      }
      .tip-row {
        margin: 20px 0;
      }
      .tip-text {
        white-space: pre-wrap;
      }
      .tip-status {
        color: #b9d6a4;
      }
      .party-grid select {
        max-width: 100%;
      }
      body:has(.party-grid) .wiki-content {
        max-width: 1100px;
      }
      @media (max-width: 700px) {
        .party-grid {
          grid-template-columns: 1fr;
        }
        .reader-feedback .form-grid {
          grid-template-columns: 1fr;
        }
      }
      /* Continuous walkthrough with an independently scrolling, sticky contents rail. */
      .walk-introduction {
        max-width: 850px;
        margin-bottom: 36px;
      }
      .walk-introduction h1 {
        font-size: clamp(30px, 4vw, 46px);
        line-height: 1.15;
        letter-spacing: -0.035em;
        margin: 14px 0;
      }
      .walk-introduction > p {
        color: #a8b59f;
        line-height: 1.8;
      }
      .walk-shortcuts {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 24px;
        font-size: 13px;
        margin: 24px 0;
      }
      .walk-layout {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 38px;
        align-items: start;
      }
      .walk-sidebar {
        position: sticky;
        top: 24px;
        max-height: calc(100dvh - 48px);
        overflow: auto;
        scrollbar-width: thin;
        border: 1px solid #303b2c;
        border-radius: 8px;
        background: #0d130c;
        padding: 16px;
      }
      .walk-toc > summary {
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        padding-bottom: 14px;
      }
      .walk-toc > summary > span {
        display: block;
        font-size: 10px;
        font-weight: normal;
        color: #91a384;
        padding: 8px 0;
      }
      .walk-toc-group {
        border-top: 1px solid #293324;
        padding: 9px 0;
      }
      .walk-toc-group > summary {
        cursor: pointer;
        color: #8fa879;
        font-size: 13px;
      }
      .walk-toc-group > summary > a {
        display: inline-block;
        padding: 8px 3px;
        max-width: 90%;
        color: #c4d6b7;
        font-weight: bold;
      }
      .walk-toc-group > div {
        padding: 4px 0 4px 12px;
      }
      .walk-toc-group > div > a {
        display: block;
        border-left: 2px solid transparent;
        padding: 8px 10px;
        color: #95a58b;
        font-size: 11px;
        line-height: 1.5;
      }
      .walk-toc a.is-current {
        background: #24331c;
        color: #e0edcf;
        border-left-color: #b0cf8e;
      }
      .walk-reading {
        min-width: 0;
      }
      .walk-chapter {
        scroll-margin-top: 30px;
        margin-bottom: 68px;
      }
      .walk-chapter-title {
        border-top: 3px solid var(--biome);
        padding-top: 25px;
        margin-bottom: 30px;
      }
      .walk-chapter-title h2 {
        font-size: 35px;
        margin: 12px 0;
      }
      .walk-chapter-title p {
        font-size: 14px;
        color: #9faf95;
        line-height: 1.7;
      }
      .walk-chapter-title > a {
        font-size: 12px;
      }
      .walk-reading [data-walk-section] {
        scroll-margin-top: 30px;
      }
      .walk-reading .article {
        padding: 0;
        background: transparent;
        border: 0;
      }
      .walk-references {
        border-left: 2px solid #536e40;
        background: #131d10;
        padding: 16px 20px;
        margin: 24px 0 35px;
      }
      .walk-references .eyebrow {
        font-size: 9px;
        color: #9eb68a;
      }
      .walk-references > a {
        display: block;
        padding: 9px 0;
        font-size: 13px;
        line-height: 1.6;
      }
      .walk-references > a > span {
        color: #9cb889;
        margin-left: 8px;
      }
      .walk-chapter-links {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        font-size: 13px;
        border-top: 1px solid #303b2b;
        padding-top: 22px;
        margin-top: 30px;
      }
      .walk-next {
        display: block;
        padding: 24px;
        background: #15200f;
        border: 1px solid #34482a;
        border-radius: 6px;
        margin-top: 30px;
      }
      .walk-next span {
        display: block;
        font-size: 9px;
        letter-spacing: 0.12em;
        color: #8fa77b;
        margin-bottom: 10px;
      }
      .walk-next strong {
        font-size: 22px;
      }
      .walk-return {
        display: inline-block;
        font-size: 12px;
        margin-bottom: 22px;
      }
      .walk-reading .reader-feedback {
        margin-top: 30px;
      }
      .wiki-title[hidden] {
        display: none;
      }
      @media (min-width: 1000px) {
        body:has(.walk-layout) .wiki-shell {
          max-width: 1360px;
        }
      }
      @media (max-width: 800px) {
        .walk-layout {
          grid-template-columns: 1fr;
          gap: 24px;
        }
        .walk-sidebar {
          position: relative;
          top: auto;
          max-height: 320px;
        }
        .walk-introduction h1 {
          font-size: 32px;
        }
        .walk-chapter-title h2 {
          font-size: 29px;
        }
        .walk-reading .article .table-wrap {
          max-width: 100%;
          overflow: auto;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
      }
      /* Override the global horizontal nav layout inside the walkthrough rail. */
      .walk-sidebar {
        min-width: 0;
        overflow-x: hidden;
        overflow-y: auto;
      }
      .walk-toc nav {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
      }
      .walk-toc-group {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
      }
      .walk-toc-group > div,
      .walk-toc-group > summary {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
      }
      .walk-toc a {
        white-space: normal;
        overflow-wrap: anywhere;
        box-sizing: border-box;
      }
      .walk-toc-group > div > a {
        width: 100%;
        max-width: 100%;
      }
      /* Simple saved party setup. */
      .simple-planner {
        max-width: 960px;
        margin: auto;
      }
      .party-setup {
        border: 1px solid #35412d;
        padding: 26px;
        border-radius: 8px;
        background: #10170e;
        margin-bottom: 36px;
      }
      .party-count-label {
        display: block;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 12px;
      }
      #plan-count {
        display: block;
        width: 120px;
        padding: 13px;
        font-size: 24px;
        background: #090e08;
        color: #e0ebd7;
        border: 1px solid #667c54;
        border-radius: 6px;
      }
      .party-role {
        border: 0;
        border-top: 1px solid #2d3925;
        padding: 18px 0;
        margin: 0;
      }
      .party-role legend {
        padding: 8px 12px 0 0;
        color: #c6dab5;
        font-weight: bold;
        font-size: 14px;
      }
      .armor-options {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
      }
      .armor-options label {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 18px;
        border: 1px solid #3b4c30;
        border-radius: 6px;
        cursor: pointer;
        color: #b6c8a5;
      }
      .armor-options label:has(input:checked) {
        background: #2a3c20;
        border-color: #9ab87c;
        color: #edf5e6;
      }
      .armor-options input {
        width: 16px;
        height: 16px;
        margin: 0;
        accent-color: #a4c287;
      }
      .armor-options label:focus-within {
        outline: 2px solid #d6e8c4;
        outline-offset: 3px;
      }
      #party-save-status {
        font-size: 12px;
        color: #a5b797;
        max-width: 420px;
      }
      #party-count-error {
        color: #ebaf8d;
        font-size: 13px;
        min-height: 18px;
      }
      .party-setup .actions {
        margin-top: 22px;
      }
      @media (max-width: 550px) {
        .armor-options {
          gap: 8px;
        }
        .armor-options label {
          padding: 12px;
          font-size: 12px;
          flex: 1;
          min-width: 125px;
        }
        .party-setup {
          padding: 18px;
        }
      }
      /* A note stays out of the reading flow until the reader asks to add one. */
      .quick-feedback {
        margin: 20px 0;
        padding: 12px 0;
        border-top: 1px solid var(--scene-border, #35412d);
        font-size: 12px;
      }
      .quick-feedback > summary {
        cursor: pointer;
        color: var(--scene-link, #c0d6a9);
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
      }
      .quick-feedback > summary::-webkit-details-marker {
        display: none;
      }
      .quick-feedback form {
        margin-top: 12px;
        max-width: 640px;
      }
      .quick-feedback textarea {
        width: 100%;
        min-height: 64px;
        resize: vertical;
        max-height: 160px;
        background: var(--scene-surface, #11180f);
        color: #e8ece4;
        border: 1px solid var(--scene-border, #405135);
        border-radius: 5px;
        padding: 10px;
        font: inherit;
        box-sizing: border-box;
      }
      .quick-feedback-actions {
        display: flex;
        gap: 12px;
        align-items: center;
        margin-top: 8px;
      }
      .quick-feedback small {
        color: #a3aca0;
        font-size: 10px;
      }
      .quick-feedback .tip-status:empty {
        display: none;
      }
      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
      .weapon-choice {
        display: block;
        margin-top: 18px;
        font-size: 13px;
      }
      .weapon-choice select {
        display: block;
        width: 100%;
        padding: 12px;
        margin-top: 8px;
        background: var(--scene-surface, #11180f);
        color: #e5ecdf;
        border: 1px solid var(--scene-border, #435539);
        border-radius: 5px;
        font: inherit;
      }
      .weapon-note {
        font-size: 12px;
        line-height: 1.8;
        color: #b8c1b1;
        margin-bottom: 5px;
      }
      .role-hint {
        display: block;
        font-size: 11px;
        color: #a4b29a;
        margin: 10px 0;
      }
      .role-guide-callout {
        border-left: 3px solid var(--scene-accent);
        padding: 18px 22px;
        background: var(--scene-surface);
        margin: 0 0 25px;
      }
      .role-guide-callout p {
        font-size: 13px;
        line-height: 1.7;
        margin: 10px 0;
      }
      .role-guide-callout a {
        font-size: 13px;
      }
      .starter-kit {
        font-size: 14px;
        margin: 8px 0;
        color: var(--scene-link);
      }
      /* Keep midnight contrast while allowing the active biome to set the atmosphere. */
      :root {
        --scene-primary: #4c6071;
        --scene-secondary: #ad8853;
        --scene-accent: #d4bd88;
        --scene-surface: color-mix(in srgb, var(--scene-primary) 15%, #090c0d);
        --scene-border: color-mix(in srgb, var(--scene-secondary) 38%, #171c1d);
        --scene-link: color-mix(in srgb, var(--scene-accent) 70%, white);
      }
      html body {
        background:
          radial-gradient(
            ellipse at 10% 5%,
            color-mix(in srgb, var(--scene-primary) 26%, transparent),
            transparent 65%
          ),
          radial-gradient(
            ellipse at 95% 60%,
            color-mix(in srgb, var(--scene-secondary) 12%, transparent),
            transparent 60%
          ),
          #07090b;
        background-attachment: fixed;
        color: #e0e4df;
        transition: background-color 0.45s ease;
      }
      body header,
      body footer,
      body .reviewbar {
        background: var(--scene-surface);
        border-color: var(--scene-border);
      }
      body a {
        color: var(--scene-link);
      }
      body .eyebrow {
        color: var(--scene-link);
      }
      body .wiki-tabs,
      body .wiki-subtabs,
      body .game-context {
        border-color: var(--scene-border);
      }
      body .wiki-tabs a.selected,
      body .wiki-subtabs a.selected {
        background: color-mix(in srgb, var(--scene-primary) 35%, #101319);
        border-color: var(--scene-accent);
        color: #f0f3ec;
      }
      body .wiki-subtabs a:hover,
      body .wiki-row:hover {
        background: color-mix(in srgb, var(--scene-primary) 28%, #101319);
      }
      body .walk-sidebar,
      body .reader-layout .reader-side,
      body .article,
      body .card,
      body .party-setup,
      body .wiki-list,
      body .wiki-row,
      body .notice,
      body .walk-references,
      body .chapter-start,
      body .lesson-summary {
        background: var(--scene-surface);
        border-color: var(--scene-border);
      }
      body .walk-reading .article {
        background: transparent;
      }
      body .walk-toc a.is-current {
        background: color-mix(in srgb, var(--scene-primary) 45%, #101319);
        border-color: var(--scene-accent);
        color: #f0f3ec;
      }
      body .walk-toc-group,
      body .party-role,
      body .budget-details,
      body .walk-chapter-links {
        border-color: var(--scene-border);
      }
      body .walk-toc-group summary > a,
      body .walk-toc-group > div > a {
        color: var(--scene-link);
      }
      body .button {
        background: var(--scene-accent);
        color: #080b0d;
        border-color: var(--scene-accent);
      }
      body .button.secondary {
        background: var(--scene-surface);
        color: var(--scene-link);
        border-color: var(--scene-border);
      }
      body .armor-options label:has(input:checked) {
        background: color-mix(in srgb, var(--scene-primary) 40%, #101319);
        border-color: var(--scene-accent);
        color: #fff;
      }
      body .article th {
        background: color-mix(in srgb, var(--scene-primary) 35%, #111);
        color: #f0f0eb;
      }
      body .article td,
      body .article th {
        border-color: var(--scene-border);
      }
      body .article h2,
      body .article h3,
      body .wiki-title h1,
      body .walk-chapter-title h2 {
        color: #e5e9e1;
      }
      body .walk-next {
        background: var(--scene-surface);
        border-color: var(--scene-border);
      }
      @media (prefers-reduced-motion: reduce) {
        html body {
          transition: none;
        }
      }
      .beta-note {
        border-left: 2px solid #b99a5d;
        padding: 10px 16px;
        font-size: 14px !important;
        color: #dbcfad !important;
        max-width: 520px;
      }
      .beta-note strong {
        display: block;
        font-size: 11px;
        letter-spacing: 0.15em;
        margin-bottom: 5px;
      }
      .world-content {
        flex-wrap: wrap;
      }
      .account-page {
        max-width: 820px;
        min-height: 70vh;
        padding-top: 60px;
        padding-bottom: 80px;
      }
      .account-page form {
        display: grid;
        gap: 18px;
        margin: 24px 0;
      }
      .account-page label {
        display: grid;
        gap: 8px;
        font-size: 14px;
      }
      .account-page input,
      .account-page textarea {
        width: 100%;
        padding: 12px;
        background: #111818;
        color: #eee;
        border: 1px solid #46504c;
        border-radius: 5px;
      }
      .account-page .check-line {
        display: flex;
        align-items: flex-start;
        gap: 12px;
      }
      .check-line input {
        width: auto;
        margin-top: 3px;
      }
      .account-page button {
        justify-self: start;
      }
      .run-card {
        padding: 20px;
        border: 1px solid #46504c;
        border-radius: 6px;
        margin: 18px 0;
      }
      .run-card summary {
        cursor: pointer;
        font-weight: 600;
      }
      .account-page [role="status"] {
        color: #d4bd88;
      }
      .account-page button:disabled {
        opacity: 0.6;
      }
      /* Account and newsletter forms inherit the existing midnight palette. */
      .account-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
      }
      .account-page fieldset {
        border: 0;
        padding: 0;
        margin: 0;
        min-width: 0;
      }
      .account-page fieldset label {
        display: block;
        margin: 16px 0;
      }
      .account-page fieldset input {
        width: 100%;
      }
      .newsletter-signup {
        grid-column: 1/-1;
        width: 100%;
        border-top: 1px solid var(--line);
        padding-top: 24px;
      }
      .newsletter-signup h2 {
        font-size: 1.25rem;
      }
      .newsletter-signup form {
        display: flex;
        flex-wrap: wrap;
        align-items: end;
        gap: 12px;
        max-width: 680px;
      }
      .newsletter-signup label {
        display: grid;
        gap: 8px;
        flex: 1 1 240px;
      }
      .newsletter-signup input {
        width: 100%;
      }
      .newsletter-signup [role="status"] {
        flex-basis: 100%;
      }
    /* Compact navigation and next-goal reading. */
.quick-guide-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;padding:12px 0;border-bottom:1px solid #303b2c;justify-content:flex-start;font-size:12px;min-width:0}
.quick-guide-links>span{color:#89958a;font-size:9px;letter-spacing:.12em}
.quick-guide-links a{padding:3px 0;white-space:normal;color:#d1d9cb}
.compact-guide-list{display:grid;gap:0;border-top:1px solid #303a32}
.compact-guide-row{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:14px;align-items:center;padding:13px 14px;border-bottom:1px solid #29332b;border-left:3px solid var(--biome);background:#0e1311}
.compact-guide-row:hover{background:#1a221d;text-decoration:none}
.compact-guide-row strong{font-size:14px;font-weight:550;line-height:1.4}
.compact-guide-row small{font-size:11px;color:#98a496;white-space:nowrap}
.goal-list{display:grid;gap:18px}
.goal-card{position:relative;padding:22px 24px;background:#0d1210;border:1px solid #303c33;border-left:3px solid var(--biome);border-radius:7px;scroll-margin-top:32px;transition:background .2s,border-color .2s}
.goal-card .goal-position{font-size:10px;letter-spacing:.15em;color:#93a18f}
.goal-card h3{font-size:23px;line-height:1.3;margin:10px 0 13px}
.goal-card p{color:#b0b9af;font-size:15px;line-height:1.8;margin:0 0 16px;max-width:70ch}
.goal-card.is-current{background:color-mix(in srgb,var(--biome) 14%,#0c1210);border-color:var(--biome);box-shadow:0 0 0 1px color-mix(in srgb,var(--biome) 25%,transparent)}
.goal-card.is-current .goal-position::after{content:' · READING NOW';color:#e0e7da}
.goal-links{display:flex;flex-wrap:wrap;gap:9px 15px;justify-content:flex-start;min-width:0}
.goal-links a{font-size:12px;line-height:1.5;color:#d8e4d0;text-decoration:underline;text-underline-offset:3px}
.farm-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.farm-choice{padding:18px;background:#0d1310;border:1px solid #303b32;border-left:3px solid var(--biome);border-radius:6px;scroll-margin-top:32px}
.farm-choice h3{font-size:18px;line-height:1.4;margin:8px 0 10px}
.farm-choice p{font-size:13px;line-height:1.7;color:#a9b3a4;margin:0}
.farm-choice .eyebrow{font-size:9px}
.farm-choice.is-current{border-color:var(--biome);background:color-mix(in srgb,var(--biome) 12%,#0d1310)}
.farm-layout .walk-chapter{padding-bottom:28px;margin-bottom:32px}
.farm-library{padding-top:24px}
.walk-sidebar nav{display:flex;flex-direction:column;align-items:stretch;overflow-x:hidden;min-width:0;max-width:100%}
.walk-toc-group summary a,.walk-toc-group>div>a{white-space:normal;overflow-wrap:anywhere}
.walk-toc-group summary small{color:#8f9d89;font-size:10px}
.house-choice{padding:24px;margin:24px 0;border:1px solid #364233;border-radius:8px;background:#111811}
.house-choice label{display:block;font-size:18px;font-weight:600;margin-bottom:12px}
.house-choice select{width:100%;max-width:600px}
.split-materials th small{display:block;font-size:10px;font-weight:400;color:#98a38f;margin-top:5px;white-space:normal}
.split-materials table{width:100%;table-layout:fixed;min-width:0}
.split-materials td,.split-materials th{white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:13px 10px}
.split-materials th[scope=row]{font-weight:500;background:transparent}
.house-summary{font-size:14px;line-height:1.8;padding:16px;border-left:2px solid var(--scene-accent);color:#acb8a5}
@media(max-width:700px){.farm-choices{grid-template-columns:1fr}.goal-card{padding:18px}.goal-card h3{font-size:21px}.compact-guide-row{gap:8px;grid-template-columns:minmax(0,1fr) 18px}.compact-guide-row small{grid-column:1;grid-row:2}.compact-guide-row>span{grid-column:2;grid-row:1 / 3}.quick-guide-links{gap:6px 13px}.quick-guide-links>span{flex-basis:100%}.house-choice{padding:18px}.split-materials th,.split-materials td{font-size:12px;padding:10px 7px}}
@media(prefers-reduced-motion:reduce){.goal-card{transition:none}}

.split-materials thead th{background:#202d22;color:#e0e7d9}.split-materials thead th small{color:#b3bfaa}


/* Links are part of the walkthrough sentence, with a clear keyboard focus. */
.goal-card .goal-prose a{color:#e3d4b5;text-decoration:underline;text-decoration-color:#a99469;text-underline-offset:3px;text-decoration-thickness:1px}
.goal-card .goal-prose a:hover{color:#fff0c7;text-decoration-thickness:2px}
.goal-card h3 a{color:inherit;text-decoration:underline;text-decoration-color:#89996c;text-underline-offset:4px;text-decoration-thickness:1px}
.goal-card h3 a:hover{color:#e9eddd;text-decoration-thickness:2px}
.goal-card .goal-prose a:focus-visible,.goal-card h3 a:focus-visible{outline:2px solid #d6b962;outline-offset:4px;border-radius:2px}


/* Shared continuous guide layout; colors follow the visible biome. */
.journey-guide-shell {
  min-width: 0;
  max-width: 1440px;
  margin: 0 auto;
}
.journey-guide-shell .walk-introduction {
  padding-top: 28px;
}
.journey-reading-note {
  font-size: 12px !important;
  letter-spacing: 0.035em;
  color: #8d9c98 !important;
}
.biome-topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
  padding: 13px 0 23px;
  border-top: 1px solid color-mix(in srgb, var(--biome) 40%, #27312b);
  margin-top: 15px;
}
.biome-topic-links a {
  font-size: 12px;
  color: #c9d1c5;
  text-decoration: none;
}
.biome-topic-links a:hover {
  color: #fff1cb;
  text-decoration: underline;
}
.biome-topic-links span {
  color: var(--scene-accent);
}
.journey-card {
  padding: 26px 28px;
}
.journey-card > .goal-position {
  text-transform: uppercase;
}
.journey-card > h3 {
  font-size: 25px;
  max-width: 38ch;
}
.journey-card .journey-lead {
  font-size: 16px;
  color: #e2e5d8;
}
.journey-article {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  max-width: none !important;
  box-shadow: none !important;
}
.journey-article h2 {
  font-size: 22px !important;
  margin-top: 30px !important;
  line-height: 1.4;
}
.journey-article h3 {
  font-size: 19px !important;
  margin-top: 25px !important;
}
.journey-article h4 {
  font-size: 16px !important;
  margin-top: 20px !important;
}
.journey-article p {
  font-size: 15px !important;
  line-height: 1.85 !important;
  max-width: 75ch;
}
.journey-article .table-wrap {
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.journey-article table {
  font-size: 13px;
  min-width: 490px;
}
.journey-article th p,
.journey-article td p {
  font-size: 13px !important;
  line-height: 1.65 !important;
  min-width: 90px;
  margin-bottom: 4px;
}
.journey-article th,
.journey-article td {
  padding: 12px 14px;
  vertical-align: top;
}
.journey-article a {
  color: #e2c99b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.journey-sources {
  border-top: 1px solid #334038;
  margin-top: 24px;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.journey-sources a {
  font-size: 12px;
  color: #98aa9d;
  text-decoration: none;
}
.journey-sources a:hover {
  color: #e5d6ad;
  text-decoration: underline;
}
.journey-appendix > h2 {
  font-size: 28px;
  margin: 34px 0 24px;
}
.journey-appendix > .article {
  margin-bottom: 28px;
}
.journey-shortcuts {
  gap: 10px 20px !important;
}
.boss-finish {
  margin-top: 12px;
  background: color-mix(in srgb, var(--biome) 12%, #101512);
}
.boss-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 23px 0;
}
.boss-facts dt {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ba998;
  margin-bottom: 7px;
}
.boss-facts dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #e1e5d6;
}
.boss-route-link {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: #c8b68d;
}
.toc-boss {
  color: #e1c994 !important;
}
.ocean-note {
  padding: 22px;
  border-left: 2px solid var(--biome);
  color: #acbfbf;
  font-size: 14px;
  line-height: 1.8;
}
.ocean-note strong {
  display: block;
  color: #d5e4e5;
  margin-bottom: 8px;
}
.preview-account-note {
  padding: 14px 18px;
  border: 1px solid #786542;
  border-radius: 6px;
  font-size: 13px;
  color: #e3d3ad;
}
.role-intro {
  margin-bottom: 35px;
}
body:has(.journey-guide-shell) .reader-game-nav {
  max-width: 1440px;
  margin: auto;
}
.journey-layout .walk-sidebar {
  max-height: calc(100vh - 48px);
}
@media (max-width: 760px) {
  .journey-card {
    padding: 20px 16px;
  }
  .journey-card > h3 {
    font-size: 22px;
  }
  .journey-article h2 {
    font-size: 20px !important;
  }
  .boss-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .biome-topic-links {
    gap: 10px 16px;
  }
  .journey-guide-shell {
    width: 100%;
  }
  .reviewbar {
    height: auto !important;
    gap: 8px;
    line-height: 1.5;
    padding: 8px 14px !important;
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

/* Section emblems are decorative companions to the existing written labels. */
.section-mark {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}
.brandmark.brandmark-illustrated {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
.brand-emblem {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 3px 4px #0007);
}
.wiki-tabs a.illustrated-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 12px 11px;
  flex: 1 0 auto;
}
.tab-emblem {
  width: 30px;
  height: 30px;
  opacity: 0.78;
  filter: saturate(0.75);
  transition:
    opacity 160ms ease,
    filter 160ms ease;
}
.illustrated-tab.selected .tab-emblem,
.illustrated-tab:hover .tab-emblem,
.illustrated-tab:focus-visible .tab-emblem {
  opacity: 1;
  filter: saturate(1);
}
.wiki-subtabs a.illustrated-subtab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.subtab-emblem {
  width: 22px;
  height: 22px;
}
.section-illustrated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: center;
  gap: clamp(22px, 4vw, 60px);
}
.section-intro-copy {
  min-width: 0;
}
.section-emblem {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
}
.section-emblem::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--scene-accent, #b7a174) 11%, transparent),
    transparent 70%
  );
  border: 1px solid
    color-mix(in srgb, var(--scene-accent, #b7a174) 17%, transparent);
}
.section-emblem-image {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 9px 12px #0005);
}
.night-intro.home-illustrated {
  grid-template-columns: minmax(0, 1fr) 200px;
}
.home-illustrated .section-emblem {
  transform: rotate(4deg);
}
.reader-head.reader-illustrated {
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: start;
}
.reader-illustrated .section-emblem,
.reader-illustrated .section-emblem-image {
  width: 160px;
  height: 160px;
}
.reader-illustrated .section-emblem {
  margin-top: 44px;
}
.walk-chapter-title.chapter-illustrated {
  position: relative;
  padding-right: 84px;
  min-height: 92px;
}
.chapter-emblem {
  position: absolute;
  right: 5px;
  top: 18px;
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 5px #0005);
}
.goal-card.goal-illustrated {
  position: relative;
}
.goal-illustrated > .goal-position,
.goal-illustrated > h3 {
  padding-right: 66px;
}
.goal-emblem {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
}
.section-illustrated-small {
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 20px;
  margin-bottom: 22px;
}
.section-illustrated-small .section-emblem,
.section-illustrated-small .section-emblem-image {
  width: 110px;
  height: 110px;
}
.newsletter-signup.newsletter-illustrated {
  position: relative;
  padding-right: 120px;
}
.newsletter-emblem {
  position: absolute;
  width: 84px;
  height: 84px;
  top: 30px;
  right: 12px;
  opacity: 0.85;
}
@media (max-width: 1000px) {
  .section-illustrated,
  .night-intro.home-illustrated {
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 24px;
  }
  .section-emblem,
  .section-emblem-image {
    width: 160px;
    height: 160px;
  }
  .reader-head.reader-illustrated {
    grid-template-columns: minmax(0, 1fr) 110px;
  }
  .reader-illustrated .section-emblem,
  .reader-illustrated .section-emblem-image {
    width: 110px;
    height: 110px;
  }
  .section-illustrated-small {
    grid-template-columns: minmax(0, 1fr) 100px;
  }
  .section-illustrated-small .section-emblem,
  .section-illustrated-small .section-emblem-image {
    width: 100px;
    height: 100px;
  }
}
@media (max-width: 700px) {
  .brandmark.brandmark-illustrated,
  .brand-emblem {
    width: 49px;
    height: 49px;
  }
  .wiki-tabs a.illustrated-tab {
    padding: 11px 12px 9px;
    gap: 3px;
  }
  .tab-emblem {
    width: 28px;
    height: 28px;
  }
  .section-illustrated,
  .night-intro.home-illustrated,
  .reader-head.reader-illustrated {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 12px;
  }
  .section-emblem,
  .section-emblem-image,
  .reader-illustrated .section-emblem,
  .reader-illustrated .section-emblem-image {
    width: 112px;
    height: 112px;
  }
  .reader-illustrated .section-emblem {
    margin-top: 0;
  }
  .night-intro.home-illustrated {
    gap: 0;
  }
  .home-illustrated .section-emblem,
  .home-illustrated .section-emblem-image {
    width: 130px;
    height: 130px;
  }
  .walk-chapter-title.chapter-illustrated {
    padding-right: 70px;
  }
  .chapter-emblem {
    width: 52px;
    height: 52px;
    right: 0;
  }
  .goal-illustrated > .goal-position,
  .goal-illustrated > h3 {
    padding-right: 56px;
  }
  .goal-emblem {
    width: 46px;
    height: 46px;
    top: 18px;
    right: 14px;
  }
  .section-illustrated-small,
  .account-art-header.section-illustrated {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 12px;
  }
  .section-illustrated-small .section-emblem,
  .section-illustrated-small .section-emblem-image {
    width: 72px;
    height: 72px;
  }
  .newsletter-signup.newsletter-illustrated {
    padding-right: 0;
  }
  .newsletter-emblem {
    position: static;
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tab-emblem {
    transition: none;
  }
}


/* Credited community examples: kept beside the written guide, never autoplayed. */
.community-top-link { margin: 22px 0; font-weight: 700; color: var(--scene-link, #c4d5ad); }
.community-jump { display: inline-block; margin: 10px 16px 10px 0; color: var(--scene-link, #c4d5ad); }
.community-videos {
  margin: 38px 0 24px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--scene-border, #465243);
  border-top: 3px solid var(--biome, #aa8c55);
  border-radius: 10px;
  background: var(--scene-surface, #172018);
  color: var(--scene-text, #e8e9dc);
  scroll-margin-top: 110px;
}
.community-videos h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; margin: 10px 0 14px; }
.community-intro { max-width: 64ch; color: #c9cec2; }
.community-video-list { list-style: none; padding: 0; margin: 24px 0 0; }
.community-video {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px 0; margin: 0; border-top: 1px solid var(--scene-border, #465243);
}
.community-play {
  display: grid; place-items: center; flex: 0 0 40px; height: 40px;
  border: 1px solid #819371; border-radius: 50%; color: #d2b275; font-size: 14px;
}
.community-video-copy { min-width: 0; }
.community-video h3 { font-size: 19px; line-height: 1.4; margin: 6px 0; }
.community-video-title { color: #f0e4c9; }
.community-video p { margin: 10px 0; }
.community-credit { font-size: 13px; color: #bdc6b4; }
.community-watch-links { display: flex; gap: 10px 22px; flex-wrap: wrap; margin: 14px 0; color: #d7c08a; }
.community-version-note, .community-editorial-note { font-size: 12px; line-height: 1.6; color: #b8c0b0; }
.community-suggest { margin-bottom: 0; font-size: 14px; }
.community-suggest > summary { font-weight: 700; padding: 6px 0; }
.community-suggest label { display: block; margin: 14px 0 6px; font-size: 13px; }
.community-suggest input:not([type=hidden]), .community-suggest textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #64705b; border-radius: 5px;
  background: #10170f; color: #f2f3eb; min-height: 44px;
}
.community-suggest .tip-status { color: #e1d2a4; overflow-wrap: anywhere; }
@media (max-width: 550px) {
  .community-play { display: none; }
  .community-video { gap: 0; }
  .community-suggest .quick-feedback-actions { flex-direction: column; align-items: flex-start; }
}
.community-play::before { content: ""; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #d2b275; margin-left: 3px; }
.community-videos .eyebrow, .community-videos a, .community-videos .community-suggest > summary { color: #dfc991; }
.community-videos a.community-video-title { color: #f0e4c9; }
.community-discussion-callout { padding-top: 22px; margin-top: 24px; border-top: 1px solid var(--scene-border, #465243); }
.community-discussion-callout h3 { margin: 0 0 8px; font-size: 20px; }
.community-discussion-callout p { color: #c9cec2; }
.community-discussion-callout .actions { flex-wrap: wrap; gap: 14px 22px; }
.community-related{margin-top:28px;border-top:1px solid var(--line,#424a3c);padding-top:12px}.community-related>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line,#424a3c)}.community-related span{display:flex;gap:18px;flex-wrap:wrap}.community-related a{text-decoration:underline;text-underline-offset:3px}

/* Reading links stay visible in prose, on every guide and walkthrough. */
:is(.article, .seo-guide) :is(p, li, td, .import-text) a:not(.button),
.goal-prose a, .journey-lead a {
  color: #f0d99c;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
:is(.article, .seo-guide, .goal-card) a:focus-visible {
  outline: 2px solid #f0d99c;
  outline-offset: 4px;
  border-radius: 2px;
}
.reader-examples {
  margin: 20px 0;
  padding: 12px 18px;
  border-left: 3px solid #c5a86c;
  background: #192019;
  border-radius: 0 5px 5px 0;
  overflow-wrap: anywhere;
}
.reader-examples .reader-example {
  margin: 6px 0;
  color: #e4e7df;
  font-size: 16px;
  line-height: 1.7;
}
.reader-examples .reader-example + .reader-example { margin-top: 16px; }
.reader-examples a {
  color: #f0d99c;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.reader-examples a:hover { color: #fff1c6; }
.reader-examples .reader-discussion {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.65;
  color: #bdc9bb;
}
@media (max-width: 550px) {
  .reader-examples { padding: 12px 14px; }
}

/* Focused Wiki references use the site's existing forest, gold and biome colors. */
.wiki-directory {padding-bottom:64px;max-width:1120px}
.wiki-directory-intro {margin-bottom:36px}
.wiki-directory-search {max-width:700px;margin:0 0 22px}
.wiki-directory-search label {display:block;font-weight:650;margin-bottom:9px}
.wiki-directory-search > div {display:flex;gap:10px}
.wiki-directory-search input {flex:1;min-width:0;padding:13px 16px;background:#ffffff07;border:1px solid #b7a17455;border-radius:5px;color:inherit;font:inherit}
.wiki-directory-filters {display:flex;flex-wrap:wrap;gap:9px}
.wiki-directory-filters a {padding:10px 15px;border:1px solid #b7a17444;border-radius:4px;color:inherit;text-decoration:none}
.wiki-directory-filters a.selected {background:#b7a17422;border-color:#d2b576;color:#e5cf9d}
.wiki-directory-count {color:#b7bcae;font-size:13px;margin:20px 0}
.wiki-directory-group {margin:32px 0 42px}
.wiki-directory-group > h2 {font-size:23px;margin:0 0 12px;color:#e4e5db}
.wiki-directory-row {display:grid;grid-template-columns:76px minmax(0,1fr);gap:20px;padding:22px 18px;border-top:1px solid #b7a17433;align-items:center;background:#ffffff02}
.wiki-directory-row:hover {background:#ffffff05}
.wiki-row-mark {object-fit:contain;width:68px;height:68px}
.wiki-row-meta {display:flex;flex-wrap:wrap;gap:12px;font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:#c4b68f}
.wiki-row-meta span+span {color:#acb5a2}
.wiki-directory-row h3 {font-size:20px;line-height:1.35;margin:7px 0}
.wiki-directory-row h3 a {color:#e0e4d6;text-decoration:none}
.wiki-directory-row h3 a:hover {text-decoration:underline;text-underline-offset:4px}
.wiki-directory-row h3 a span {color:#cbb67d;margin-left:5px}
.wiki-directory-row p {margin:0;max-width:850px;line-height:1.65;color:#b9c1b3;font-size:14px}
.wiki-directory-empty {padding:26px;border:1px solid #b7a17444}
.wiki-directory [hidden] {display:none!important}
.wiki-directory-return {display:inline-block;color:#d8c492;margin:0 0 14px}
.wiki-related-callout {display:flex;flex-wrap:wrap;gap:12px 20px;padding:20px;margin:0 0 28px;border-left:3px solid #c5af74;background:#ffffff04}
.wiki-related-callout .eyebrow {flex-basis:100%;margin:0}
.wiki-related-callout a {color:#d8c492;font-size:14px}
.wiki-diagram {margin:28px 0;padding:12px;background:#f5f1e6;border-radius:5px}
.wiki-diagram img {display:block;width:100%;height:auto;max-height:1000px;object-fit:contain}
.article .numbered-step {padding-left:1.8em;position:relative}
.numbered-step .step-number {position:absolute;left:0;color:#d8c492;font-weight:700}
@media(max-width:700px){
 .wiki-directory-intro {margin-bottom:24px}
 .wiki-directory-row {grid-template-columns:50px minmax(0,1fr);gap:13px;padding:18px 8px}
 .wiki-row-mark {width:46px;height:46px}
 .wiki-directory-row h3 {font-size:18px}
 .wiki-directory-search > div {flex-wrap:wrap}
 .wiki-directory-search input {flex-basis:65%}
 .wiki-directory-filters a {font-size:12px;padding:9px 11px}
 .wiki-diagram {padding:4px;margin:20px 0}
}

/* Pre-rendered article: visible to visitors before the app finishes loading. */
.seo-guide {max-width: 1060px; margin: 2.5rem auto; padding: 1.2rem;}
.seo-guide h1 {font-size: clamp(28px,4vw,48px);}
.seo-guide h2 {font-size: 27px; margin-top: 2.1rem;}
.seo-guide h3 {font-size: 21px; margin-top: 1.4rem;}
.seo-guide p {line-height: 1.65;}
.seo-guide .seo-summary {font-size: 1.1rem; color: #44564b;}
.seo-guide .seo-bullet {padding-left: 1.1rem;}
.seo-guide .seo-table {overflow-x: auto; margin: 1.2rem 0;}
.seo-guide table {border-collapse: collapse; width: 100%; min-width: 520px;}
.seo-guide td,.seo-guide th {border:1px solid #dcded3; padding:8px 10px; text-align:left; vertical-align:top;}
.seo-guide td p,.seo-guide th p {margin:0;}
.seo-index {max-width:1080px; margin:2rem auto; padding:1rem;}
.seo-index li {margin: .5rem 0;}
