/* BRAT Production · BRAT 2.0. Black, white and grey only.
   Straight holds. Round acts. Large softens (brat2.js marks any holder larger than a fifth of the window).
   Four type sizes (14, 18, 28 and the display size), two weights (400, 700). Statements bold, figures regular.
   Case: CAPITALS for the page title, the top two levels of any list and for navigation and filter choices;
   sentence case from the next level down and for body text, labels, buttons and notes.
   Motion: fast, then gentle. 120 press, 220 switch, 320 slide, 480 arrive. */
@font-face { font-family: "NHG Display"; font-weight: 400; font-display: swap; src: url("/_hub/fonts/ds-400.woff2") format("woff2"); }
@font-face { font-family: "NHG Display"; font-weight: 700; font-display: swap; src: url("/_hub/fonts/ds-700.woff2") format("woff2"); }
@font-face { font-family: "NHG Text"; font-weight: 400; font-display: swap; src: url("/_hub/fonts/tx-400.woff2") format("woff2"); }
@font-face { font-family: "NHG Text"; font-weight: 700; font-display: swap; src: url("/_hub/fonts/tx-700.woff2") format("woff2"); }

:root {
  --paper: #FFFFFF; --ink: #0A0A0A; --g1: #555555; --g2: #8C8C8C; --panel: #F3F3F3;
  --hair: rgba(10,10,10,.18); --hair-soft: rgba(10,10,10,.09);
  --rule: color-mix(in srgb, var(--ink) 16%, var(--panel));
  --display: "NHG Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "NHG Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --label: 14px; --body: 18px; --title: 28px; --big: clamp(44px, 6.4vw, 96px);
  --gut: 72px; --max: 1440px; --soft: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1); --leave: cubic-bezier(.7, 0, .84, 0); --travel: cubic-bezier(.65, 0, .35, 1);
}
:root[data-theme="dark"] { --paper: #0A0A0A; --ink: #FFFFFF; --g1: #A6A6A6; --g2: #6A6A6A; --panel: #171717; --hair: rgba(255,255,255,.22); --hair-soft: rgba(255,255,255,.11); color-scheme: dark; }
@media (max-width: 1200px) { :root { --gut: 40px; } }
@media (max-width: 640px) { :root { --gut: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: var(--body); line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper); }
.label { font-size: var(--label); color: var(--g1); }
.quiet { font-size: var(--label); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 5px; transition: text-decoration-color 220ms var(--ease); }
.quiet:hover { text-decoration-color: var(--ink); }
.fig { font-variant-numeric: tabular-nums; font-weight: 400; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; min-height: 80px; padding: 0 var(--gut); background: var(--paper); border-bottom: 1px solid var(--hair-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; text-decoration: none; }
.wordmark { display: inline-block; line-height: 0; }
.wordmark svg { display: block; height: 26px; width: auto; }
.wordmark svg path { fill: currentColor; }
.brand .tag { font-size: var(--label); color: var(--g1); white-space: nowrap; }
.top-r { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who { appearance: none; -webkit-appearance: none; min-height: 44px; max-width: 190px; padding: 0 40px 0 20px; border: 0; border-radius: 999px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238C8C8C' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px; font-size: var(--label); font-weight: 700; cursor: pointer; text-overflow: ellipsis; }
.switch { position: relative; flex: none; width: 56px; height: 44px; }
.switch::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 30px; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair-soft); transition: background-color 220ms var(--ease); }
.switch::after { content: ""; position: absolute; left: 4px; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: translate 220ms var(--ease), background-color 220ms var(--ease); }
.switch[aria-checked="true"]::before { background: var(--ink); box-shadow: none; }
.switch[aria-checked="true"]::after { translate: 26px 0; background: var(--paper); }
@media (max-width: 640px) { .top { min-height: 64px; } .wordmark svg { height: 22px; } .brand .tag, .top-r .quiet { display: none; } .who { max-width: 140px; } }

/* page */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 176px; }
.intro { padding: 96px 0 56px; }
.intro h1 { font-size: var(--big); letter-spacing: -0.045em; line-height: 0.96; text-transform: uppercase; text-wrap: balance; animation: page-in 480ms var(--ease) both; }
.intro .meta { margin-top: 20px; color: var(--g1); font-size: var(--label); }
@media (max-width: 760px) { .intro { padding: 40px 0 32px; } }

/* navigation: the chosen value carries a thumb that travels */
.tabs { position: sticky; top: 80px; z-index: 19; margin: 0 calc(var(--gut) * -1) 40px; padding: 14px var(--gut); background: var(--paper); border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .tabs { top: 64px; } }
.pills { position: relative; display: flex; gap: 4px; align-items: center; width: max-content; }
.pills.wrap { flex-wrap: wrap; width: auto; }
.pill { position: relative; z-index: 1; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; transition: color 320ms var(--ease), scale 220ms var(--ease); }
.pill .n { font-weight: 400; margin-left: 6px; opacity: .6; }
.pill[aria-pressed="true"] { color: var(--paper); }
.pills::after { content: ""; position: absolute; top: 0; left: 0; height: 36px; width: var(--tw, 0); translate: var(--tx, 0) var(--ty, 0); background: var(--ink); border-radius: 999px; transition: translate 320ms var(--ease), width 320ms var(--ease); }
.pills:not(.thumbed) .pill[aria-pressed="true"] { background: var(--ink); }
.pill:active, .btn:active, .chk:active { scale: 0.97; transition-duration: 120ms; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 0 0 40px; }

/* sections */
#view { display: flex; flex-direction: column; gap: 64px; }
#view.arrive { animation: page-in 320ms var(--ease) both; }
.head h2 { font-size: var(--title); text-transform: uppercase; }
.head p { margin-top: 12px; color: var(--g1); max-width: 62ch; }
.sec { display: flex; flex-direction: column; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 0 16px; border-bottom: 1px solid var(--hair); }
.sec-head h3 { font-family: var(--text); font-size: var(--body); letter-spacing: 0.01em; line-height: 1.2; text-transform: uppercase; }
.sec-head .m { font-size: var(--label); color: var(--g1); white-space: nowrap; }
.sec > .more { padding-top: 16px; }
.none { padding: 20px 0; color: var(--g1); font-size: var(--label); }

/* round acts */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--panel); font-size: var(--label); font-weight: 700; white-space: nowrap; text-decoration: none; transition: background-color 220ms var(--ease), color 220ms var(--ease), scale 220ms var(--ease); }
.btn:hover, .btn.solid { background: var(--ink); color: var(--paper); }
.btn.sm { min-height: 36px; padding: 0 14px; }
.box .btn:not(.solid), .card .btn:not(.solid) { background: var(--paper); }
.box .btn:not(.solid):hover, .card .btn:not(.solid):hover { background: var(--ink); }
.chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--panel); font-size: var(--label); white-space: nowrap; }
.chip.late { background: var(--ink); color: var(--paper); font-weight: 700; }
.chip.soon { background: none; box-shadow: inset 0 0 0 1px var(--ink); }
.box .chip:not(.late), .card .chip:not(.late) { background: var(--paper); }

