/*
Theme Name: The Book Crowd 0.5
Theme URI: https://example.com/
Author: The Book Crowd
Description: Editorial WordPress theme for The Book Crowd.
Version: 0.7.6
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: the-book-crowd-v0-5
*/

:root{
  --tbc-paper:#f7f5ef;
  --tbc-paper-2:#fbfaf6;
  --tbc-ink:#1b1b19;
  --tbc-muted:#5f5d57;
  --tbc-rule:#c9c5ba;
  --tbc-blue:#373dba;
  --tbc-blue-soft:#e8e7fa;
  --tbc-rust:#a8402f;
  --tbc-rust-soft:#f2e2de;
  /* Design system tokens (W-018, docs/design-system/components/bc.css). */
  --bc-paper:#f7f5ef; --bc-card:#fffefa; --bc-ink:#252521; --bc-muted:#5f5d57; --bc-hair:#c8c5bb;
  --bc-blue:#373dba; --bc-deep:#1c1f6b; --bc-pale:#e8e7fa; --bc-rust:#a8402f; --bc-rust-lt:#d0654f;
  --bc-r:3px; --bc-shadow:0 6px 24px rgba(37,37,33,.14);
  --bc-ease:cubic-bezier(.2,.7,.2,1); --bc-ease-in:cubic-bezier(.4,0,1,1); --bc-fast:150ms; --bc-base:200ms; --bc-slow:250ms; --bc-sign:480ms;
}
*{box-sizing:border-box}
html{background:var(--tbc-paper);color:var(--tbc-ink)}
body{
  margin:0;
  background:var(--tbc-paper);
  color:var(--tbc-ink);
  font-family:"Inter",Arial,Helvetica,sans-serif;
  font-size:14px;
  line-height:1.35;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:9999;
  opacity:.018;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode:multiply;
}
button,input{font:inherit}
a{color:inherit}
.wp-site-blocks{padding:0!important}
.tbc-shell{width:min(1180px,calc(100% - 44px));margin:0 auto}

/* Header */
.tbc-header{
  min-height:84px;
  padding:18px 0 15px;
  border-bottom:1px solid var(--tbc-ink);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
}
.tbc-logo{
  display:block;
  width:92px;
  flex:0 0 92px;
  font-family:"Newsreader",Georgia,"Times New Roman",serif;
  font-size:27px;
  font-weight:500;
  line-height:.78;
  letter-spacing:-.04em;
  color:var(--tbc-blue);
  text-decoration:none;
}
.tbc-logo span{display:block}
/* Logo mark and header colours: see "Header, design system" at the end of this file. */
.tbc-nav{margin:0!important}
.tbc-nav .wp-block-navigation__container{gap:24px!important}
.tbc-nav .wp-block-navigation-item__content{
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:.11em;
  padding-top:2px;
  text-decoration:none;
}
.tbc-nav .wp-block-navigation-item__content:hover{color:var(--tbc-blue)}

/* Hero */
.tbc-hero{padding:16px 0 8px}
.tbc-hero h1{
  margin:0;
  font-family:"Newsreader",Georgia,"Times New Roman",serif;
  font-size:clamp(25px,2.7vw,36px);
  font-weight:400;
  letter-spacing:-.028em;
  line-height:1;
}
.tbc-intro{max-width:760px;margin:0 0 16px;color:var(--tbc-muted);font-size:14px;line-height:1.45}

