/* =========================================================
   01 — INDIGO ANNIE — GLOBAL SITE SYSTEM
========================================================= */

:root {
    --paper: #fffdf8;
    --ink: #171513;
    --muted: #77726c;
    --rule: #aaa59e;
    --band: #efefec;
    --highlight: #f2de93;
    --teal: #246b68;

    --site-width: 980px;
    --medium-width: 1180px;
    --medium-page-width: 64%;
    --special-page-width: 82%;
}

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    min-height: 100%;

    background: var(--paper);
}

body {
    width: min(var(--site-width), calc(100% - 80px));
    min-height: 100vh;

    margin: 0 auto;
    padding: 36px 0 60px;

    color: var(--ink);
    background: var(--paper);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   02 — TYPOGRAPHY
========================================================= */

h1 {
    margin: 0 0 48px;

    font-size: 44px;
    line-height: .95;
    font-weight: 500;
    letter-spacing: -.045em;
}

h2 {
    margin: 0 0 18px;

    font-size: 20px;
    line-height: 1.15;
    font-weight: 500;
}

h3 {
    margin: 0 0 12px;

    font-size: 15px;
    font-weight: 600;
}

p {
    max-width: 680px;
    margin: 0 0 18px;
}

a,
a:link,
a:visited {
    color: inherit;
    text-decoration-color: currentColor;
}

.date,
.updated,
.location,
.article-author,
.meta {
    color: var(--muted);

    font-size: 8px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .05em;
}


/* =========================================================
   03 — SITE NAVIGATION
========================================================= */

.site-nav {
    position: relative;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    width: 100%;

    margin: 0 0 48px;
    padding: 0;

    border-bottom: 1px solid var(--ink);

    font-size: 9px;
}


/* =========================================================
   03.1 — LEGACY SITE INDEX
========================================================= */

.site-index {
    position: relative;

    margin: 0 0 0 auto;
    padding: 0;
}

.site-index summary {
    display: block;

    margin: 0;
    padding: 0 0 10px;

    color: var(--ink);
    background: transparent;

    font-family: monospace;
    font-size: 9px;
    line-height: 1;

    cursor: pointer;
    list-style: none;
}

.site-index summary::-webkit-details-marker {
    display: none;
}

.site-index summary::before {
    content: "▸ ";
}

.site-index[open] summary::before {
    content: "▾ ";
}

.site-index-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 100;

    display: grid;

    width: 180px;

    border: 1px solid var(--ink);
    border-top: 0;

    background: var(--paper);
}

.site-index-menu a {
    display: block;

    padding: 9px 10px;

    border-bottom: 1px solid var(--rule);

    color: var(--ink);
    background: var(--paper);

    font-family: monospace;
    font-size: 9px;
    line-height: 1.3;
    text-decoration: none;
}

.site-index-menu a:last-child {
    border-bottom: 0;
}

.site-index-menu a:hover,
.site-index-menu a:focus-visible,
.site-index-menu a.active {
    color: var(--highlight);
    background: var(--teal);
    outline: 0;
}


/* =========================================================
   03.2 — FULL-SCREEN INDEX
========================================================= */

.home-mark,
.index-trigger {
    padding: 0 0 10px;

    border: 0;

    color: var(--ink);
    background: transparent;

    font-family: monospace;
    font-size: 9px;
    line-height: 1;

    text-decoration: none;
}

.index-trigger {
    margin-left: auto;
    cursor: pointer;
}

.index-trigger:hover,
.index-trigger:focus-visible {
    color: var(--highlight);
    background: var(--teal);
}

.index-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;

    visibility: hidden;
    opacity: 0;

    background: var(--paper);

    pointer-events: none;

    transition: opacity .18s ease;
}

.index-overlay.is-open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}

.index-panel {
    display: flex;
    flex-direction: column;

    width: min(var(--site-width), calc(100% - 80px));

    margin: 0 auto;
    padding: 64px 0;
}

.index-label {
    margin-bottom: 42px;

    color: var(--muted);

    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.index-panel a {
    display: grid;
    grid-template-columns: 45px 1fr;

    padding: 10px 0;

    border-bottom: 1px solid var(--rule);

    color: var(--ink);

    font-size: clamp(26px, 4vw, 48px);
    line-height: 1;

    text-decoration: none;
}

.index-panel a:first-of-type {
    border-top: 1px solid var(--rule);
}

.index-panel a span {
    padding-top: .4em;

    color: var(--muted);

    font-size: 9px;
}

.index-panel a:hover,
.index-panel a:focus-visible {
    padding-left: 10px;

    color: var(--highlight);
    background: var(--teal);
}

.index-close {
    position: fixed;

    top: 24px;
    right: 28px;

    padding: 0;

    border: 0;

    color: var(--ink);
    background: transparent;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;

    cursor: pointer;
}


/* =========================================================
   04 — STANDARD PAGE
========================================================= */

.page-header {
    margin: 0 0 52px;
}

.page-header h1 {
    margin-bottom: 14px;
}

.page-intro {
    max-width: 680px;
}


/* =========================================================
   05 — CONTENT
========================================================= */

article,
section {
    width: 100%;
}

article {
    max-width: 680px;
}

hr {
    margin: 48px 0;

    border: 0;
    border-top: 1px solid var(--ink);
}

figure {
    margin: 36px 0;
}

figure img {
    display: block;

    max-width: 100%;
    height: auto;
}

figcaption {
    margin-top: 8px;

    color: var(--muted);
    font-size: 8px;
}


/* =========================================================
   06 — BORDERED / INDEX SYSTEM
========================================================= */

.content-frame,
.archive-panel {
    width: 100%;

    margin: 0 0 30px;

    border: 1px solid var(--ink);
}

.content-frame-header,
.archive-panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    min-height: 36px;
    padding: 8px 10px;

    border-bottom: 1px solid var(--ink);
}

.content-frame-header h2,
.content-frame-header p,
.archive-panel-heading h2,
.archive-panel-heading p {
    margin: 0;
}

.content-frame-header h2,
.archive-panel-heading h2 {
    font-size: 14px;
}

.content-frame-header p,
.archive-panel-heading p {
    color: var(--muted);
    font-size: 8px;
}

.content-frame-body {
    padding: 18px 10px;
}


/* =========================================================
   07 — ARCHIVE TABLE
========================================================= */

.archive-table-head,
.archive-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 180px;
}

