@import url("base.css");

/* ==========================================================================
   trade-catalog.com - F5a Catalogue Shelves
   Warm paper, brown rules, ochre shelf bands. Public pages only; the shared
   base.css still carries auth, account and admin components.
   ========================================================================== */

:root {
    --brand-blue: #b9814f;
    --blue-900: #3a2a1c;
    --blue-800: #574611;
    --blue-700: #6b5322;
    --blue-600: #894611;
    --blue-500: #b9814f;
    --blue-100: #f6e7d4;
    --blue-050: #fff8ed;

    --orange: #c96a1e;
    --orange-600: #a34f12;
    --orange-700: #894611;
    --orange-100: #fbe6cf;
    --amber-050: #fff6d9;
    --amber-100: #f7bc4d;

    --ink: #2a211b;
    --ink-soft: #453a31;
    --muted: #6c5c4e;
    --muted-light: #7b6a5a;

    --line: #e4d6c4;
    --line-strong: #d3bfa8;
    --bg: #fffdf7;
    --bg-soft: #f7ecda;
    --bg-softer: #fff8ec;

    --green: #4f6b3a;
    --green-100: #edf2e6;
    --red: #a33a24;
    --red-100: #fbe9e3;

    --radius-sm: 2px;
    --radius: 3px;
    --radius-lg: 4px;

    --shadow-sm: 0 1px 2px rgba(87, 70, 17, .07);
    --shadow: 0 6px 18px rgba(87, 70, 17, .10);
    --shadow-lg: 0 20px 44px rgba(87, 70, 17, .14);

    --container: 1180px;
    --gutter: 22px;

    --font: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
    --font-brand: Lora, "Iowan Old Style", Georgia, serif;

    --tc-paper: #fffdf7;
    --tc-cream: #fff2cb;
    --tc-sand: #f2e3cf;
    --tc-rule: #d9c7b2;
    --tc-brown: #894611;
    --tc-brown-deep: #574611;
    --tc-ochre: #f7bc4d;
    --tc-ink: #2a211b;
    --tc-muted: #6c5c4e;
    --tc-serif: Lora, "Iowan Old Style", Georgia, serif;
    --tc-sans: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
    --tc-mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
}

body {
    background:
        linear-gradient(180deg, #fffaf1 0, #fffdf7 240px, #fffdf7 100%);
    color: var(--tc-ink);
    font-family: var(--tc-sans);
}

h1, h2, h3, .tc-serif {
    font-family: var(--tc-serif);
    letter-spacing: -.01em;
}

a { color: var(--tc-brown); }
a:hover { color: var(--tc-brown-deep); }

.container { max-width: var(--container); }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    left: 12px; top: -48px;
    background: var(--tc-brown-deep);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------------ header */

.tc-strip {
    background: var(--tc-brown-deep);
    color: #fdf3e3;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.tc-strip-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 22px;
    min-height: 34px;
    padding: 5px 0;
}

.tc-strip-label {
    font-family: var(--tc-mono);
    letter-spacing: .08em;
    color: #f7d9a0;
}

.tc-strip nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.tc-strip a { color: #fff; text-decoration: none; }
.tc-strip a:hover { color: var(--tc-ochre); }

.tc-masthead {
    background: var(--tc-paper);
    border-bottom: 1px solid var(--tc-rule);
}

.tc-masthead-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 22px 0 20px;
}

.tc-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--tc-ink);
}

.tc-brand:hover { color: var(--tc-brown-deep); }

.tc-shelfmark {
    width: 44px;
    height: 44px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 0 6px;
    border: 1px solid var(--tc-brown);
    background:
        repeating-linear-gradient(180deg, transparent 0 8px, rgba(137, 70, 17, .10) 8px 9px);
}

.tc-shelfmark span {
    display: block;
    height: 5px;
    background: var(--tc-brown);
}
.tc-shelfmark span:nth-child(1) { width: 78%; }
.tc-shelfmark span:nth-child(2) { width: 100%; background: var(--tc-ochre); }
.tc-shelfmark span:nth-child(3) { width: 58%; }

.tc-wordmark {
    display: block;
    font-family: var(--tc-serif);
    font-size: 30px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.02em;
}

.tc-wordmark em {
    font-style: normal;
    color: var(--tc-brown);
}

