/* Lanyard: a switchboard help centre. Putty panels, brass screws, patch-cord colours. */
:root {
  --putty: #E8E3D4;
  --putty-deep: #D9D3C0;
  --cream: #F8F5EA;
  --panel: #2A2E31;
  --panel-2: #353A3E;
  --ink: #1E2124;
  --mute: #4D5358;
  --red: #C8402A;
  --red-text: #A5311E;
  --blue: #2B5DAA;
  --green: #2E8554;
  --green-text: #1F6B42;
  --amber: #D9A02B;
  --brass: #B58A3B;
  --line: #B9B29C;
  --font: "Sofia Sans Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: "B612 Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--putty); color: var(--ink); font: 400 1.125rem/1.55 var(--font); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--panel); }
h1, h2, h3 { font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.4rem); text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.hero :focus-visible, .page-head :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .band :focus-visible { outline-color: var(--amber); }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -80px; background: var(--amber); color: var(--ink); padding: 12px 16px; z-index: 50; font-weight: 700; }
.skip-link:focus { top: 12px; }
.label { font: 700 .8125rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red-text); margin: 0 0 .9rem; }
.label-light { color: var(--amber); }
.lede { font-size: 1.3rem; max-width: 36rem; color: inherit; }
.small { font-size: 1rem; color: var(--mute); }

/* buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--amber); color: var(--ink); font: 700 1.05rem var(--font); text-decoration: none; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.button:hover { background: #E8B545; color: var(--ink); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.button-lg { min-height: 54px; padding: 0 28px; font-size: 1.15rem; }
.button-ghost { background: transparent; color: var(--ink); }
.page-head .button-ghost { color: var(--cream); border-color: var(--cream); box-shadow: 0 3px 0 var(--cream); }
.page-head .button-ghost:hover { background: transparent; color: var(--amber); }
.text-link { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* header */
.site-header { background: var(--panel); color: var(--cream); border-bottom: 5px solid var(--brass); position: relative; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 1.35rem; min-height: 44px; }
.brand:hover { color: var(--amber); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-sub { font: 700 .75rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--amber); margin-left: 4px; }
.nav-disclosure summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 2px solid var(--cream); border-radius: 8px; font-weight: 700; cursor: pointer; }
.nav-disclosure summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--cream); position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.site-nav { display: flex; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); padding: 12px 20px 20px; border-bottom: 5px solid var(--brass); }
.site-nav a { color: var(--cream); text-decoration: none; font-weight: 600; min-height: 48px; display: flex; align-items: center; border-bottom: 1px dotted #5A6166; }
.site-nav a[aria-current="page"]:not(.button) { color: var(--amber); }
.site-nav .nav-cta { margin-top: 10px; color: var(--ink); border: 2px solid var(--cream); justify-content: center; }
.site-nav .nav-cta:hover { color: var(--ink); }
@media (min-width: 880px) {
  .nav-disclosure summary { display: none; }
  .site-nav { position: static; flex-direction: row; align-items: center; gap: 28px; padding: 0; border: 0; background: none; }
  .site-nav a { border: 0; min-height: 44px; }
  .site-nav a:not(.button):hover { color: var(--amber); }
  .site-nav .nav-cta { margin: 0; min-height: 44px; padding: 0 18px; }
}

/* hero and page heads: the dark panel with screws */
.hero, .page-head { background: var(--panel); color: var(--cream); position: relative; overflow: hidden; }
.hero::before, .page-head::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20px 20px, var(--brass) 0 5px, transparent 6px) 0 0 / 100% 100% no-repeat, radial-gradient(circle at calc(100% - 20px) 20px, var(--brass) 0 5px, transparent 6px) 0 0 / 100% 100% no-repeat; opacity: .8; pointer-events: none; }
.hero { padding: 56px 0 64px; }
.page-head { padding: 56px 0 52px; }
.page-head .lede { margin-top: 18px; margin-bottom: 0; }
.hero-grid { display: grid; gap: 36px; position: relative; }
.hero h1 { margin-bottom: 26px; }
.hero-art .photo { border-radius: 14px; border: 3px solid var(--brass); aspect-ratio: 1000 / 720; object-fit: cover; width: 100%; }
.hero-links, .hero-ask { margin: 16px 0 0; font-size: 1rem; }
.hero-links a { display: inline-block; font-family: var(--mono); font-size: .9rem; color: var(--ink); background: var(--cream); padding: 6px 12px; margin: 4px 6px 4px 0; border-radius: 4px; text-decoration: none; min-height: 32px; }
.hero-links a:hover { background: var(--amber); }
.hero-ask a, .page-head a { color: var(--amber); font-weight: 700; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; } .hero { padding: 76px 0 84px; } }