.archive-table-head {
    border-bottom: 1px solid var(--rule);

    color: var(--muted);

    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.archive-table-head > *,
.archive-row > * {
    min-width: 0;

    margin: 0;
    padding: 9px 10px;
}

.archive-table-head > * + *,
.archive-row > * + * {
    border-left: 1px solid var(--rule);
}

.archive-row {
    border-bottom: 1px solid var(--rule);
}

.archive-row:last-child {
    border-bottom: 0;
}

.archive-row:nth-child(even) {
    background: var(--band);
}

.archive-row p {
    max-width: none;

    font-size: 12px;
    line-height: 1.35;
}

.archive-meta,
.archive-credit {
    color: var(--muted);

    font-size: 9px !important;
}

.archive-row-link {
    color: inherit;
    text-decoration: none;
}

.archive-row-link:hover p,
.archive-row-link:focus-visible p {
    text-decoration: underline;
}

.archive-row-link:focus-visible {
    outline: none;
}


/* =========================================================
   08 — BUTTONS
========================================================= */

button,
.button,
.contact-buttons a,
.read-link a {
    display: inline-block;

    padding: 8px 12px;

    border: 1px solid var(--ink);
    border-radius: 0;

    color: var(--ink);
    background: var(--paper);

    font: inherit;
    font-size: 9px;
    text-decoration: none;

    cursor: pointer;
}

button:hover,
.button:hover,
.contact-buttons a:hover,
.read-link a:hover {
    color: var(--paper);
    background: var(--ink);
}


/* =========================================================
   09 — FOOTER
========================================================= */

body > footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    width: 100%;

    margin-top: 72px;
    padding-top: 11px;

    border-top: 1px solid var(--ink);

    color: var(--muted);

    font-size: 7px;
}

body > footer p {
    max-width: none;
    margin: 0;
}


/* =========================================================
   10 — MEDIUM PAGE SYSTEM
========================================================= */


/* =========================================================
   10.1 — MEDIUM PAGE SHELL
========================================================= */

body.medium-page,
body.complex-page,
body.books-test-page {
    width: calc(100% - 80px);
    max-width: none;
}


/* =========================================================
   10.2 — MEDIUM SHARED CONTENT WIDTH
========================================================= */

.medium-header,
.complex-page-header,
.books-test-header,
.medium-intro,
.complex-intro,
.books-test-practice,
.medium-index,
.complex-inventory,
.books-test-inventory,
.medium-catalog,
.complex-catalog,
.books-test-catalog,
.medium-note,
.media-note,
.medium-page > footer,
.complex-page > footer,
.books-test-page > footer {
    width: min(1180px, 92%);
    max-width: 1180px;

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   10.3 — MEDIUM HEADER
========================================================= */

.medium-header,
.complex-page-header,
.books-test-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "number number"
        "title status";
    align-items: end;

    margin-top: 0;
    margin-bottom: 64px;
}

.medium-number,
.complex-page-number,
.books-test-number {
    grid-area: number;

    margin: 0 0 9px;

    font-family: monospace;
    font-size: 11px;
    line-height: 1.3;
}

.medium-header h1,
.complex-page-header h1,
.books-test-header h1 {
    grid-area: title;

    margin: 0;

    font-size: 46px;
    line-height: .95;
    font-weight: 500;
    letter-spacing: -.045em;
}

.medium-status,
.complex-page-status,
.books-test-status {
    grid-area: status;

    margin: 0 0 4px;

    color: var(--muted);

    font-family: monospace;
    font-size: 9px;
    line-height: 1.35;
    text-align: right;
}


/* =========================================================
   10.4 — MEDIUM INTRO / PRACTICE
========================================================= */

.medium-intro,
.complex-intro,
.books-test-practice {
    display: grid;
    grid-template-columns: 150px minmax(0, 680px);
    column-gap: 46px;

    padding: 24px 0 76px;

    border-top: 1px solid var(--ink);
}

.medium-section-label,
.complex-section-label,
.books-test-label {
    margin: 0;

    font-family: monospace;
    font-size: 9px;
    line-height: 1.4;
}

.medium-intro-copy,
.complex-intro-copy,
.books-test-practice-copy {
    width: 100%;
    max-width: 680px;
}

.medium-intro-copy p,
.complex-intro-copy p,
.books-test-practice-copy p {
    margin: 0 0 18px;

    font-size: 14px;
    line-height: 1.55;
}

.medium-intro-copy p:last-child,
.complex-intro-copy p:last-child,
.books-test-practice-copy p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   10.5 — MEDIUM SECTION HEAD
========================================================= */

.medium-section-head,
.complex-section-head,
.books-test-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;

    width: 100%;

    margin: 0;
    padding: 9px 10px;

    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);

    font-family: monospace;
    font-size: 9px;
    line-height: 1.3;
}

.medium-section-head p,
.complex-section-head p,
.books-test-section-head p {
    max-width: none;
    margin: 0;
}

.medium-section-head > p:last-child,
.complex-section-head > p:last-child,
.books-test-section-head > p:last-child {
    color: var(--muted);
}


/* =========================================================
   10.6 — MEDIUM TOP-LEVEL SECTION SPACING
========================================================= */

.medium-index,
.complex-inventory,
.books-test-inventory,
.medium-catalog,
.complex-catalog,
.books-test-catalog {
    margin-top: 0;
    margin-bottom: 0;
}

.medium-index + .medium-index,
.medium-index + .medium-catalog,
.medium-catalog + .medium-index,
.medium-catalog + .medium-catalog,
.complex-inventory + .complex-inventory,
.complex-inventory + .complex-catalog,
.complex-catalog + .complex-inventory,
.complex-catalog + .complex-catalog,
.books-test-inventory + .books-test-inventory,
.books-test-inventory + .books-test-catalog,
.books-test-catalog + .books-test-inventory,
.books-test-catalog + .books-test-catalog {
    margin-top: 48px;
}


/* =========================================================
   10.7 — MEDIUM INDEX / CREDENTIALS
   Shared vertical geometry with catalog.
========================================================= */

.medium-index-row,
.catalog-inventory-row,
.book-inventory-row {
    display: grid;
    grid-template-columns:
        8%
        36%
        28%
        28%;

    align-items: stretch;

    width: 100%;

    border-bottom: 1px solid var(--rule);

    color: var(--ink);
    text-decoration: none;
}

.medium-index-row > *,
.catalog-inventory-row > *,
.book-inventory-row > * {
    min-width: 0;

    margin: 0;
    padding: 10px;

    border-right: 1px solid var(--rule);
}

.medium-index-row > *:last-child,
.catalog-inventory-row > *:last-child,
.book-inventory-row > *:last-child {
    border-right: 0;
}

.medium-index-row span,
.catalog-inventory-row span,
.book-inventory-row span {
    font-family: monospace;
    font-size: 9px;
    line-height: 1.35;
}

.medium-index-row strong,
.catalog-inventory-row strong,
.book-inventory-row strong {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 400;
}