.tc-wordmark-sub {
    display: block;
    margin-top: 3px;
    font-family: var(--tc-mono);
    font-size: 9.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tc-muted);
}

.tc-site-search {
    display: flex;
    align-items: stretch;
    max-width: 520px;
    width: 100%;
    justify-self: center;
}

.tc-site-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--tc-rule);
    border-right: 0;
    background: #fff;
    padding: 10px 14px;
    font: inherit;
    font-size: 14px;
    color: var(--tc-ink);
}

.tc-site-search input:focus {
    outline: 2px solid var(--tc-ochre);
    outline-offset: -2px;
}

.tc-site-search button {
    border: 1px solid var(--tc-brown);
    background: var(--tc-brown);
    color: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 0 18px;
    cursor: pointer;
}

.tc-site-search button:hover { background: var(--tc-brown-deep); }

.tc-account {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-self: end;
}

.tc-account .link-login {
    font-size: 13px;
    color: var(--tc-brown);
    text-decoration: none;
    white-space: nowrap;
}

.tc-account .btn {
    white-space: nowrap;
}

.tc-nav {
    background: var(--tc-brown);
    color: #fff;
}

.tc-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
}

.tc-nav a {
    display: block;
    padding: 11px 16px;
    color: #fff;
    text-decoration: none;
    font-family: var(--tc-mono);
    font-size: 10.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.tc-nav a:hover,
.tc-nav a.is-active {
    background: var(--tc-brown-deep);
    color: var(--tc-ochre);
}

.tc-nav .tc-nav-more { margin-left: auto; border-left: 1px solid rgba(255, 255, 255, .18); }
.tc-nav .tc-nav-cta a { background: var(--tc-ochre); color: var(--tc-brown-deep); font-weight: 700; }
.tc-nav .tc-nav-cta a:hover { background: #ffd47d; color: var(--tc-brown-deep); }

/* -------------------------------------------------------------------- hero */

.tc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr);
    gap: 0;
    margin: 26px 0 8px;
    border: 1px solid var(--tc-rule);
    background: var(--tc-paper);
}

.tc-hero-copy {
    padding: 40px 44px 36px;
    border-right: 1px solid var(--tc-rule);
}

.tc-eyebrow {
    margin: 0 0 12px;
    font-family: var(--tc-mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tc-brown);
}

.tc-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.06;
    font-weight: 700;
    color: var(--tc-brown-deep);
    max-width: 15ch;
}

.tc-hero-lead {
    margin: 0 0 22px;
    max-width: 62ch;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--tc-ink-soft);
}

.tc-hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 540px;
}

.tc-hero-search input[type="search"] {
    flex: 1 1 240px;
    min-width: 0;
    border: 1px solid var(--tc-rule);
    border-right: 0;
    background: #fff;
    padding: 12px 14px;
    font: inherit;
    font-size: 14px;
}

.tc-hero-search select {
    border: 1px solid var(--tc-rule);
    border-left: 0;
    background: var(--tc-cream);
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    color: var(--tc-brown-deep);
}

.tc-hero-search .btn {
    border-radius: 0;
    padding: 0 20px;
    border: 1px solid var(--tc-brown);
    background: var(--tc-brown);
    color: #fff;
    font-family: var(--tc-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tc-hero-search .btn:hover { background: var(--tc-brown-deep); }

.tc-quick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 12px;
    color: var(--tc-muted);
}

.tc-quick a {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid var(--tc-rule);
    background: #fff;
    color: var(--tc-brown);
    text-decoration: none;
    font-size: 11.5px;
}

.tc-quick a:hover { border-color: var(--tc-brown); background: var(--tc-cream); }

.tc-note {
    padding: 26px 26px 22px;
    background:
        linear-gradient(180deg, #fff7e2, #fffdf7);
}

.tc-note h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--tc-brown-deep);
}

.tc-note-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--tc-rule);
}

.tc-note-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px dotted var(--tc-rule);
    font-size: 13px;
    color: var(--tc-muted);
}

.tc-note-list b {
    font-family: var(--tc-serif);
    font-size: 20px;
    color: var(--tc-brown-deep);
    line-height: 1;
}

.tc-note-foot {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--tc-muted);
}