/* search */
.search-box label { display: block; font: 700 .8125rem var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; color: inherit; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="search"], .contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 54px; padding: 12px 16px; font: 400 1.1rem var(--mono); background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 8px; box-shadow: inset 0 3px 0 rgba(0,0,0,.12); }
.search-row input { flex: 1 1 14rem; width: auto; }
.search-box-inline label { color: var(--ink); }
[data-home-search] { display: none; }
.js [data-home-search] { display: block; }
input[type="search"]::placeholder { color: #6B7075; }
.hero input:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* sections */
.section { padding: 56px 0 64px; }
.section h2 { margin-bottom: 28px; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head-row h2 { margin-bottom: 20px; }

/* topic jacks */
.jacks { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.jack { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 82px 20px 22px; background: var(--cream); color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); min-height: 220px; transition: transform .15s; }
.jack:hover { transform: translateY(-3px); color: var(--ink); }
.jack-socket { position: absolute; left: 20px; top: 18px; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle, #15181A 0 34%, var(--cord, var(--red)) 36% 100%); border: 3px solid var(--ink); }
.jack-socket::after { content: ""; position: absolute; left: 50%; top: 100%; width: 6px; height: 16px; margin-left: -3px; background: var(--cord, var(--red)); border-radius: 0 0 4px 4px; }
.jack:nth-child(5n+1) { --cord: var(--red); } .jack:nth-child(5n+2) { --cord: var(--blue); } .jack:nth-child(5n+3) { --cord: var(--green); } .jack:nth-child(5n+4) { --cord: var(--amber); } .jack:nth-child(5n) { --cord: #7B5AA6; }
.jack-name { font: 700 1.45rem/1.1 var(--font); }
.jack-blurb { color: var(--mute); font-size: 1.05rem; }
.jack::after { content: "Open"; margin-top: auto; font: 700 .8rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }

/* article log: call-sheet rows */
.section-log { background: var(--putty-deep); border-block: 3px solid var(--ink); }
.log { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.row { border-bottom: 1px dashed var(--ink); }
.row[hidden] { display: none; }
.row-link { display: grid; gap: 4px 20px; padding: 18px 8px 18px 36px; color: var(--ink); text-decoration: none; position: relative; grid-template-columns: 1fr; min-height: 44px; }
.row-link::before { content: ""; position: absolute; left: 8px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); }
.row:nth-child(4n+2) .row-link::before { background: var(--amber); } .row:nth-child(4n+3) .row-link::before { background: var(--blue); } .row:nth-child(4n) .row-link::before { background: var(--red); }
.row-link:hover { background: var(--cream); }
.row-topic { font: 700 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red-text); }
.row-title { font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.row-sum { color: var(--mute); max-width: 44rem; }
.row-date { font: 400 .85rem var(--mono); color: var(--mute); }
.row-link:hover .row-title { text-decoration: underline; text-decoration-thickness: 2px; }
.empty { padding: 20px 8px; color: var(--mute); margin: 0; }
[data-pl-item]:not(template) ~ [data-pl-empty] { display: none; }
@media (min-width: 800px) {
  .row-link { grid-template-columns: 11rem 1fr 7.5rem; align-items: baseline; }
  .row-topic { grid-column: 1; grid-row: 1 / span 2; }
  .row-title { grid-column: 2; }
  .row-sum { grid-column: 2; grid-row: 2; }
  .row-date { grid-column: 3; grid-row: 1; text-align: right; }
}

/* finder */
.finder { display: grid; gap: 18px; margin-bottom: 28px; }
.js .chips { display: flex; }
.chips { display: none; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 0 18px; font: 700 .85rem var(--mono); text-transform: uppercase; letter-spacing: .04em; background: var(--cream); color: var(--ink); border: 2px solid var(--ink); border-radius: 4px; cursor: pointer; }
.chip:hover { background: var(--putty-deep); }
.chip[aria-pressed="true"] { background: var(--panel); color: var(--cream); box-shadow: inset 0 -4px 0 var(--amber); }
.chip:focus-visible { outline-color: var(--blue); }
.count { font: 400 .9rem var(--mono); color: var(--mute); margin: 0; min-height: 1.4em; }
.js .search-box-inline { display: block; }
.no-match { padding: 32px 8px; font-size: 1.2rem; }
.no-match[hidden] { display: none; }
.finder .search-box-inline input { max-width: 36rem; }
.search-box-inline { display: none; }
.js .search-box-inline { display: block; }
.finder-note { display: none; }

/* band */
.band { background: var(--panel); color: var(--cream); border-top: 5px solid var(--brass); padding: 52px 0; }
.band h2 { margin-bottom: 14px; max-width: 28rem; }
.band .label { color: var(--amber); }
.band a { color: var(--amber); }
.band-grid { display: grid; gap: 24px; align-items: center; }
.band-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.band .button { color: var(--ink); }
@media (min-width: 800px) { .band-grid { grid-template-columns: 1.6fr 1fr; } .band-actions { align-items: flex-end; } }

/* article */
.page-head-article { padding-bottom: 40px; }
.crumbs { font: 400 .85rem var(--mono); margin: 0 0 18px; }
.crumbs a { font-weight: 400; }
.meta { font: 400 .9rem var(--mono); margin: 18px 0 0; color: #CFCAB8; }
.article-grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
.article-body { max-width: 44rem; font-size: 1.2rem; line-height: 1.65; }
.article-body h2 { font-size: 1.8rem; margin: 2.2rem 0 .8rem; }
.article-body h3 { margin: 1.8rem 0 .6rem; }
.article-body h4 { margin: 1.4rem 0 .4rem; font-size: 1.1rem; }
.article-body ol, .article-body ul { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.article-body li { margin-bottom: .5rem; padding-left: .3rem; }
.article-body ol { list-style: none; counter-reset: step; padding-left: 0; }
.article-body ol > li { counter-increment: step; position: relative; padding-left: 3rem; min-height: 2.2rem; }
.article-body ol > li::before { content: counter(step); position: absolute; left: 0; top: .05em; width: 2rem; height: 2rem; border-radius: 50%; background: var(--panel); color: var(--cream); font: 700 .95rem/2rem var(--mono); text-align: center; }
.article-body blockquote { margin: 1.6rem 0; padding: 16px 20px; background: var(--cream); border-left: 6px solid var(--amber); border-radius: 0 8px 8px 0; }
.article-body blockquote p:last-child { margin: 0; }
.article-body code { font: 400 .9em var(--mono); background: var(--cream); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); }
.article-body pre { background: var(--panel); color: var(--cream); padding: 18px 20px; border-radius: 8px; overflow-x: auto; margin: 1.4rem 0; }
.article-body pre code { background: none; border: 0; padding: 0; font-size: .95rem; }
.article-body hr { border: 0; border-top: 2px dashed var(--line); margin: 2rem 0; }
.article-body img { border-radius: 8px; margin: 1.4rem 0; }
.article-body figure { margin: 1.4rem 0; }
.side-card { align-self: start; background: var(--cream); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); padding: 24px; }
@media (min-width: 960px) { .article-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } .side-card { position: sticky; top: 24px; } }

/* what's new */
.status-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 20px; background: var(--cream); border: 2px solid var(--ink); border-radius: 8px; margin-bottom: 36px; }
.lamp { width: 16px; height: 16px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); flex: none; }
.news { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--ink); }
.news li { padding: 24px 0; border-bottom: 1px dashed var(--ink); display: grid; gap: 4px; }
.news time { font: 700 .85rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--red-text); }
.news p { margin: 0; color: var(--mute); }