/* grey boxes: mini sections and call-outs */
.box { padding: 28px 32px; background: var(--panel); }
.note { padding: 20px 24px; background: var(--panel); font-size: var(--label); }
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 40px; background: var(--ink); color: var(--paper); }
.hero .label { color: color-mix(in srgb, var(--paper) 62%, var(--ink)); }
.hero .big { margin-top: 16px; font-family: var(--display); font-size: var(--big); font-weight: 400; letter-spacing: -0.045em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.hero .big.say { font-weight: 700; text-transform: uppercase; }
.hero .when { margin-top: 20px; }
.hero .when b { font-weight: 700; }
.hero .set { display: flex; flex-direction: column; gap: 8px; font-size: var(--label); }
.hero input { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--paper) 14%, var(--ink)); color: var(--paper); color-scheme: dark; }
:root[data-theme="dark"] .hero input { color-scheme: light; }
@media (max-width: 640px) { .hero { padding: 28px 24px; } .box { padding: 20px; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.stat { padding: 20px 24px; background: var(--panel); }
.stat b { display: block; font-family: var(--display); font-size: 44px; font-weight: 400; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat span { display: block; margin-top: 12px; font-size: var(--label); color: var(--g1); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } .stat { padding: 16px; } .stat b { font-size: 28px; } }

/* progress */
.prog { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr 56px; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hair-soft); font-size: var(--label); }
.prog .m { text-align: right; color: var(--g1); font-variant-numeric: tabular-nums; }
.bar { height: 4px; background: var(--hair-soft); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ink); transition: width 480ms var(--ease); }