.medium-index-row > span:first-child {
    color: var(--muted);
    opacity: .6;
}

.medium-index-note,
.catalog-inventory-note,
.book-inventory-open {
    padding: 11px 10px;

    color: var(--muted);

    font-family: monospace;
    font-size: 9px;
    line-height: 1.4;
}


/* =========================================================
   10.8 — MEDIUM CATALOG / RECORDS
   Same page grid: index 8% / main 64% / metadata 28%.
========================================================= */

.medium-record,
.catalog-record,
.book-record {
    display: grid;
    grid-template-columns:
        8%
        64%
        28%;

    align-items: stretch;

    width: 100%;
    max-width: none;
    min-height: 0;

    border-bottom: 1px solid var(--ink);
}


/* =========================================================
   10.7.1 — MEDIUM INDEX ACTION COLUMN
========================================================= */

.medium-index-row > a:last-child,
.catalog-inventory-row > a:last-child,
.book-inventory-row > a:last-child,
.medium-index-action {
    display: block;

    width: auto;
    min-width: 0;
    min-height: 0;

    margin: 0;
    padding: 10px;

    border: 0;
    border-radius: 0;

    color: var(--ink);
    background: transparent;

    font-family: monospace;
    font-size: 9px;
    line-height: 1.35;
    font-weight: 400;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;

    cursor: pointer;
}

.medium-index-row > a:last-child:hover,
.medium-index-row > a:last-child:focus-visible,
.catalog-inventory-row > a:last-child:hover,
.catalog-inventory-row > a:last-child:focus-visible,
.book-inventory-row > a:last-child:hover,
.book-inventory-row > a:last-child:focus-visible,
.medium-index-action:hover,
.medium-index-action:focus-visible {
    color: var(--teal);
    background: transparent;
    outline: 0;
}

/* =========================================================
   10.8 — MEDIUM CATALOG / RECORDS
========================================================= */

.medium-record,
.catalog-record,
.book-record {
    display: grid;
    grid-template-columns:
        8%
        64%
        28%;

    align-items: stretch;

    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 0;

    border-bottom: 1px solid var(--ink);
}


/* =========================================================
   10.9 — MEDIUM RECORD INDEX
========================================================= */

.medium-record-index,
.catalog-record-index,
.book-record-index {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 100%;
    min-width: 0;

    padding: 17px 10px;

    border-right: 1px solid var(--ink);

    color: var(--muted);

    font-family: monospace;
    font-size: 9px;
    line-height: 1.35;
}


/* =========================================================
   10.10 — MEDIUM RECORD BODY
========================================================= */

.medium-record-main,
.catalog-record-main,
.book-record-main {
    width: 100%;
    min-width: 0;

    padding: 18px 28px 20px;
}

.medium-record-type,
.catalog-record-type,
.book-record-type {
    margin: 0 0 12px;

    color: var(--muted);

    font-family: monospace;
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: .05em;
}

.medium-record-main h2,
.catalog-record-main h2,
.book-record-main h2 {
    margin: 0 0 5px;

    font-size: 28px;
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -.025em;
}

.medium-record-role,
.catalog-record-role,
.book-record-role {
    margin: 0;

    color: var(--muted);

    font-family: monospace;
    font-size: 9px;
    line-height: 1.35;
}