/* contact */
.contact-grid { display: grid; gap: 40px; }
.contact-main h2 { margin-bottom: 18px; }
.h-gap { margin-top: 40px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 6px 0 6px 34px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); }
.contact-side .photo { border-radius: 12px; border: 3px solid var(--ink); aspect-ratio: 10 / 7; object-fit: cover; width: 100%; margin-bottom: 24px; }
.facts { margin: 0; border-top: 3px solid var(--ink); }
.facts div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px dashed var(--ink); }
.facts dt { font: 700 .78rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red-text); }
.facts dd { margin: 0; }
.contact-form { display: grid; gap: 8px; }
.contact-form label { font: 700 .8125rem var(--mono); text-transform: uppercase; letter-spacing: .06em; margin-top: 10px; }
.contact-form textarea { min-height: 150px; }
.contact-form button { margin-top: 18px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr .8fr; gap: 64px; } }

/* 404 */
.nf-grid { display: grid; gap: 32px; position: relative; align-items: center; }
.nf-grid .photo { border-radius: 14px; border: 3px solid var(--brass); aspect-ratio: 10 / 7; object-fit: cover; }
.nf-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
@media (min-width: 860px) { .nf-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* prose */
.prose p { font-size: 1.2rem; max-width: 40rem; }

/* footer */
.site-footer { background: var(--panel); color: var(--cream); padding: 48px 0 28px; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--amber); }
.foot-grid { display: grid; gap: 28px; }
.brand-foot { margin-bottom: 8px; }
.foot-line { color: #CFCAB8; margin: 0; }
.foot-contact { font-style: normal; line-height: 1.8; }
.foot-contact a { display: inline-block; min-height: 32px; }
.foot-nav { display: flex; flex-direction: column; }
.foot-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.foot-nav a:hover { text-decoration: underline; }
.foot-small { margin: 32px auto 0; font: 400 .85rem var(--mono); color: #CFCAB8; border-top: 1px dotted #5A6166; padding-top: 18px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.2fr 1.2fr .8fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .jack:hover { transform: none; } }

.hero-links a{display:inline-flex;align-items:center;min-height:44px}
footer address a,footer a[href^="tel:"],footer a[href^="mailto:"]{display:inline-flex;align-items:center;min-height:44px}