/* fields */
label.f { display: flex; flex-direction: column; gap: 4px; font-size: var(--label); color: var(--g1); min-width: 0; }
label.f input, label.f select, label.f textarea, .inp { width: 100%; min-width: 0; min-height: 44px; padding: 0; border: 0; border-bottom: 1px solid var(--hair); border-radius: 0; background: transparent; font-size: var(--body); color: var(--ink); transition: border-color 220ms var(--ease); }
label.f textarea, textarea.inp { padding: 10px 0; resize: vertical; line-height: 1.4; }
label.f input:focus, label.f select:focus, label.f textarea:focus, .inp:focus { outline: 0; border-color: var(--ink); }
.ed { width: 100%; min-width: 0; padding: 2px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: var(--ink); transition: border-color 220ms var(--ease); }
.ed:hover { border-color: var(--hair); } .ed:focus { outline: 0; border-color: var(--ink); }
textarea.ed { resize: none; line-height: 1.4; field-sizing: content; }
.sel { appearance: none; -webkit-appearance: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--paper); font-size: var(--label); font-weight: 700; cursor: pointer; text-align: center; }
.sec > .task .sel, .edit .sel { background: var(--paper); }
.sel.st-ok, .sel.st-coming { background: var(--ink); color: var(--paper); }
.sel.st-no { color: var(--g2); text-decoration: line-through; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.row.sp { justify-content: space-between; }
.by { font-size: var(--label); color: var(--g1); }
.x { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--g1); font-size: var(--label); transition: background-color 220ms var(--ease), color 220ms var(--ease); }
.x:hover, .x[data-armed="1"] { background: var(--ink); color: var(--paper); }
.x[data-armed="1"] { width: auto; padding: 0 14px; border-radius: 999px; font-weight: 700; }

/* tasks: the group is the list's second level, the task and its details are sentence case */
.task { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--hair-soft); }
.chk { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 1px 0 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; cursor: pointer; transition: background-color 220ms var(--ease), scale 220ms var(--ease); }
.chk:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 24px no-repeat; }
:root[data-theme="dark"] .chk:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.4-8' fill='none' stroke='%230A0A0A' stroke-width='2'/%3E%3C/svg%3E"); }
.task details { flex: 1; min-width: 0; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.task summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.task .tt { flex: 1 1 320px; min-width: 0; transition: color 220ms var(--ease); }
.task.done .tt { color: var(--g2); text-decoration: line-through; text-decoration-color: var(--hair); }
.task .meta { display: flex; gap: 6px; flex-wrap: wrap; }
.edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px 24px; margin-top: 16px; padding: 24px; background: var(--panel); }
.edit .full { grid-column: 1 / -1; }
details[open] > .edit, details[open] > textarea, details[open] > .in { animation: open-in 320ms var(--ease) both; }

/* contacts and press: each is a small grey box */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; padding-top: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px 24px; background: var(--panel); }
.card .nm { font-weight: 700; }
.card .sm { font-size: var(--label); }
.card .mu { color: var(--g1); }
.card .ln { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: var(--label); overflow-wrap: anywhere; align-items: center; }
.card .edit { padding: 16px 0 0; background: none; margin-top: 8px; }
.card summary { font-size: var(--label); color: var(--g1); }
.copy { margin-left: 8px; font-size: var(--label); color: var(--g1); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 4px; }