.medium-record-description,
.catalog-record-description,
.book-record-description {
    width: 100%;
    max-width: 650px;

    margin: 12px 0 0;

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   10.11 — MEDIUM RECORD METADATA
========================================================= */

.medium-record-meta,
.catalog-record-meta,
.book-record-meta {
    width: 100%;
    min-width: 0;

    border-left: 1px solid var(--ink);
}

.medium-record-meta p,
.catalog-record-meta p,
.book-record-meta p {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 11px 13px;

    border-bottom: 1px solid var(--rule);

    font-family: monospace;
    font-size: 9px;
    line-height: 1.4;
}

.medium-record-meta p:last-child,
.catalog-record-meta p:last-child,
.book-record-meta p:last-child {
    border-bottom: 0;
}

.medium-record-meta span,
.catalog-record-meta span,
.book-record-meta span {
    display: block;

    margin-bottom: 4px;

    color: var(--muted);

    font-size: 8px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .06em;
}


/* =========================================================
   10.12 — MEDIUM QUOTE
========================================================= */

.medium-record-quote,
.catalog-record-quote,
.book-record-quote {
    max-width: 500px;

    margin: 25px 0 0;
    padding-top: 11px;

    border-top: 1px dotted var(--rule);
}

.medium-record-quote p,
.catalog-record-quote p,
.book-record-quote p {
    margin: 0;

    font-size: 12px;
    line-height: 1.5;
    font-style: italic;
}

.medium-record-quote footer,
.catalog-record-quote footer,
.book-record-quote footer {
    margin-top: 5px;

    color: var(--muted);

    font-family: monospace;
    font-size: 9px;
}


/* =========================================================
   10.13 — MEDIUM NOTE
========================================================= */

.medium-note,
.complex-page .media-note,
.books-test-page .media-note {
    margin-top: 48px;
    margin-bottom: 0;

    font-size: 9px;
    line-height: 1.4;
}


/* =========================================================
   10.14 — PUBLIC DOCUMENTATION
   Intentional wider exception.
========================================================= */

.public-documentation-page .medium-header,
.public-documentation-page .medium-intro,
.public-documentation-page .medium-index,
.public-documentation-page .medium-catalog,
.public-documentation-page .medium-note,
.public-documentation-page > footer,
.public-documentation-page .medium-directory-note {
    width: min(var(--medium-width), var(--special-page-width));
    max-width: var(--medium-width);

    margin-left: auto;
    margin-right: auto;
}

.public-documentation-page .medium-directory-note {
    margin-top: 48px;

    font-size: 12px;
    line-height: 1.5;
}

.public-documentation-page .medium-index-row {
    grid-template-columns: 10% 42% 34% 14%;
}


/* =========================================================
   10.15 — SURVIVOR ECOSYSTEM
   Intentional wider exception.
========================================================= */

.survivor-ecosystem-page .medium-header,
.survivor-ecosystem-page .medium-intro,
.survivor-ecosystem-page .medium-index,
.survivor-ecosystem-page .medium-catalog,
.survivor-ecosystem-page .medium-note,
.survivor-ecosystem-page > footer {
    width: min(var(--medium-width), var(--special-page-width));
    max-width: var(--medium-width);

    margin-left: auto;
    margin-right: auto;
}

.survivor-ecosystem-page .medium-index-row {
    grid-template-columns:
        105px
        minmax(220px, 1.05fr)
        minmax(330px, 1.45fr)
        110px;
}


/* =========================================================
   10.16 — MEDIUM FOOTER
========================================================= */

.medium-page > footer,
.complex-page > footer,
.books-test-page > footer {
    margin-top: 72px;
}


/* =========================================================
   11 — HOME PAGE
========================================================= */

body.home-page {
    width: calc(100% - 80px);
    max-width: none;
}

.home-header,
.home-index,
.home-page > footer {
    width: min(var(--medium-width), 82%);
    max-width: var(--medium-width);

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   11.1 — HOME HEADER
========================================================= */

.home-header {
    margin-top: 72px;
    margin-bottom: 86px;
}

.home-header h1 {
    margin: 0 0 16px;

    font-size: 52px;
    line-height: .95;
    font-weight: 500;
    letter-spacing: -.045em;
}

.home-role {
    margin: 0;

    font-family: monospace;
    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   11.2 — HOME INDEX
========================================================= */

.home-index {
    border-top: 1px solid var(--ink);
}

.home-index-row {
    display: grid;
    grid-template-columns:
        72px
        minmax(220px, .9fr)
        minmax(280px, 1.4fr)
        80px;

    align-items: stretch;

    width: 100%;
    min-height: 104px;

    border-bottom: 1px solid var(--ink);

    color: var(--ink);
    text-decoration: none;
}

.home-index-row > * {
    display: flex;
    align-items: center;

    min-width: 0;
    margin: 0;
    padding: 20px 18px;

    border-right: 1px solid var(--rule);
}

.home-index-row > *:last-child {
    border-right: 0;
}

.home-index-row > span {
    font-family: monospace;
    font-size: 9px;
    line-height: 1.4;
}

.home-index-row strong {
    font-size: 30px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -.025em;
}

.home-index-row > span:nth-child(3) {
    color: var(--muted);
}

.home-index-row > span:last-child {
    justify-content: flex-end;
}

.home-index-row:hover,
.home-index-row:focus-visible {
    color: var(--highlight);
    background: var(--teal);
    outline: 0;
}

.home-index-row:hover > span,
.home-index-row:focus-visible > span {
    color: inherit;
}

.home-page > footer {
    margin-top: 86px;
}


/* =========================================================
   12 — SIMPLE CONTACT PAGE
========================================================= */

body.contact-home-page {
    width: min(var(--site-width), calc(100% - 80px));
    max-width: none;
    min-height: 100vh;

    background: var(--paper);
}

.contact-simple {
    width: 100%;
    max-width: 680px;

    margin: 72px 0 0;
}

.contact-simple-header {
    margin: 0 0 48px;
}

.contact-simple-header h1 {
    margin: 0 0 12px;

    font-size: 44px;
    line-height: .95;
    font-weight: 500;
    letter-spacing: -.045em;
}

.contact-simple-header p {
    margin: 0;

    font-size: 14px;
}

.contact-simple-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    width: 100%;
}

.contact-simple-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 16px;

    border: 1px solid var(--ink);

    color: var(--ink);
    background: var(--paper);

    font-family: monospace;
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
}

.contact-simple-button:hover,
.contact-simple-button:focus-visible {
    color: var(--highlight);
    background: var(--teal);
    outline: 0;
}

.contact-home-page > footer {
    margin-top: 160px;
}


/* =========================================================
   13 — ARTICLE UTILITIES
========================================================= */

.article-note {
    margin: 1.5rem 0;

    color: #777;

    font-size: .82em;
    line-height: 1.5;
}

.article-note + .article-note {
    margin-top: 1rem;
}

.article-note a {
    color: inherit;

    text-decoration-color: #aaa;
    text-underline-offset: .15em;
}

.article-note a:hover,
.article-note a:focus-visible {
    color: #111;

    text-decoration-color: currentColor;
}

.article-page article .timestamp {
    margin-top: 2.25rem;
    margin-bottom: .35rem;
}

.article-page article .timestamp + p,
.article-page article .timestamp + .article-note {
    margin-top: 0;
}

.medium-section-code {
    display: inline-flex;
    align-items: center;
}

.medium-section-number {
    display: inline-block;

    margin-right: 8px;
    padding-right: 8px;

    border-right: 1px solid #d8d5cf;
}

.is-developing {
    color: #aaa;
    font-style: italic;
    font-weight: 400;
}


/* =========================================================
   14 — TABLE / CATALOG LINK COLORS
========================================================= */

.medium-index-row a,
.catalog-inventory-row a,
.book-inventory-row a,
.medium-record a,
.catalog-record a,
.book-record a,
.archive-row a,
.archive-credit a,
.archive-table a,
.medium-index-row a:visited,
.catalog-inventory-row a:visited,
.book-inventory-row a:visited,
.medium-record a:visited,
.catalog-record a:visited,
.book-record a:visited,
.archive-row a:visited,
.archive-credit a:visited,
.archive-table a:visited {
    color: inherit;
    text-decoration-color: currentColor;
}


/* =========================================================
   15 — MOBILE
========================================================= */

@media (max-width: 768px) {

    html {
        background: var(--paper) !important;
    }

    body,
    body.medium-page,
    body.complex-page,
    body.books-test-page {
        width: calc(100% - 32px);
        min-height: 100vh;

        margin-left: auto;
        margin-right: auto;

        padding: 20px 0 40px;

        background: var(--paper) !important;

        font-size: 13px;
    }

    body:not(.medium-page):not(.complex-page):not(.books-test-page):not(.home-page):not(.contact-home-page) {
        width: calc(100% - 48px);
    }

    h1 {
        margin-bottom: 36px;

        font-size: 38px;
    }


    /* =====================================================
       15.1 — MOBILE NAVIGATION
    ===================================================== */

    .site-nav {
        width: 100%;

        margin-bottom: 50px;

        font-size: 8px;
    }

    .site-index summary {
        font-size: 8px;
    }

    .site-index-menu {
        width: 160px;
    }

    .site-index-menu a {
        padding: 9px 10px;

        font-size: 8px;
    }

    .index-panel {
        width: calc(100% - 40px);

        padding-top: 64px;
    }

    .index-panel a {
        grid-template-columns: 32px 1fr;

        font-size: 30px;
    }

    .index-close {
        top: 18px;
        right: 20px;
    }


    /* =====================================================
       15.2 — MOBILE ARCHIVE
    ===================================================== */

    .archive-table-head {
        display: none;
    }

    .archive-row {
        display: block;

        padding: 11px 0;

        background: transparent !important;
        border-bottom: 1px dotted var(--rule);
    }

    .archive-row > * {
        padding: 3px 10px;

        border: 0 !important;
    }

    .archive-meta,
    .archive-credit {
        font-size: 8px !important;
    }


    /* =====================================================
       15.3 — MOBILE MEDIUM WIDTH
    ===================================================== */

    .medium-header,
    .complex-page-header,
    .books-test-header,
    .medium-index,
    .complex-inventory,
    .books-test-inventory,
    .medium-catalog,
    .complex-catalog,
    .books-test-catalog,
    .medium-note,
    .complex-page .media-note,
    .books-test-page .media-note,
    .medium-page > footer,
    .complex-page > footer,
    .books-test-page > footer,
    .public-documentation-page .medium-header,
    .public-documentation-page .medium-intro,
    .public-documentation-page .medium-index,
    .public-documentation-page .medium-catalog,
    .public-documentation-page .medium-note,
    .public-documentation-page > footer,
    .public-documentation-page .medium-directory-note,
    .survivor-ecosystem-page .medium-header,
    .survivor-ecosystem-page .medium-intro,
    .survivor-ecosystem-page .medium-index,
    .survivor-ecosystem-page .medium-catalog,
    .survivor-ecosystem-page .medium-note,
    .survivor-ecosystem-page > footer {
        width: 100%;
        max-width: none;

        margin-left: 0;
        margin-right: 0;
    }

    .public-documentation-page .medium-directory-note {
        margin-top: 38px;
    }


    /* =====================================================
       15.4 — MOBILE MEDIUM HEADER
    ===================================================== */

    .medium-header,
    .complex-page-header,
    .books-test-header {
        display: block;

        margin-bottom: 42px;
    }

    .medium-number,
    .complex-page-number,
    .books-test-number {
        margin-bottom: 8px;
    }

    .medium-header h1,
    .complex-page-header h1,
    .books-test-header h1 {
        margin: 0;

        font-size: 38px;
    }

    .medium-status,
    .complex-page-status,
    .books-test-status {
        margin-top: 12px;
        margin-bottom: 0;

        text-align: left;
    }


    /* =====================================================
       15.5 — MOBILE MEDIUM INTRO
    ===================================================== */

    .medium-intro,
    .complex-intro,
    .books-test-practice {
        display: none;
    }


    /* =====================================================
       15.6 — MOBILE MEDIUM INDEX
    ===================================================== */

    .medium-index,
    .complex-inventory,
    .books-test-inventory {
        margin-bottom: 0;
    }

    .medium-index-row,
    .catalog-inventory-row,
    .book-inventory-row,
    .public-documentation-page .medium-index-row,
    .survivor-ecosystem-page .medium-index-row {
        display: grid;
        grid-template-columns: 86px minmax(0, 1fr);

        width: 100%;
        min-width: 0;
    }

    .medium-index-row > *,
    .catalog-inventory-row > *,
    .book-inventory-row > * {
        min-width: 0;
        margin: 0;

        padding-left: 10px;
        padding-right: 10px;
    }

    .medium-index-row > *:nth-child(1),
    .catalog-inventory-row > *:nth-child(1),
    .book-inventory-row > *:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / 4;

        padding-top: 9px;
        padding-bottom: 9px;

        border-right: 1px solid var(--rule);

        font-size: 8px;
        line-height: 1.2;
    }

    .medium-index-row > *:nth-child(2),
    .catalog-inventory-row > *:nth-child(2),
    .book-inventory-row > *:nth-child(2) {
        grid-column: 2;
        grid-row: 1;

        padding-top: 9px;
        padding-bottom: 3px;

        border-right: 0;

        font-size: 13px;
        line-height: 1.2;
    }

    .medium-index-row > *:nth-child(3),
    .catalog-inventory-row > *:nth-child(3),
    .book-inventory-row > *:nth-child(3) {
        grid-column: 2;
        grid-row: 2;

        padding-top: 2px;
        padding-bottom: 3px;

        border-right: 0;

        color: var(--muted);

        font-size: 8px;
        line-height: 1.3;
    }

    .medium-index-row > *:nth-child(4),
    .catalog-inventory-row > *:nth-child(4),
    .book-inventory-row > *:nth-child(4) {
        grid-column: 2;
        grid-row: 3;

        padding-top: 3px;
        padding-bottom: 9px;

        border-right: 0;
    }

    .medium-index-row > a:last-child,
    .catalog-inventory-row > a:last-child,
    .book-inventory-row > a:last-child,
    .medium-index-action {
        padding: 3px 10px 9px;

        font-size: 8px;
        line-height: 1.2;
    }


    /* =====================================================
       15.7 — MOBILE MEDIUM CATALOG
    ===================================================== */

    .medium-catalog,
    .complex-catalog,
    .books-test-catalog {
        width: 100%;
        max-width: 100%;

        overflow: visible;
    }


    /* =====================================================
       15.8 — MOBILE MEDIUM RECORD
    ===================================================== */

    .medium-record,
    .catalog-record,
    .book-record {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);

        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .medium-record-index,
    .catalog-record-index,
    .book-record-index {
        grid-column: 1;
        grid-row: 1 / 3;

        min-width: 0;

        padding: 14px 8px;
    }

    .medium-record-main,
    .catalog-record-main,
    .book-record-main {
        grid-column: 2;
        grid-row: 1;

        width: 100%;
        min-width: 0;
        max-width: 100%;

        padding: 18px 16px 24px;
    }

    .medium-record-main h2,
    .catalog-record-main h2,
    .book-record-main h2 {
        font-size: 18px;
    }

    .medium-record-description,
    .catalog-record-description,
    .book-record-description {
        width: 100%;
        max-width: 100%;

        overflow-wrap: break-word;
    }


    /* =====================================================
       15.9 — MOBILE MEDIUM METADATA
    ===================================================== */

    .medium-record-meta,
    .catalog-record-meta,
    .book-record-meta {
        grid-column: 2;
        grid-row: 2;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        width: 100%;
        min-width: 0;
        max-width: 100%;

        border-top: 1px solid var(--ink);
        border-left: 0;
    }

    .medium-record-meta p,
    .catalog-record-meta p,
    .book-record-meta p {
        min-width: 0;

        padding: 9px 10px;

        border-right: 1px solid var(--rule);

        overflow-wrap: break-word;
    }

    .medium-record-meta p:nth-child(even),
    .catalog-record-meta p:nth-child(even),
    .book-record-meta p:nth-child(even) {
        border-right: 0;
    }

    .medium-record-quote,
    .catalog-record-quote,
    .book-record-quote {
        width: 100%;
        max-width: 100%;
    }

    .medium-note,
    .complex-page .media-note,
    .books-test-page .media-note {
        margin-top: 38px;
    }


    /* =====================================================
       15.10 — MOBILE HOME
    ===================================================== */

    body.home-page {
        width: calc(100% - 32px);

        background: var(--paper) !important;
    }

    .home-header,
    .home-index,
    .home-page > footer {
        width: 100%;
        max-width: none;

        margin-left: 0;
        margin-right: 0;
    }

    .home-header {
        margin-top: 34px;
        margin-bottom: 64px;
    }

    .home-header h1 {
        margin-bottom: 14px;

        font-size: 38px;
    }

    .home-index-row {
        grid-template-columns: 44px minmax(0, 1fr) 52px;

        min-height: 64px;
    }

    .home-index-row > * {
        padding: 13px 9px;
    }

    .home-index-row strong {
        font-size: 18px;
    }

    .home-index-row > span:nth-child(3) {
        display: none;
    }

    .home-index-row > span:last-child {
        justify-content: flex-end;
    }

    .home-page > footer {
        margin-top: 48px;
    }


    /* =====================================================
       15.11 — MOBILE CONTACT
    ===================================================== */

    body.contact-home-page {
        width: calc(100% - 48px);

        background: var(--paper) !important;
    }

    .contact-simple {
        width: 100%;
        max-width: none;

        margin-top: 48px;
    }

    .contact-simple-header {
        margin-bottom: 36px;
    }

    .contact-simple-header h1 {
        font-size: 38px;
    }

    .contact-simple-links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-simple-button {
        width: 100%;
        min-height: 46px;

        justify-content: flex-start;

        padding: 12px 14px;
    }

    .contact-home-page > footer {
        margin-top: 96px;
    }


    /* =====================================================
       15.12 — MOBILE FOOTER
    ===================================================== */

    body > footer,
    .medium-page > footer,
    .complex-page > footer,
    .books-test-page > footer {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 5px 14px;

        width: 100%;

        margin-top: 48px;
        padding-top: 10px;
    }

    body > footer p {
        margin: 0;

        font-size: 7px;
    }

    body > footer p:last-child {
        grid-column: 1 / -1;
    }
}
/* =========================================================
  15.3 DESKTOP MEDIUM GRID — MASTER COLUMN ALIGNMENT
========================================================= */