/* Filters */
.tbc-filters{
  border-top:1px solid var(--tbc-ink);
  border-bottom:1px solid var(--tbc-ink);
  padding:4px 0;
}
.tbc-filter-row{
  display:grid;
  grid-template-columns:110px 1fr auto;
  gap:18px;
  align-items:start;
  padding:5px 0;
}
.tbc-filter-row + .tbc-filter-row{border-top:1px solid #ddd9cf}
.tbc-filter-label{
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:.12em;
  color:var(--tbc-muted);
  padding-top:6px;
}
.tbc-chips{display:flex;flex-wrap:wrap;gap:6px}
.tbc-chip{
  appearance:none;
  background:transparent;
  border:1px solid #86837c;
  color:var(--tbc-ink);
  padding:6px 9px 5px;
  cursor:pointer;
  text-transform:uppercase;
  font-size:9px;
  letter-spacing:.08em;
}
.tbc-chip:hover{border-color:var(--tbc-blue);color:var(--tbc-blue)}
.tbc-chip.is-active{background:var(--tbc-blue);border-color:var(--tbc-blue);color:#fff}
.tbc-filter-actions{display:flex;gap:14px;align-items:center;padding-top:5px}
.tbc-count,.tbc-clear{
  text-transform:uppercase;
  font-size:9px;
  letter-spacing:.1em;
  color:var(--tbc-muted);
}
.tbc-clear{
  appearance:none;border:0;background:transparent;padding:0;cursor:pointer;
  text-decoration:underline;text-underline-offset:3px;
}
.tbc-clear:hover{color:var(--tbc-blue)}
.tbc-clear:disabled{opacity:.25;text-decoration:none;cursor:default}
.tbc-clear:disabled{display:none}

/* Month */
.tbc-month{
  margin-top:18px;
  padding:9px 12px 8px;
  background:var(--tbc-blue-soft);
  color:var(--tbc-blue);
  text-transform:uppercase;
  font-size:9px;
  letter-spacing:.13em;
  font-weight:600;
}

/* Events */
.tbc-event{
  border-top:1px solid var(--tbc-rule);
}
.tbc-event:last-child{border-bottom:1px solid var(--tbc-rule)}
.tbc-event-summary{
  width:100%;
  display:grid;
  grid-template-columns:76px minmax(0,1.55fr) minmax(150px,.72fr) minmax(160px,.70fr) 24px;
  appearance:none;
  margin:0;
  border-radius:0;
  font:inherit;
  gap:16px;
  align-items:center;
  padding:11px 0;
  border:0;
  background:transparent;
  color:var(--tbc-ink);
  text-align:left;
  cursor:pointer;
}
/* Keep the five cells in their own tracks, including with inherited theme styles. */
.tbc-event-summary > *{min-width:0;margin:0;grid-row:1}
.tbc-event-summary > .tbc-date{grid-column:1}
.tbc-event-summary > .tbc-event-heading{grid-column:2;display:block;overflow-wrap:anywhere}
.tbc-event-summary > .tbc-meta{grid-column:3}
.tbc-event-summary > .tbc-place{grid-column:4;overflow-wrap:anywhere}
.tbc-event-summary > .tbc-chevron{grid-column:5}
.tbc-event-summary .tbc-title{display:block}
.tbc-event-summary:focus-visible{outline:2px solid var(--tbc-blue);outline-offset:2px}
.tbc-event-summary:hover{background:var(--tbc-blue-soft)}
.tbc-event-summary:hover .tbc-title,
.tbc-event-summary:hover .tbc-chevron{color:var(--tbc-blue)}
.tbc-date{
  padding-left:10px;
  border-left:2px solid var(--tbc-blue);
  font-family:"Newsreader",Georgia,"Times New Roman",serif;
  font-size:20px;
  line-height:1;
  letter-spacing:-.02em;
}
.tbc-date small{
  display:block;
  font-family:"Inter",Arial,sans-serif;
  font-size:8px;
  letter-spacing:.12em;
  text-transform:uppercase;
  margin-bottom:3px;
  color:var(--tbc-muted);
}
.tbc-title{
  font-family:"Newsreader",Georgia,"Times New Roman",serif;
  font-size:21px;
  line-height:1.02;
  letter-spacing:-.02em;
}
.tbc-byline{
  margin-top:4px;
  font-size:10px;
  color:#47453f;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.tbc-meta{display:flex;flex-wrap:wrap;gap:4px;align-content:center}
.tbc-tag{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:1px solid #928f87;
  padding:3px 5px 2px;
  font-size:8px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.06em;
  white-space:nowrap;
}
.tbc-tag.is-language{color:var(--tbc-blue);border-color:var(--tbc-blue)}
.tbc-tag.is-free{color:var(--tbc-rust);border-color:var(--tbc-rust)}
.tbc-editor-pick{display:inline-flex;align-items:center;background:var(--tbc-rust);color:#fff;font-family:Inter,Arial,sans-serif;font-size:8px;font-weight:600;text-transform:uppercase;letter-spacing:.09em;padding:4px 6px 3px;margin:0 0 7px}
.tbc-type-dot{
  width:5px;height:5px;border-radius:50%;display:inline-block;flex:0 0 5px;
  background:var(--tbc-muted);
}
.tbc-type-author-talk{background:#3448c5}
.tbc-type-book-launch{background:#a8402f}
.tbc-type-reading{background:#6f7651}
.tbc-type-poetry{background:#9b6d9d}
.tbc-type-publisher-event{background:#c08a2e}
.tbc-type-signing{background:#4d7d7a}
.tbc-type-literary-social{background:#9a7359}
.tbc-type-other{background:#77756f}
.tbc-place{font-size:10px}
.tbc-place strong{display:block;font-weight:500}
.tbc-place span{display:block;color:var(--tbc-muted);margin-top:2px}
.tbc-chevron{
  font-family:"Inter",Arial,sans-serif;
  font-size:16px;
  color:var(--tbc-muted);
  text-align:right;
  transition:transform .16s ease;
}
.tbc-event.is-open .tbc-chevron{transform:rotate(180deg);color:var(--tbc-blue)}

/* Expanded detail */
.tbc-event-details{
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  gap:16px;
  overflow:hidden;
  padding:0;
}
.tbc-event-details[hidden]{display:none}
.tbc-event.is-open .tbc-event-details{
  padding:2px 0 18px;
}
.tbc-detail-body{
  grid-column:2;
  padding:2px 0 0;
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr);
  gap:28px;
}
.tbc-description{
  font-family:"Newsreader",Georgia,"Times New Roman",serif;
  font-size:17px;
  line-height:1.38;
  max-width:720px;
}
.tbc-detail-meta{font-size:10px;line-height:1.55;color:#3f3d38}
.tbc-detail-meta div + div{margin-top:6px}
.tbc-detail-meta strong{
  display:block;
  text-transform:uppercase;
  font-size:8px;
  letter-spacing:.1em;
  color:var(--tbc-muted);
  font-weight:500;
}
.tbc-event-link{
  display:inline-block;
  margin-top:14px;
  padding:8px 10px 7px;
  border:1px solid var(--tbc-blue);
  color:var(--tbc-blue);
  text-decoration:none;
  text-transform:uppercase;
  font-size:9px;
  letter-spacing:.09em;
}
.tbc-event-link:hover{background:var(--tbc-blue);color:#fff}

.tbc-hidden{display:none!important}
.tbc-empty{
  padding:36px 0;
  border-bottom:1px solid var(--tbc-rule);
  font-family:"Newsreader",Georgia,"Times New Roman",serif;
  font-size:20px;
}

/* Newsletter */
.tbc-newsletter{
  margin:54px 0 46px;
  padding:18px 18px 20px;
  border-top:1px solid var(--tbc-ink);
  border-bottom:1px solid var(--tbc-ink);
  background:rgba(168,64,47,.035);
  display:grid;
  grid-template-columns:1fr minmax(320px,.8fr);
  gap:48px;
  align-items:end;
  position:relative;
}
.tbc-newsletter::before{
  content:"↳";
  position:absolute;
  left:-18px;
  top:14px;
  color:var(--tbc-rust);
  font-size:18px;
}
.tbc-newsletter::before{display:none}
#newsletter{scroll-margin-top:20px}
.tbc-newsletter-copy{
  margin:0;
  font-family:"Newsreader",Georgia,"Times New Roman",serif;
  font-size:20px;
  line-height:1.1;
  letter-spacing:-.015em;
}
.tbc-newsletter .wp-block-shortcode{margin:0}
.tbc-signup{display:flex;border-bottom:1px solid var(--tbc-ink)}
.tbc-signup input{
  flex:1;min-width:0;border:0;background:transparent;
  padding:10px 2px;outline:none;color:var(--tbc-ink)
}
.tbc-signup button{
  border:0;background:transparent;color:var(--tbc-rust);
  padding:10px 0 10px 14px;
  text-transform:uppercase;font-size:9px;letter-spacing:.1em;cursor:pointer
}
.tbc-signup button:hover{text-decoration:underline;text-underline-offset:3px}
.tbc-signup-wrap{min-width:0}
.tbc-signup-note{margin:8px 0 0;color:var(--tbc-muted);font-size:10px;line-height:1.5}
.tbc-signup-note a{color:var(--tbc-blue);text-underline-offset:2px}

/* About page */
.tbc-about{padding:33px 0 70px}
.tbc-about h1{margin:0 0 17px;font-family:Newsreader,Georgia,serif;font-size:clamp(28px,2.6vw,32px);font-weight:400;line-height:1;letter-spacing:-.03em}
.tbc-about-grid{display:grid;grid-template-columns:minmax(230px,.62fr) minmax(0,1fr);gap:clamp(30px,5vw,84px);align-items:start;max-width:1040px;padding-top:21px;border-top:1px solid var(--tbc-ink)}
.tbc-about-grid>*{margin:0}
.tbc-photo-placeholder{aspect-ratio:4/5;background:#eae6dd;border:1px solid var(--tbc-rule);display:flex;align-items:center;justify-content:center;text-align:center;color:var(--tbc-muted);font-size:11px;text-transform:uppercase;letter-spacing:.12em}
.tbc-photo-placeholder p{margin:0}
.tbc-photo-placeholder figure,.tbc-photo-placeholder img{width:100%;height:100%;margin:0}
.tbc-photo-placeholder img{object-fit:cover;display:block}
.tbc-about-copy p{font-family:Newsreader,Georgia,serif;font-size:clamp(20px,2.1vw,26px);line-height:1.24;margin:0 0 18px;max-width:620px}
.tbc-about-copy p + p{font-family:Inter,Arial,sans-serif;font-size:14px;line-height:1.55;max-width:560px}
.tbc-about-social{display:inline-block;margin-top:10px;color:var(--tbc-blue);border-bottom:1px solid var(--tbc-blue);font-size:10px;text-transform:uppercase;letter-spacing:.09em;padding-bottom:4px}

/* Standard pages */
.tbc-page{padding:42px 0 90px;max-width:760px}
.tbc-page h1,.tbc-page h2,.tbc-page h3{
  font-family:"Newsreader",Georgia,"Times New Roman",serif;
  font-weight:400;
}
.tbc-page h1{font-size:clamp(28px,2.6vw,32px);letter-spacing:-.02em}
.tbc-page p{font-size:16px;line-height:1.5}

/* Minimal bottom spacing; footer text intentionally removed */
.tbc-footer-space{height:26px}

@media(max-width:820px){
  .tbc-shell{width:calc(100% - 22px)}
  .tbc-header{min-height:76px}
  .tbc-logo{font-size:25px;width:auto}
  .tbc-nav .wp-block-navigation__container{gap:12px!important}
  .tbc-nav .wp-block-navigation-item__content{font-size:8px}
  .tbc-hero{padding:15px 0 7px}
  .tbc-filter-row{grid-template-columns:84px 1fr}
  .tbc-filter-actions{grid-column:2}
  .tbc-event-summary{grid-template-columns:62px 1fr 20px;gap:9px;padding:10px 0}
  .tbc-event-summary > .tbc-meta{grid-column:2;grid-row:2}
  .tbc-event-summary > .tbc-place{grid-column:2;grid-row:3}
  .tbc-event-summary > .tbc-chevron{grid-column:3;grid-row:1/4}
  .tbc-event-details{grid-template-columns:62px 1fr}
  .tbc-detail-body{grid-template-columns:1fr}
  .tbc-newsletter{grid-template-columns:1fr;gap:18px;padding-left:14px;padding-right:14px}
  .tbc-newsletter::before{display:none}
  .tbc-about-grid{grid-template-columns:1fr;gap:26px}
  .tbc-photo-placeholder{max-width:320px}
  .tbc-about{padding:25px 0 48px}
}

/* Contact: reuse the theme's typography, rule and blue. */
.tbc-contact{border-top:1px solid var(--tbc-rule);margin-top:28px;padding:20px 0 8px;scroll-margin-top:24px}
.tbc-contact h2{font-family:Newsreader,Georgia,serif;font-size:26px;font-weight:400;line-height:1.1;margin:0 0 16px}
.tbc-contact-links{display:flex;flex-wrap:wrap;gap:16px 30px}
.tbc-contact-links a{display:inline-flex;align-items:center;gap:9px;color:var(--tbc-blue);font-size:12px;text-underline-offset:4px}
.tbc-contact-links svg{flex:0 0 20px}
.tbc-contact-links a:focus-visible{outline:2px solid var(--tbc-blue);outline-offset:4px}

/* About: a single rule below the header, with one consistent copy style. */
.tbc-about > .wp-block-post-title{display:none}
.tbc-about .tbc-about-grid{border-top:0;padding-top:0}
.tbc-about .tbc-about-copy p,.tbc-about .tbc-about-copy p + p{font-family:Inter,Arial,sans-serif;font-size:14px;font-weight:400;line-height:1.6;max-width:560px;margin:0 0 18px}
.tbc-about-copy a{text-decoration:underline;text-underline-offset:3px;color:var(--tbc-blue)}
.tbc-nav a:hover,.tbc-nav a:focus-visible{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.tbc-footer-about{font:500 11px/1.5 Inter,Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--tbc-blue);text-underline-offset:4px}
.tbc-footer-about:hover,.tbc-footer-about:focus-visible{text-decoration:underline}

/* Compact homepage introduction. */
.tbc-hero h1{font-size:clamp(22px,2.025vw,27px)}
.tbc-intro{max-width:none}
.tbc-intro a{color:var(--tbc-blue);text-decoration:underline;text-underline-offset:3px}


/* ===== Header, design system (W-018, founder 14 Nov 2026) =====
   Deep blue band, paper text, menu centred on the logo. The light rust ribbon hangs from the top edge
   of the page through the band and out below it, so no paper shows inside its notch. */
header.wp-block-template-part{position:relative;z-index:20;background:var(--bc-deep);color:var(--bc-paper)}
header.wp-block-template-part .tbc-header{position:relative;align-items:center;border-bottom:0;padding:18px 0}
header.wp-block-template-part .tbc-logo{position:static;width:auto;flex:0 0 auto;padding-left:.74em;color:var(--bc-paper)}
header.wp-block-template-part .tbc-logo span{width:3.4em}
header.wp-block-template-part .tbc-logo::before{content:"";position:absolute;left:0;top:0;width:.4em;height:calc(100% + 18px);background:var(--bc-rust-lt);
  clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - .24em),0 100%);transition:height var(--bc-slow) var(--bc-ease)}
header.wp-block-template-part .tbc-logo:hover::before{height:calc(100% + 24px)}
.tbc-ribbon-drop header.wp-block-template-part .tbc-logo::before{animation:tbc-ribbon-drop var(--bc-sign) var(--bc-ease)}
@keyframes tbc-ribbon-drop{from{height:0}}
header.wp-block-template-part .tbc-logo:focus-visible{outline:2px solid var(--bc-paper);outline-offset:4px}
/* menu on deep blue */
header.wp-block-template-part .tbc-nav .wp-block-navigation-item__content,
header.wp-block-template-part .tbc-nav .wp-block-navigation__responsive-container-open,
header.wp-block-template-part .tbc-nav .wp-block-navigation__responsive-container-close{color:var(--bc-paper)!important}
header.wp-block-template-part .tbc-nav .wp-block-navigation-item__content{padding-top:0}
header.wp-block-template-part .tbc-nav .wp-block-navigation-item__content:hover{color:#fff!important}
header.wp-block-template-part .tbc-nav .wp-block-navigation-item__content[aria-current="page"]{color:#fff!important;text-decoration-color:var(--bc-paper)!important}
header.wp-block-template-part .tbc-nav a:focus-visible{outline:2px solid var(--bc-paper);outline-offset:3px}
header.wp-block-template-part .tbc-my-events-nav .wp-block-navigation-item__content[aria-current="page"]{border-bottom-color:var(--bc-paper)!important}
header.wp-block-template-part .tbc-saved-count{background:var(--bc-paper);color:var(--bc-deep)}
header.wp-block-template-part .tbc-instagram-nav .wp-block-navigation-item__content{color:var(--bc-paper)!important}
/* phone menu: the open panel is deep blue too */
header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open{background:var(--bc-deep)!important;color:var(--bc-paper)!important}
@media(prefers-reduced-motion:reduce){header.wp-block-template-part .tbc-logo::before{transition:none;animation:none!important}}

/* Event list: the first month bar sits right under the filters (founder, 14 Nov). */
.tbc-filters ~ .tbc-month{margin-top:0}
.tbc-filters ~ .tbc-month ~ .tbc-month{margin-top:18px}
/* Room for the ribbon tip below the header. */
.tbc-hero{padding-top:30px}

/* Text pages (privacy, impressum, editorial approach): reading rhythm. Low specificity, so plugin page styles still win. */
:where(.tbc-page) .wp-block-post-title{margin:0 0 6px}
:where(.tbc-page) .wp-block-post-content{max-width:68ch;color:var(--bc-ink,#252521);font:16px/1.65 Inter,Arial,sans-serif}
.tbc-page .wp-block-post-content > *{margin-block:0 14px}
:where(.tbc-page .wp-block-post-content) > p:first-child > em:only-child{display:block;font-style:normal;font-size:13px;color:var(--bc-muted,#5f5d57);margin-bottom:22px}
.tbc-page .wp-block-post-content > h2{font:400 24px/1.25 Newsreader,Georgia,serif;letter-spacing:-.01em;margin:36px 0 12px;padding-top:20px;border-top:1px solid var(--bc-hair,#c8c5bb)}
.tbc-page .wp-block-post-content > h3{font:500 17px/1.35 Inter,Arial,sans-serif;margin:28px 0 8px}
:where(.tbc-page .wp-block-post-content) :is(ul,ol){padding-left:1.2em}
:where(.tbc-page .wp-block-post-content) li{margin:0 0 8px;padding-left:.2em}
:where(.tbc-page .wp-block-post-content) li::marker{color:var(--bc-blue,#373dba)}
:where(.tbc-page .wp-block-post-content) a{color:var(--bc-blue,#373dba);text-decoration-thickness:1px;text-underline-offset:3px}
:where(.tbc-page .wp-block-post-content) strong{font-weight:600}
@media(max-width:700px){:where(.tbc-page .wp-block-post-content){font-size:15px}.tbc-page .wp-block-post-content > h2{font-size:21px;margin-top:28px;padding-top:16px}}
/* 404 page (design system step 5). */
.tbc-404-in{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:center;max-width:980px;margin:0 auto;padding:56px 0 24px}
.tbc-404-art{display:block;width:100%;height:auto;max-width:420px;justify-self:center;border-radius:var(--bc-r)}
.tbc-404 .tbc-404-copy .tbc-404-kicker{margin:0 0 10px;font:500 12px/1.4 Inter,Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:var(--bc-blue)}
.tbc-404 h1{margin:0 0 14px;font:400 clamp(30px,3.6vw,44px)/1.1 Newsreader,Georgia,serif;letter-spacing:-.02em;color:var(--bc-ink)}
.tbc-404-copy>p{margin:0 0 22px;font:16px/1.6 Inter,Arial,sans-serif;color:var(--bc-muted)}
.tbc-404-actions{display:flex;flex-wrap:wrap;gap:10px}
.tbc-404-actions a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid var(--bc-blue);border-radius:var(--bc-r);color:var(--bc-blue);font:500 14px/1 Inter,Arial,sans-serif;text-decoration:none;transition:background-color var(--bc-fast) var(--bc-ease)}
.tbc-404-actions a:hover{background:var(--bc-pale)}
.tbc-404-actions a.is-primary{background:var(--bc-blue);color:var(--bc-paper)}
.tbc-404-actions a.is-primary:hover{background:var(--bc-deep);border-color:var(--bc-deep)}
.tbc-404-actions a:focus-visible{outline:2px solid var(--bc-blue);outline-offset:3px}
@media(max-width:760px){.tbc-404-in{grid-template-columns:1fr;gap:20px;padding:28px 0 8px}.tbc-404-art{max-width:240px}}
@media(prefers-reduced-motion:reduce){.tbc-404-actions a{transition:none}}

/* Newsletter sign-up form and past issues (design system step 5). */
body .tbc-signup{display:flex;gap:10px;border-bottom:0;max-width:560px}
body .tbc-signup input{flex:1;min-width:0;min-height:44px;padding:0 14px;border:1px solid var(--bc-ink);border-radius:var(--bc-r);background:var(--bc-card);color:var(--bc-ink);font:16px/1.3 Inter,Arial,sans-serif;outline:none}
body .tbc-signup input:focus{border-color:var(--bc-blue);box-shadow:0 0 0 1px var(--bc-blue)}
body .tbc-signup button{min-height:44px;padding:0 20px;border:1px solid var(--bc-blue);border-radius:var(--bc-r);background:var(--bc-blue);color:var(--bc-paper);font:600 14px/1 Inter,Arial,sans-serif;letter-spacing:0;text-transform:none;cursor:pointer;transition:background-color var(--bc-fast) var(--bc-ease)}
body .tbc-signup button:hover{background:var(--bc-deep);border-color:var(--bc-deep);text-decoration:none}
.tbc-signup button:focus-visible{outline:2px solid var(--bc-blue);outline-offset:3px}
.tbc-signup-note{max-width:560px;margin:10px 0 0;font-size:12px;line-height:1.55;color:var(--bc-muted)}
.tbc-nl-archive{max-width:680px;margin:44px 0 0}
.tbc-page .wp-block-post-content .tbc-nl-archive h2,.tbc-nl-archive h2{margin:0 0 4px;padding-top:20px;border-top:1px solid var(--bc-hair);font:400 24px/1.25 Newsreader,Georgia,serif}
.tbc-nl-issues{list-style:none;margin:0;padding:0}
.tbc-nl-issues li{display:flex;flex-direction:column;gap:2px;padding:14px 0;border-bottom:1px solid var(--bc-hair)}
.tbc-nl-issues li:last-child{border-bottom:0}
.tbc-nl-issues time{font:500 12px/1.4 Inter,Arial,sans-serif;letter-spacing:.04em;text-transform:uppercase;color:var(--bc-muted)}
.tbc-page .tbc-nl-issues a{font:400 20px/1.3 Newsreader,Georgia,serif;color:var(--bc-ink);text-decoration:none}
.tbc-page .tbc-nl-issues a:hover{color:var(--bc-blue);text-decoration:underline;text-decoration-thickness:1px}
@media(max-width:600px){.tbc-signup{flex-direction:column}.tbc-page .tbc-nl-issues a{font-size:18px}}
@media(prefers-reduced-motion:reduce){.tbc-signup button{transition:none}}
/* The newsletter page's saved content carries older inline styles; these win over them. */
body .tbc-newsletter-landing form.tbc-signup input{padding:0 14px;font:16px/1.3 Inter,Arial,sans-serif}
body .tbc-newsletter-landing .tbc-signup button{padding:0 20px;color:var(--bc-paper);font:600 14px/1 Inter,Arial,sans-serif;letter-spacing:0}
body .tbc-newsletter-landing .note{max-width:560px}

/* Header follows the page: sticky; see "Compact header" below (16 Nov). */
header.wp-block-template-part{position:sticky;top:0;transition:transform var(--bc-base) var(--bc-ease),box-shadow var(--bc-base) var(--bc-ease)}
.admin-bar header.wp-block-template-part{top:var(--wp-admin--admin-bar--height,32px)}
@media(prefers-reduced-motion:reduce){header.wp-block-template-part{transition:none}}

/* Phone menu: every row the same height and line (the Saved underline and Instagram's own spacing made them uneven). */
@media(max-width:700px){
header.wp-block-template-part .is-menu-open .wp-block-navigation-item{margin:0!important;padding:0!important}
header.wp-block-template-part .is-menu-open .wp-block-navigation-item__content{display:flex!important;align-items:center;min-height:58px;margin:0!important;padding:0!important;border-bottom:0!important;line-height:1.2}
header.wp-block-template-part .is-menu-open .tbc-saved-count{margin-left:10px}
}


/* ---- Compact header ---- */
/* Compact header and filters that stay (founder, 16 Nov 2026). Scrolled down, the header becomes a slim band.
   Desktop: the slim header stays and the filter bar sticks under it.
   Phone: the slim header slides away while reading down and comes back on the way up; once the filters have
   scrolled out of view, a slim bar (Filters + search) stays under the header. Script: functions.php. */
/* Newer iPhone Safari draws the page behind the status bar: the header and the slim bar carry their colour upwards. */
header.wp-block-template-part::after{content:"";position:absolute;left:0;right:0;bottom:100%;height:160px;background:var(--bc-deep)}
header.wp-block-template-part .tbc-header{transition:padding var(--bc-base,200ms) var(--bc-ease,ease)}
header.wp-block-template-part .tbc-logo{transition:font-size var(--bc-base,200ms) var(--bc-ease,ease)}
html.tbc-scrolled header.wp-block-template-part .tbc-header{min-height:0;padding:9px 0}
html.tbc-scrolled header.wp-block-template-part .tbc-logo{font-size:16px}
html.tbc-scrolled header.wp-block-template-part .tbc-logo::before{height:calc(100% + 9px)}
html.tbc-scrolled:not(.tbc-stuck) header.wp-block-template-part{box-shadow:0 4px 16px rgba(28,31,107,.22)}
html.tbc-away header.wp-block-template-part{transform:translateY(calc(-100% - 24px))}

/* Desktop: the filter bar sticks under the slim header.
   section.tbc-filters wins over the Events plugin's later .tbc-dropdown-filters{position:relative}. */
@media(min-width:701px){
  section.tbc-filters.tbc-dropdown-filters{position:sticky;top:var(--tbc-stick,0px);z-index:15;background:var(--bc-paper,#f7f5ef);transition:top var(--bc-base,200ms) var(--bc-ease,ease),padding var(--bc-base,200ms) var(--bc-ease,ease)}
  .tbc-dropdown-filters.is-stuck{padding:7px 0;box-shadow:0 6px 16px -10px rgba(37,37,33,.35)}
  .tbc-dropdown-filters.is-stuck .tbc-dropdown-status{display:none}
}
.tbc-filter-strip{display:none}

/* Phone: the slim bar, and the filters opened over the list. */
@media(max-width:700px){
  .tbc-filter-strip{position:fixed;left:0;right:0;top:var(--tbc-stick,0px);z-index:15;display:flex;align-items:center;gap:8px;padding:8px max(11px,env(safe-area-inset-right,0px)) 8px max(11px,env(safe-area-inset-left,0px));background:var(--bc-paper,#f7f5ef);border-bottom:1px solid var(--bc-ink,#252521);box-shadow:0 6px 16px -10px rgba(37,37,33,.35);opacity:0;visibility:hidden;transform:translateY(-6px);transition:top var(--bc-base,200ms) var(--bc-ease,ease),opacity var(--bc-fast,150ms) var(--bc-ease-in,ease),transform var(--bc-fast,150ms) var(--bc-ease-in,ease),visibility 0s linear var(--bc-fast,150ms)}
  .tbc-filter-strip::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:160px;background:var(--bc-paper,#f7f5ef)}
  html:not(.tbc-away) .tbc-filter-strip::before{display:none}
  .tbc-filter-strip.is-on{opacity:1;visibility:visible;transform:none;transition:top var(--bc-base,200ms) var(--bc-ease,ease),opacity var(--bc-slow,250ms) var(--bc-ease,ease),transform var(--bc-slow,250ms) var(--bc-ease,ease),visibility 0s}
  .tbc-filter-strip .tbc-filters-toggle,.tbc-filter-strip .tbc-strip-search input{box-sizing:border-box;height:44px;margin:0;border:1px solid var(--bc-ink,#252521);border-radius:3px;font:500 16px/1 Inter,Arial,sans-serif}
  .tbc-filter-strip .tbc-filters-toggle{display:inline-flex;flex:none;align-items:center;gap:7px;padding:0 14px;background:var(--bc-card,#fffefa);color:var(--bc-ink,#252521);cursor:pointer}
  .tbc-filter-strip .tbc-filters-toggle[aria-expanded="true"]{background:var(--bc-ink,#252521);color:var(--bc-paper,#f7f5ef)}
  .tbc-filter-strip .tbc-filters-toggle b{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:3px;background:var(--bc-blue,#373dba);color:#fff;font:600 12px/1 Inter,Arial,sans-serif}
  .tbc-filter-strip .tbc-filters-toggle b:empty{display:none}
  .tbc-filter-strip .tbc-filters-toggle:focus-visible,.tbc-filter-strip input:focus-visible{outline:2px solid var(--bc-blue,#373dba);outline-offset:2px}
  .tbc-strip-search{position:relative;flex:1 1 auto;min-width:0;margin:0}
  .tbc-strip-search input{width:100%;padding:0 40px 0 12px;background:var(--bc-card,#fffefa);color:var(--bc-ink,#252521);-webkit-appearance:none;appearance:none}
  .tbc-strip-search input::placeholder{color:var(--bc-muted,#5f5d57)}
  .tbc-strip-search svg{position:absolute;right:13px;top:50%;width:16px;height:16px;transform:translateY(-50%);pointer-events:none}
  section.tbc-filters.tbc-dropdown-filters.is-overlay{position:fixed;top:calc(var(--tbc-stick,0px) + var(--tbc-strip,61px));z-index:16;max-height:calc(100vh - var(--tbc-stick,0px) - var(--tbc-strip,61px) - 16px);overflow:visible;margin:0;padding:10px 0;background:var(--bc-paper,#f7f5ef);border-top:0;box-shadow:0 12px 24px -12px rgba(37,37,33,.45)}
  .tbc-dropdown-filters.is-overlay .tbc-list-switch,.tbc-dropdown-filters.is-overlay .tbc-search-cell,.tbc-dropdown-filters.is-overlay .tbc-dropdown-status{display:none}
}
@media(prefers-reduced-motion:reduce){header.wp-block-template-part .tbc-header,header.wp-block-template-part .tbc-logo,.tbc-dropdown-filters,.tbc-filter-strip{transition:none!important}}