.tc-note-stamp {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 8px;
    border: 1px solid var(--tc-brown);
    font-family: var(--tc-mono);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tc-brown);
    transform: rotate(-1.5deg);
}

/* ------------------------------------------------------------------ shelves */

.tc-section { margin: 44px 0; }

.tc-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 24px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tc-brown);
}

.tc-section-head h2 {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 32px);
    color: var(--tc-brown-deep);
}

.tc-section-lead {
    flex: 1 1 320px;
    margin: 0;
    max-width: 62ch;
    font-size: 13.5px;
    color: var(--tc-muted);
}

.tc-section-link {
    font-family: var(--tc-mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid var(--tc-brown);
}

.tc-shelf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--tc-rule);
    border: 1px solid var(--tc-rule);
}

.tc-shelf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 230px;
    padding: 20px 18px 16px;
    background: var(--tc-paper);
    text-decoration: none;
    color: var(--tc-ink);
    overflow: hidden;
}

.tc-shelf-card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 7px;
    background: var(--tc-brown);
}

.tc-shelf-card:nth-child(2n)::after { background: var(--tc-ochre); }
.tc-shelf-card:hover { background: #fff8e8; }
.tc-shelf-card:hover h3 { color: var(--tc-brown); }

.tc-shelf-no {
    font-family: var(--tc-mono);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tc-muted);
}

.tc-shelf-card h3 {
    margin: 0;
    font-size: 23px;
    line-height: 1.14;
    color: var(--tc-brown-deep);
}

.tc-shelf-sample {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--tc-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-shelf-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dotted var(--tc-rule);
    font-size: 11px;
    color: var(--tc-muted);
}

.tc-shelf-foot b {
    font-family: var(--tc-serif);
    font-size: 21px;
    line-height: 1;
    color: var(--tc-brown);
}

/* ------------------------------------------------------------------- cards */

.tc-offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tc-offer-card {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 18px 18px 14px;
    border: 1px solid var(--tc-rule);
    background: var(--tc-paper);
    min-width: 0;
}

.tc-offer-card:hover { box-shadow: var(--shadow-sm); border-color: var(--tc-brown); }

.tc-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tc-type {
    display: inline-block;
    padding: 2px 7px;
    border: 1px solid var(--tc-brown);
    font-family: var(--tc-mono);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tc-brown);
    white-space: nowrap;
}

.tc-type-buy { border-color: #4f6b3a; color: #3f5730; }

.tc-card-date {
    font-family: var(--tc-mono);
    font-size: 10px;
    color: var(--tc-muted);
    white-space: nowrap;
}

.tc-offer-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.25;
    color: var(--tc-ink);
}

.tc-offer-card h3 a { color: inherit; text-decoration: none; }
.tc-offer-card h3 a:hover { color: var(--tc-brown); }

.tc-card-excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--tc-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dotted var(--tc-rule);
    font-size: 11.5px;
    color: var(--tc-muted);
}

.tc-card-foot img { vertical-align: -1px; }
.tc-card-company { color: var(--tc-ink-soft); }

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

.tc-company-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 16px 14px;
    border: 1px solid var(--tc-rule);
    background:
        linear-gradient(180deg, #fff8e8 0, var(--tc-paper) 64px);
    min-width: 0;
}

.tc-company-card:hover { border-color: var(--tc-brown); }

.tc-company-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.22;
}

.tc-company-card h3 a { color: var(--tc-ink); text-decoration: none; }
.tc-company-card h3 a:hover { color: var(--tc-brown); }

.tc-company-loc {
    margin: 0;
    font-family: var(--tc-mono);
    font-size: 10px;
    color: var(--tc-muted);
}

.tc-company-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--tc-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-company-types {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
}

.tc-company-types span {
    font-family: var(--tc-mono);
    font-size: 9px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tc-brown);
    border: 1px solid var(--tc-rule);
    background: #fff;
    padding: 2px 5px;
}

/* ---------------------------------------------------------- catalogue page */

.tc-page-head {
    padding: 28px 0 18px;
    border-bottom: 2px solid var(--tc-brown);
    margin-bottom: 24px;
}

.tc-page-head h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    color: var(--tc-brown-deep);
}

.tc-page-lead {
    margin: 0;
    max-width: 76ch;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--tc-muted);
}