@media (min-width: 769px) {

    .medium-index-row,
    .catalog-inventory-row,
    .book-inventory-row {
        grid-template-columns:
            8%
            36%
            28%
            28% !important;
    }

    .medium-record,
    .catalog-record,
    .book-record {
        grid-template-columns:
            8%
            64%
            28% !important;
    }

    .medium-record-index,
    .catalog-record-index,
    .book-record-index {
        width: 100%;
        min-width: 0;
    }

    .medium-record-main,
    .catalog-record-main,
    .book-record-main {
        width: 100%;
        min-width: 0;
    }

    .medium-record-meta,
    .catalog-record-meta,
    .book-record-meta {
        width: 100%;
        min-width: 0;
    }
}
/* =========================================================
   17 — TERRAIN CALENDARS / PRIVATE DESK
========================================================= */

body.terrain-calendar-page {
    width: min(1180px, calc(100% - 80px));
    max-width: none;
}

.tc-shell {
    width: 100%;
}


/* =========================================================
   17.1 — HEADER
========================================================= */

.tc-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;

    margin: 60px 0 48px;
}

.tc-eyebrow,
.tc-header-date,
.tc-breadcrumb,
.tc-panel-title,
.tc-calendar-bottom,
.tc-legend,
.tc-pattern-labels,
.tc-footer,
.tc-drawer-top > div > span,
.tc-drawer-bottom,
.tc-day-drawer label {
    font-family: monospace;
    font-size: 9px;
    letter-spacing: .025em;
}