/* run of show */
.ros .it { display: grid; grid-template-columns: 112px 1fr 36px; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--hair-soft); align-items: start; }
.ros .tm input { font-family: var(--display); font-size: var(--title); font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.ros .tm .d { margin-top: 6px; font-size: var(--label); color: var(--g1); }
.ros .bd { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ros .ttl { font-weight: 700; }
.ros .it.key .bd { padding-left: 20px; box-shadow: inset 4px 0 0 var(--ink); }
.ros .sub { display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 8px 12px; align-items: center; font-size: var(--label); color: var(--g1); }
.ros .sub .ed { font-size: var(--label); }
.keyb { font-size: var(--label); color: var(--g1); white-space: nowrap; }
.keyb[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .ros .it { grid-template-columns: 76px 1fr; gap: 12px; } .ros .it > .x { display: none; } .ros .sub { grid-template-columns: auto 1fr; } }

/* documents */
.doc { border-bottom: 1px solid var(--hair-soft); }
.doc > summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; font-weight: 700; }
.doc .in { display: flex; flex-direction: column; gap: 16px; padding: 24px; margin-bottom: 20px; background: var(--panel); }
.doc textarea { width: 100%; min-height: 240px; padding: 0; border: 0; background: transparent; line-height: 1.5; resize: vertical; }
.doc textarea:focus { outline: 0; }

/* tables */
.tw { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { padding: 12px 12px 12px 0; text-align: left; font-size: var(--label); font-weight: 400; color: var(--g1); border-bottom: 1px solid var(--hair); }
td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair-soft); vertical-align: middle; }
td.grp { padding-top: 28px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; border-bottom-color: var(--hair); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .ed.num { width: 110px; }
td:first-child .ed { min-width: 150px; }
@media (max-width: 640px) { td .ed.num { width: 72px; } }
.tot td { font-weight: 700; border-bottom: 0; padding-top: 20px; }
.tot td.num { font-weight: 400; }
.addrow { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; padding-top: 24px; }
.addrow .inp { flex: 1 1 180px; width: auto; }
.log { margin: 0; padding: 0; list-style: none; }
.log li { padding: 12px 0; border-bottom: 1px solid var(--hair-soft); font-size: var(--label); }
.log .mu { color: var(--g1); font-variant-numeric: tabular-nums; }

/* large softens */
[data-soft] { border-radius: var(--soft); }

/* fast, then gentle */
@keyframes open-in { from { opacity: 0; translate: 0 -8px; } }
@keyframes page-in { from { opacity: 0; translate: 24px 0; } }
.odo { display: inline-flex; vertical-align: bottom; }
.odo .c { display: inline-block; height: 1em; line-height: 1em; overflow: hidden; }
.odo .c i { display: flex; flex-direction: column; font-style: normal; animation: odo 480ms var(--travel) both; animation-delay: calc(var(--d, 0) * 70ms); }
.odo .c i span { height: 1em; }
@keyframes odo { to { translate: 0 -50%; } }
.inkpass { position: relative; display: inline-block; }
.inkpass::after { content: ""; position: absolute; inset: -2px -6px; background: var(--ink); transform-origin: left; animation: inkpass 480ms var(--travel) both; }
@keyframes inkpass { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.01% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* the hub home */
.plist { border-top: 1px solid var(--hair); }
.prow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 250px auto; gap: 24px; align-items: center; min-height: 88px; padding: 16px 0; border-bottom: 1px solid var(--hair-soft); text-decoration: none; }
.prow .t { font-family: var(--display); font-size: var(--title); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-transform: uppercase; overflow-wrap: break-word; }
.prow .c { font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
.prow .d { font-size: var(--label); color: var(--g1); font-variant-numeric: tabular-nums; }
.prow .a { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.prow.shut .t, .prow.shut .c { color: var(--g2); }
.prow .go { transition: translate 220ms var(--ease); }
.prow:hover .go { translate: 6px 0; }
@media (max-width: 860px) { .prow { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 24px 0; } .prow .a { justify-content: flex-start; margin-top: 10px; } .prow .go { margin-left: auto; } }
.newp { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 32px; }
.newp .full { grid-column: 1 / -1; }
.made { display: flex; flex-direction: column; gap: 12px; }
.made .u { font-size: var(--title); font-family: var(--display); font-weight: 400; letter-spacing: -0.03em; overflow-wrap: anywhere; }