.tc-shelf-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 22px;
}

.tc-shelf-tabs a {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--tc-rule);
    background: #fff;
    font-size: 12px;
    color: var(--tc-brown);
    text-decoration: none;
}

.tc-shelf-tabs a:hover,
.tc-shelf-tabs a.is-active {
    background: var(--tc-brown);
    border-color: var(--tc-brown);
    color: #fff;
}

.tc-other-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 28px;
    border-top: 1px solid var(--tc-rule);
}

.tc-other-list a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dotted var(--tc-rule);
    font-size: 13.5px;
    color: var(--tc-ink);
    text-decoration: none;
}

.tc-other-list a:hover { color: var(--tc-brown); }

.tc-other-list span {
    font-family: var(--tc-mono);
    font-size: 10px;
    color: var(--tc-muted);
    white-space: nowrap;
}

/* -------------------------------------------------------- listing + aside */

.tc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 36px;
    align-items: start;
}

.tc-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--tc-rule);
}

.tc-toolbar h2 {
    margin: 0;
    font-size: 22px;
    color: var(--tc-brown-deep);
}

.tc-toolbar p {
    margin: 0;
    font-family: var(--tc-mono);
    font-size: 10px;
    letter-spacing: .06em;
    color: var(--tc-muted);
}

.tc-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tc-aside-card {
    border: 1px solid var(--tc-rule);
    background: var(--tc-paper);
    padding: 18px 18px 16px;
}

.tc-aside-card h2 {
    margin: 0 0 10px;
    font-family: var(--tc-mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tc-brown);
}

.tc-facts {
    margin: 0;
    display: grid;
    gap: 8px;
}

.tc-facts div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
    padding-bottom: 7px;
    border-bottom: 1px dotted var(--tc-rule);
    font-size: 12.5px;
}

.tc-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.tc-facts dt { color: var(--tc-muted); }
.tc-facts dd { margin: 0; color: var(--tc-ink); overflow-wrap: anywhere; }

.tc-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-aside-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px dotted var(--tc-rule);
    font-size: 13px;
}

.tc-aside-list li:last-child { border-bottom: 0; }
.tc-aside-list a { text-decoration: none; color: var(--tc-ink); }
.tc-aside-list a:hover { color: var(--tc-brown); }
.tc-aside-list span { font-family: var(--tc-mono); font-size: 10px; color: var(--tc-muted); }

.tc-aside-cta p {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--tc-muted);
}

.tc-aside-cta .btn { width: 100%; text-align: center; }

/* ------------------------------------------------------------ empty state */

.tc-empty {
    padding: 34px 26px;
    border: 1px dashed var(--tc-rule);
    background: #fffaf0;
    text-align: center;
}

.tc-empty h3 { margin: 0 0 8px; font-size: 22px; color: var(--tc-brown-deep); }
.tc-empty p { margin: 0 auto 14px; max-width: 56ch; font-size: 13.5px; color: var(--tc-muted); }
.tc-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* -------------------------------------------------------------- pager */

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 26px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--tc-rule);
}

.pagination a,
.pagination span {
    display: inline-block;
    min-width: 32px;
    padding: 6px 9px;
    border: 1px solid var(--tc-rule);
    background: #fff;
    text-align: center;
    font-size: 12.5px;
    text-decoration: none;
    color: var(--tc-brown);
}

.pagination .is-current {
    background: var(--tc-brown);
    border-color: var(--tc-brown);
    color: #fff;
}

.pagination .is-gap { border-color: transparent; background: transparent; color: var(--tc-muted); }

/* ------------------------------------------------------------- company */

.tc-record {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
    margin-top: 22px;
}

.tc-record-head {
    padding: 0 0 18px;
    border-bottom: 2px solid var(--tc-brown);
}

.tc-record-head h1 {
    margin: 2px 0 6px;
    font-size: clamp(30px, 3.6vw, 42px);
    line-height: 1.08;
    color: var(--tc-brown-deep);
}

.tc-record-loc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: var(--tc-muted);
}

.tc-record-section { margin: 26px 0; }

.tc-record-section > h2 {
    margin: 0 0 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--tc-rule);
    font-size: 23px;
    color: var(--tc-brown-deep);
}