.tc-eyebrow {
    margin: 0 0 13px;
    color: var(--muted);
}

.tc-header h1 {
    margin: 0 0 17px;

    font-size: clamp(40px, 6vw, 72px);
    letter-spacing: -.055em;
}

.tc-star {
    margin-left: 12px;

    color: var(--teal);
    font-size: .5em;
    vertical-align: top;
}

.tc-subtitle {
    max-width: 480px;
    margin: 0;

    font-size: 13px;
    line-height: 1.5;
}

.tc-header-date {
    margin: 0 0 3px;

    color: var(--muted);
    white-space: nowrap;
}

.tc-breadcrumb {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 30px;
    padding: 12px 0;

    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.tc-breadcrumb a {
    text-decoration: none;
}

.tc-breadcrumb a:hover {
    color: var(--teal);
}

.tc-breadcrumb span {
    color: var(--muted);
}


/* =========================================================
   17.2 — PANELS
========================================================= */

.tc-panel {
    margin: 0 0 30px;
    border: 1px solid var(--ink);
}

.tc-panel-title {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    padding: 10px 14px;

    border-bottom: 1px solid var(--ink);
    background: var(--paper);
}

.tc-panel-title span:last-child {
    color: var(--muted);
}


/* =========================================================
   17.3 — MONTH CONTROLS
========================================================= */

.tc-month-controls {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 20px 14px;
}

.tc-month-controls h2 {
    margin: 0 auto 0 6px;

    font-size: clamp(24px, 4vw, 38px);
    letter-spacing: -.04em;
}

.tc-month-controls button,
.tc-drawer-top button {
    min-width: 35px;
    min-height: 35px;
    padding: 6px;

    border: 1px solid var(--rule);
    background: transparent;

    font-size: 15px;
}

.tc-month-controls button:hover,
.tc-drawer-top button:hover {
    color: var(--highlight);
    background: var(--teal);
}

.tc-month-controls .tc-today {
    padding: 8px 12px;

    font-family: monospace;
    font-size: 9px;
}


/* =========================================================
   17.4 — MONTH GRID
========================================================= */

.tc-weekdays,
.tc-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tc-weekdays {
    border-top: 1px solid var(--rule);
}

.tc-weekdays span {
    padding: 11px 10px;

    border-right: 1px solid var(--rule);

    color: var(--muted);

    font-family: monospace;
    font-size: 9px;
    text-align: right;
}

.tc-weekdays span:last-child {
    border-right: 0;
}

.tc-month-grid {
    border-top: 1px solid var(--rule);
}

.tc-day {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;

    min-width: 0;
    aspect-ratio: 1.25;
    padding: 12px;

    border: 0;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);

    background: var(--paper);
    text-align: left;

    transition: background .15s;
}

.tc-day:nth-child(7n) {
    border-right: 0;
}

.tc-day-number {
    font-size: clamp(15px, 2vw, 26px);
    letter-spacing: -.04em;
}

.tc-day-empty {
    background: var(--band);
    opacity: .45;
    pointer-events: none;
}

.tc-day.is-today {
    background: var(--highlight);
}

.tc-day.is-selected,
.tc-day:hover:not(.tc-day-empty) {
    color: var(--highlight);
    background: var(--teal);
}