.tc-record-summary {
    margin: 0 0 14px;
    padding: 12px 15px;
    border-left: 3px solid var(--tc-ochre);
    background: #fff8e8;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--tc-muted);
}

.tc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tc-chips li a,
.tc-chips li span {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--tc-rule);
    background: #fff;
    font-size: 12px;
    color: var(--tc-brown);
    text-decoration: none;
}

.tc-chips li a:hover { background: var(--tc-cream); border-color: var(--tc-brown); }

.tc-record-offers {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--tc-rule);
}

.tc-record-offer {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px dotted var(--tc-rule);
}

.tc-record-offer-id {
    font-family: var(--tc-mono);
    font-size: 10px;
    color: var(--tc-muted);
}

.tc-record-offer h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
}

.tc-record-offer h3 a { color: var(--tc-ink); text-decoration: none; }
.tc-record-offer h3 a:hover { color: var(--tc-brown); }
.tc-record-offer time { font-family: var(--tc-mono); font-size: 10px; color: var(--tc-muted); white-space: nowrap; }

.tc-cover {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--tc-rule);
    background:
        linear-gradient(135deg, #fff3d6 0 46%, #f7e3c6 46% 100%);
}

.tc-monogram {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 1px solid var(--tc-brown);
    background: var(--tc-paper);
    font-family: var(--tc-serif);
    font-size: 24px;
    color: var(--tc-brown);
}

.tc-cover p { margin: 0; font-size: 12.5px; color: var(--tc-muted); }
.tc-cover b { display: block; font-family: var(--tc-serif); font-size: 17px; color: var(--tc-brown-deep); }

/* --------------------------------------------------------------- offer */

.tc-offer-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: start;
    margin-top: 22px;
}

.tc-offer-head {
    padding: 0 0 18px;
    border-bottom: 2px solid var(--tc-brown);
}

.tc-offer-head h1 {
    margin: 8px 0 8px;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.14;
    color: var(--tc-brown-deep);
}

.tc-offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    margin: 0;
    font-size: 12.5px;
    color: var(--tc-muted);
}

.tc-offer-body {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--tc-ink-soft);
}

.tc-offer-body p { margin: 0 0 12px; }

.tc-meta-list {
    margin: 0;
    display: grid;
    gap: 8px;
}

.tc-meta-list div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dotted var(--tc-rule);
    font-size: 13px;
}

.tc-meta-list dt { color: var(--tc-muted); }
.tc-meta-list dd { margin: 0; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ prose */

.tc-prose {
    max-width: 78ch;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--tc-ink-soft);
}

.tc-prose h2 {
    margin: 28px 0 10px;
    font-size: 24px;
    color: var(--tc-brown-deep);
}

.tc-prose p { margin: 0 0 12px; }
.tc-prose ul { margin: 0 0 12px; padding-left: 20px; }
.tc-prose li { margin-bottom: 5px; }

.tc-prose-2col {
    columns: 2;
    column-gap: 36px;
    max-width: none;
}

.tc-prose-2col p { break-inside: avoid; }

/* ----------------------------------------------------------------- footer */

.tc-footer {
    margin-top: 56px;
    border-top: 4px solid var(--tc-brown);
    background: #3f3513;
    color: #f6ead6;
}

.tc-footer a { color: #fff; text-decoration: none; }
.tc-footer a:hover { color: var(--tc-ochre); }

.tc-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding: 34px 0 26px;
}

.tc-footer .tc-wordmark { font-size: 26px; color: #fff; }
.tc-footer .tc-wordmark em { color: var(--tc-ochre); }
.tc-footer .tc-wordmark-sub { color: #d8c4a4; }

.tc-footer-about p {
    margin: 12px 0 0;
    max-width: 42ch;
    font-size: 12.5px;
    line-height: 1.6;
    color: #e2d3bc;
}

.tc-footer h2 {
    margin: 0 0 10px;
    font-family: var(--tc-mono);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--tc-ochre);
}

.tc-footer ul { list-style: none; margin: 0; padding: 0; }
.tc-footer li { margin-bottom: 6px; font-size: 12.5px; }

.tc-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: 11.5px;
    color: #d8c4a4;
}

.tc-footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------- misc */