.tc-day-mark {
    align-self: flex-end;
    font-size: 16px;
}

.tc-calendar-bottom {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    padding: 12px 14px;

    color: var(--muted);
}

.tc-dot {
    display: inline-block;

    width: 8px;
    height: 8px;
    margin-right: 5px;

    border: 1px solid var(--ink);
    background: var(--highlight);
}


/* =========================================================
   17.5 — EXPANDABLE DAY DRAWER
========================================================= */

.tc-day-drawer {
    padding: 20px;

    border-top: 1px solid var(--ink);
    background: #f5f2e6;
}

.tc-day-drawer[hidden] {
    display: none;
}

.tc-drawer-top {
    display: flex;
    justify-content: space-between;
    align-items: start;

    margin-bottom: 18px;
}

.tc-drawer-top h3 {
    margin: 8px 0 0;

    font-size: 24px;
    font-weight: 400;
}

.tc-day-drawer label {
    display: block;
    margin-bottom: 8px;
}

.tc-day-drawer textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px;

    border: 1px solid var(--rule);
    background: var(--paper);

    font: 13px/1.5 Arial, Helvetica, sans-serif;
    resize: vertical;
}

.tc-drawer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 10px;
}

.tc-drawer-bottom button {
    color: var(--highlight);
    background: var(--teal);

    font-family: monospace;
    font-size: 10px;
}


/* =========================================================
   17.6 — WEEKLY FIELD
========================================================= */

.tc-week-header,
.tc-block-heading,
.tc-atlas-intro {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;

    padding: 22px 14px;
}

.tc-week-header h2,
.tc-block-heading h2,
.tc-atlas-intro h2 {
    margin: 0;

    font-size: 25px;
    letter-spacing: -.03em;
}

.tc-week-header p,
.tc-block-heading p,
.tc-atlas-intro p {
    margin: 0;

    color: var(--muted);

    font-family: monospace;
    font-size: 9px;
}

.tc-week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;

    padding: 0 14px 14px;
}

.tc-week-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;

    min-width: 0;
    min-height: 155px;
    padding: 12px;

    border: 1px solid var(--rule);
    background: var(--band);

    text-align: left;
}

.tc-week-card > span {
    font-family: monospace;
    font-size: 9px;
}

.tc-week-card strong {
    font-size: clamp(26px, 3.5vw, 48px);
    font-weight: 400;
    line-height: 1;
}

.tc-week-green {
    background: #c8e6cc;
}

.tc-week-yellow {
    background: #f4e58d;
}

.tc-week-current {
    outline: 2px solid var(--teal);
    outline-offset: -3px;
}

.tc-week-card:hover {
    color: var(--highlight);
    background: var(--teal);
}

.tc-legend,
.tc-pattern-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    padding: 10px 14px 15px;

    color: var(--muted);
}

.tc-key,
.tc-swatch {
    display: inline-block;

    width: 10px;
    height: 10px;
    margin-right: 6px;

    border: 1px solid var(--rule);

    vertical-align: middle;
}

.tc-key-green {
    background: #c8e6cc;
}

.tc-key-yellow {
    background: #f4e58d;
}

.tc-key-plain {
    background: var(--band);
}


/* =========================================================
   17.7 — PATTERNED TIMELINE
========================================================= */

.tc-timeline {
    display: grid;
    grid-template-columns: 52px repeat(8, minmax(0, 1fr));
    gap: 3px;

    padding: 0 14px;
}

.tc-time-label {
    padding: 5px 0;

    color: var(--muted);

    font-family: monospace;
    font-size: 8px;
    text-align: center;
}

.tc-time-day {
    display: flex;
    align-items: center;

    font-family: monospace;
    font-size: 9px;
}

.tc-time-cell {
    height: 47px;
    padding: 0;

    border: 1px solid var(--rule);
    background: var(--band);
}

.tc-time-0 {
    background: repeating-linear-gradient(
        135deg,
        transparent 0 8px,
        #d8d5cf 8px 9px
    );
}

.tc-time-1 {
    background: repeating-linear-gradient(
        135deg,
        #d1ead6 0 6px,
        #246b68 6px 8px
    );
}

.tc-time-2 {
    background: radial-gradient(
        #a78323 1px,
        #f4e58d 1.6px
    );

    background-size: 9px 9px;
}

.tc-time-cell:hover {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}

.tc-swatch-a {
    background: var(--teal);
}

.tc-swatch-b {
    background: var(--highlight);
}

.tc-swatch-c {
    background: var(--band);
}


/* =========================================================
   17.8 — SEASONAL ATLAS
========================================================= */

.tc-year-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;

    padding: 0 14px 14px;
}

.tc-year-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;

    min-height: 145px;
    padding: 13px;

    border: 1px solid var(--rule);
    background: #d7e8d6;

    text-align: left;
}

.tc-year-tile:nth-child(3n+2) {
    background: #f4e58d;
}

.tc-year-tile:nth-child(4n) {
    background: #e8e7df;
}

.tc-year-tile span {
    font-family: monospace;
    font-size: 10px;
}

.tc-year-tile strong {
    font-size: clamp(17px, 2vw, 27px);
    font-weight: 400;
    letter-spacing: -.03em;
}

.tc-year-tile span:last-child {
    align-self: end;
}

.tc-year-tile:hover,
.tc-year-active {
    color: var(--highlight);
    background: var(--teal) !important;
}


/* =========================================================
   17.9 — FIELD NOTES & FOOTER
========================================================= */

.tc-notes {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;

    padding: 20px 14px;
}

.tc-notes p {
    margin: 0;
    font-size: 12px;
}

.tc-notes a {
    font-family: monospace;
    font-size: 9px;
    white-space: nowrap;
}

.tc-footer {
    display: flex;
    justify-content: space-between;

    margin-top: 70px;
    padding-top: 12px;

    border-top: 1px solid var(--ink);

    color: var(--muted);
}

.tc-footer p {
    margin: 0;
    font-size: 9px;
}


/* =========================================================
   17.10 — MOBILE TERRAIN CALENDARS
========================================================= */