.muted { color: var(--tc-muted); }
.tc-note-line {
    margin: 18px 0 0;
    padding: 10px 14px;
    border-left: 3px solid var(--tc-ochre);
    background: #fff8e8;
    font-size: 12.5px;
    color: var(--tc-muted);
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 14px 0 0; padding: 0; font-size: 11px; }
.breadcrumbs li { color: var(--tc-muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 6px; color: var(--tc-rule); }
.breadcrumbs a { color: var(--tc-brown); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.btn-primary { background: var(--tc-brown); border-color: var(--tc-brown); }
.btn-primary:hover { background: var(--tc-brown-deep); border-color: var(--tc-brown-deep); }
.btn-ghost { border-color: var(--tc-rule); color: var(--tc-brown); background: #fff; }
.btn-ghost:hover { border-color: var(--tc-brown); background: var(--tc-cream); }

/* --------------------------------------------------------------- responsive */

@media (max-width: 1040px) {
    .tc-hero { grid-template-columns: 1fr; }
    .tc-hero-copy { border-right: 0; border-bottom: 1px solid var(--tc-rule); }
    .tc-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tc-company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tc-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tc-layout, .tc-record, .tc-offer-detail { grid-template-columns: minmax(0, 1fr); }
    .tc-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
    .tc-masthead-inner { grid-template-columns: 1fr auto; gap: 14px; padding: 16px 0; }
    .tc-site-search { grid-column: 1 / -1; order: 3; max-width: none; }
    .tc-account { justify-self: end; }
    .tc-other-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tc-footer-grid { grid-template-columns: 1fr 1fr; }
    .tc-prose-2col { columns: 1; }
}

@media (max-width: 620px) {
    .tc-strip-label { display: none; }
    .tc-nav a { padding: 10px 12px; font-size: 10px; }
    .tc-hero-copy { padding: 26px 20px 24px; }
    .tc-hero h1 { max-width: none; }
    .tc-shelf-grid, .tc-company-grid, .tc-offer-grid, .tc-aside, .tc-other-list { grid-template-columns: minmax(0, 1fr); }
    .tc-shelf-card { min-height: 0; }
    .tc-hero-search select { display: none; }
    .tc-record-offer { grid-template-columns: 1fr; gap: 3px; }
    .tc-record-offer-id { display: none; }
    .tc-account .link-login { display: none; }
    .tc-facts div, .tc-meta-list div { grid-template-columns: 84px minmax(0, 1fr); }
    .tc-footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------- catalogue extras */

.tc-more-shelves { margin-top: 16px; }

.tc-aside-cta .btn + .btn { margin-top: 8px; }

.tc-record-offer span time {
    margin-left: 8px;
    font-family: var(--tc-mono);
    font-size: 10px;
    color: var(--tc-muted);
    white-space: nowrap;
}

.tc-record .tc-section-head { margin-bottom: 10px; }

.tc-record .tc-section-head h2 { font-size: 23px; }

/* Pagination, aligned with the shelf palette. */
.pagination { border-top: 1px solid var(--tc-rule); }
.pagination-summary { font-family: var(--tc-mono); font-size: 10.5px; color: var(--tc-muted); }
.pagination-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; }
.pagination-list a,
.pagination-list .is-current {
    display: inline-block;
    min-width: 32px;
    padding: 6px 9px;
    border: 1px solid var(--tc-rule);
    background: #fff;
    text-align: center;
    font-size: 12.5px;
    text-decoration: none;
    color: var(--tc-brown);
}
.pagination-list a:hover { border-color: var(--tc-brown); background: var(--tc-cream); }
.pagination-list .is-current { background: var(--tc-brown); border-color: var(--tc-brown); color: #fff; }
.pagination-list .pagination-gap { border: 0; background: none; color: var(--tc-muted); padding: 6px 2px; }

/* Long part numbers and comma-separated engine codes must wrap, not widen
   the page. Applies to search results and record prose. */
.search-result a,
.search-results a,
.tc-prose,
.tc-offer-body,
.tc-aside-card,
.tc-aside-card p,
.tc-record h1,
.tc-offer-head h1,
.tc-record-summary,
.tc-card-excerpt,
.tc-company-desc {
    overflow-wrap: anywhere;
}

.offer-row-title,
.offer-row-title a,
.offer-row-body {
    overflow-wrap: anywhere;
    min-width: 0;
}