@media (max-width: 768px) {

    body.terrain-calendar-page {
        width: calc(100% - 32px) !important;
    }

    .tc-header {
        display: block;
        margin: 35px 0;
    }

    .tc-header-date {
        margin-top: 15px;
    }

    .tc-breadcrumb span {
        font-size: 8px;
    }

    .tc-panel-title {
        font-size: 8px;
    }

    .tc-month-controls {
        padding: 14px 8px;
        gap: 5px;
    }

    .tc-month-controls h2 {
        font-size: 24px;
    }

    .tc-month-controls button {
        min-width: 28px;
        min-height: 30px;
    }

    .tc-day {
        aspect-ratio: .8;
        padding: 6px;
    }

    .tc-day-number {
        font-size: 13px;
    }

    .tc-weekdays span {
        padding: 7px 3px;

        font-size: 8px;
        text-align: center;
    }

    .tc-week-strip {
        gap: 3px;
        padding: 0 8px 10px;
    }

    .tc-week-card {
        min-height: 105px;
        padding: 5px;
    }

    .tc-week-card strong {
        font-size: 20px;
    }

    .tc-week-card > span {
        font-size: 7px;
        overflow-wrap: anywhere;
    }

    .tc-week-header,
    .tc-block-heading,
    .tc-atlas-intro {
        padding: 15px 10px;
    }

    .tc-week-header h2,
    .tc-block-heading h2,
    .tc-atlas-intro h2 {
        font-size: 20px;
    }

    .tc-week-header p,
    .tc-block-heading p,
    .tc-atlas-intro p {
        font-size: 8px;
        text-align: right;
    }

    .tc-timeline {
        grid-template-columns: 30px repeat(8, minmax(0, 1fr));
        gap: 2px;

        padding: 0 8px;
    }

    .tc-time-label {
        font-size: 6px;
    }

    .tc-time-day {
        font-size: 7px;
    }

    .tc-time-cell {
        height: 38px;
    }

    .tc-year-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;

        padding: 0 8px 10px;
    }

    .tc-year-tile {
        min-height: 100px;
        padding: 8px;
    }

    .tc-year-tile strong {
        font-size: 16px;
    }

    .tc-notes {
        display: block;
    }

    .tc-notes a {
        display: inline-block;
        margin-top: 16px;
    }

    .tc-footer {
        margin-top: 45px;
    }
}
/* =========================================================
   16 — TERRAIN CALENDAR VIEW SYSTEM
========================================================= */

.calendar-view-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;

    width: 100%;
    margin: 0 0 30px;
}

.calendar-view-buttons,
.calendar-display-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.calendar-view-button,
.calendar-display-button {
    min-height: 38px;
    padding: 11px 16px;

    border: 1px solid var(--rule);
    border-radius: 0;

    color: var(--ink);
    background: transparent;

    font-family: monospace;
    font-size: 10px;
    line-height: 1;

    cursor: pointer;

    transition: background .15s ease,
                color .15s ease,
                border-color .15s ease;
}

.calendar-view-button:hover,
.calendar-display-button:hover,
.calendar-view-button:focus-visible,
.calendar-display-button:focus-visible {
    color: var(--highlight);
    background: var(--teal);
    border-color: var(--teal);
    outline: none;
}

.calendar-view-button.is-active {
    color: var(--highlight);
    background: var(--teal);
    border-color: var(--teal);
}

.calendar-display-button.is-active {
    color: var(--ink);
    background: var(--highlight);
    border-color: var(--highlight);
}

#calendar-workspace {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#calendar-workspace > [data-calendar] {
    width: 100%;
    margin: 0;
}

#calendar-workspace.is-focus > [data-calendar] {
    display: none;
}

#calendar-workspace.is-focus > [data-calendar].is-selected {
    display: block;
}

/* =========================================================
   16.1 — MOBILE CALENDAR CONTROLS
========================================================= */

@media (max-width: 768px) {

    .calendar-view-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .calendar-view-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-view-button {
        width: 100%;
        min-height: 42px;
        padding: 12px 10px;
        text-align: left;
    }

    .calendar-display-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-display-button {
        width: 100%;
    }

}
/* =========================================================
   16 — TERRAIN CALENDARS / MOBILE REFINEMENT
========================================================= */

@media (max-width: 768px) {

    /* DAY DRAWER */

    .day-drawer {
        padding: 18px 16px 22px;
    }

    .day-drawer h2 {
        max-width: none;
        margin: 8px 0 22px;

        font-size: 24px;
        line-height: 1.12;
        font-weight: 400;
        letter-spacing: -.035em;
    }

    .day-drawer p,
    .day-drawer label {
        font-size: 10px;
        line-height: 1.45;
    }

    .day-drawer input,
    .day-drawer select,
    .day-drawer textarea {
        width: 100%;
        min-height: 38px;
        padding: 10px;

        border-radius: 0;

        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        line-height: 1.4;
    }

    .day-drawer textarea {
        min-height: 90px;
    }

    .day-drawer button {
        min-height: 32px;
        padding: 7px 10px;

        font-family: monospace;
        font-size: 9px;
    }

    /* DRAWER CLOSE BUTTON */

    .day-drawer-close {
        width: 30px;
        height: 30px;
        min-height: 30px;
        padding: 0;

        font-size: 13px;
        line-height: 1;
    }

    /* SMALL LABELS */

    .day-drawer .meta,
    .day-drawer .date,
    .day-drawer .updated {
        font-family: monospace;
        font-size: 8px;
        letter-spacing: .025em;
    }

    /* FORM SPACING */

    .day-drawer form {
        display: grid;
        gap: 12px;
    }

    .day-drawer form label {
        margin-bottom: 4px;
    }

}
/* =========================================================
   16.1 — TERRAIN CALENDARS / COMPACT MOBILE STUDIES
========================================================= */

@media (max-width: 768px) {

    /* WEEKLY FIELD */

    .week-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .week-day {
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        min-width: 0;
        min-height: 76px;
        padding: 9px;
    }

    .week-day .day-number {
        font-size: 24px;
        line-height: 1;
        letter-spacing: -.04em;
    }

    .week-day .weekday,
    .week-day .open-day {
        font-size: 8px;
        line-height: 1.2;
    }

    .weekly-field h2 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .weekly-field .week-range {
        font-size: 9px;
    }

    .week-navigation button {
        min-height: 28px;
        padding: 5px 8px;
        font-size: 9px;
    }

    /* PATTERN EXPERIMENT */

    .pattern-grid {
        display: grid;
        grid-template-columns: 28px repeat(8, minmax(0, 1fr));
        gap: 2px;

        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
    }

    .pattern-grid .pattern-hour {
        min-width: 0;
        font-size: 6px;
        letter-spacing: -.05em;
        text-align: center;
    }

    .pattern-grid .pattern-day {
        font-size: 8px;
    }

    .pattern-grid button,
    .pattern-grid .pattern-cell {
        width: 100%;
        min-width: 0;
        height: 22px;
        min-height: 22px;
        padding: 0;
        margin: 0;
    }

    .pattern-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 7px 10px;
        margin-top: 12px;
        font-size: 8px;
    }

    .pattern-clear {
        margin-top: 12px;
        padding: 6px 9px;
        font-size: 8px;
    }

}