/*
Theme Name: True Sourdough
Theme URI: https://truesourdough.com/
Author: Truesourdough.com
Author URI: https://truesourdough.com/
Description: A teaching theme for sourdough bakers, built around the one thing sourdough runs on: time. The homepage opens with a starter jar you can set to your own kitchen temperature and a bake planner that works backwards from when you want to eat. Fonts are bundled, nothing loads from a third party, and the markup keeps the hooks ad networks expect.
Version: 1.3.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: truesourdough
Tags: blog, food-and-drink, custom-menu, custom-logo, featured-images, block-styles, wide-blocks, translation-ready, two-columns, right-sidebar
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Colour — slate and wheat on chalk; crust reserved for the course band. */
  --ts-ink:        #1A2026;
  --ts-slate:      #243746;
  --ts-slate-mid:  #35505F;
  --ts-slate-soft: #6A7F8D;
  --ts-crust:      #7A2E12;
  --ts-crust-lit:  #99431F;
  --ts-wheat:      #E0A526;
  --ts-wheat-pale: #F6E3B6;
  --ts-chalk:      #FBFBF9;
  --ts-paper:      #FFFFFF;
  --ts-linen:      #EBEAE5;
  --ts-linen-deep: #DFDDD4;
  --ts-rule:       #D7D5CC;
  --ts-rule-soft:  #E6E4DC;
  --ts-muted:      #5C6670;

  /* Type */
  --ts-display: "Zilla Slab", "Bitter", Georgia, "Times New Roman", serif;
  --ts-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ts-step--2: 0.8125rem;
  --ts-step--1: 0.9375rem;
  --ts-step-0:  1.0625rem;
  --ts-step-1:  1.25rem;
  --ts-step-2:  1.5rem;
  --ts-step-3:  clamp(1.65rem, 1.4rem + 1.1vw, 2rem);
  --ts-step-4:  clamp(1.95rem, 1.55rem + 1.9vw, 2.6rem);
  --ts-step-5:  clamp(2.3rem, 1.6rem + 3.1vw, 3.4rem);
  --ts-step-6:  clamp(2.7rem, 1.5rem + 5.2vw, 4.5rem);

  /* Space */
  --ts-gap:   1.5rem;
  --ts-band:  clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --ts-shell: 76rem;
  --ts-text:  36rem;

  --ts-radius:    10px;
  --ts-radius-lg: 18px;

  --ts-lift: 0 1px 2px rgba(26, 32, 38, .05), 0 10px 26px -18px rgba(26, 32, 38, .45);
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ts-chalk);
  color: var(--ts-ink);
  font-family: var(--ts-body);
  font-size: var(--ts-step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
iframe { border: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--ts-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 .5em;
  color: var(--ts-ink);
  text-wrap: balance;
}
h1 { font-size: var(--ts-step-5); }
h2 { font-size: var(--ts-step-4); }
h3 { font-size: var(--ts-step-2); line-height: 1.2; }
h4 { font-size: var(--ts-step-1); line-height: 1.25; }

p, ul, ol, dl, blockquote, figure, table, pre { margin: 0 0 1.15em; }
p { text-wrap: pretty; }

a { color: var(--ts-crust); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ts-crust-lit); }

strong, b { font-weight: 600; }

hr {
  border: 0;
  height: 1px;
  background: var(--ts-rule);
  margin: 2.5rem 0;
}

blockquote {
  border-left: 3px solid var(--ts-wheat);
  margin-inline: 0;
  padding: .25rem 0 .25rem 1.25rem;
  font-size: var(--ts-step-1);
  font-family: var(--ts-display);
  line-height: 1.45;
  color: var(--ts-slate);
}
blockquote p:last-child { margin-bottom: 0; }

code, kbd, pre, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--ts-ink); color: #E8E6E0; padding: 1rem 1.25rem; border-radius: var(--ts-radius); overflow-x: auto; }

table { border-collapse: collapse; width: 100%; font-size: var(--ts-step--1); }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--ts-rule-soft); }
th { font-weight: 600; background: var(--ts-linen); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ts-wheat);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--ts-wheat-pale); color: var(--ts-ink); }

.ts-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ts-ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--ts-radius) 0;
}
.ts-skip:focus { left: 0; color: #fff; }

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; width: 1px;
  margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap;
}
.screen-reader-text:focus {
  clip-path: none; height: auto; width: auto; position: static; padding: .5rem 1rem;
}

/* ==========================================================================
   3. Layout shell
   ========================================================================== */

.ts-shell {
  width: min(100% - 2.5rem, var(--ts-shell));
  margin-inline: auto;
}
.ts-shell--narrow { width: min(100% - 2.5rem, 46rem); }

.ts-band { padding-block: var(--ts-band); }
.ts-band--tight { padding-block: calc(var(--ts-band) * .62); }
.ts-band--linen { background: var(--ts-linen); }
.ts-band--slate { background: var(--ts-slate); color: #EDF1F4; }
.ts-band--slate h2, .ts-band--slate h3 { color: #fff; }

/* The notebook rule — a ruled-paper tint, used only where the page is
   presenting a log or a schedule, never as all-over decoration. */
.ts-ruled {
  background-image: linear-gradient(to bottom, var(--ts-rule-soft) 1px, transparent 1px);
  background-size: 100% 2.25rem;
}

.ts-head { margin-bottom: 2.5rem; max-width: 42rem; }
.ts-head p { color: var(--ts-muted); font-size: var(--ts-step-1); margin-bottom: 0; line-height: 1.5; }
.ts-band--slate .ts-head p { color: #B9C7D1; }
.ts-head--split { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 2rem; max-width: none; }
.ts-head--split > div { max-width: 42rem; }
.ts-head--split .ts-link { margin-left: auto; white-space: nowrap; }

/* ==========================================================================
   4. Buttons and links
   ========================================================================== */

.ts-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ts-body);
  font-size: var(--ts-step--1);
  font-weight: 600;
  letter-spacing: .005em;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.ts-btn--primary { background: var(--ts-crust); color: #fff; }
.ts-btn--primary:hover { background: var(--ts-crust-lit); color: #fff; }
.ts-btn--wheat { background: var(--ts-wheat); color: var(--ts-ink); }
.ts-btn--wheat:hover { background: #EFB63D; color: var(--ts-ink); }
.ts-btn--ghost { border-color: var(--ts-rule); color: var(--ts-ink); background: transparent; }
.ts-btn--ghost:hover { border-color: var(--ts-ink); color: var(--ts-ink); background: transparent; }
.ts-band--slate .ts-btn--ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.ts-band--slate .ts-btn--ghost:hover { border-color: #fff; color: #fff; }

.ts-link {
  font-weight: 600;
  font-size: var(--ts-step--1);
  color: var(--ts-crust);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ts-wheat);
  padding-bottom: 1px;
}
.ts-link:hover { border-bottom-color: var(--ts-crust); }
.ts-band--slate .ts-link { color: var(--ts-wheat); }
.ts-band--slate .ts-link:hover { border-bottom-color: #fff; color: #fff; }

/* ==========================================================================
   5. Header
   ========================================================================== */

.ts-header {
  position: relative; z-index: 60;
  background: var(--ts-chalk);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ts-header.is-stuck {
  border-bottom-color: var(--ts-rule-soft);
  box-shadow: 0 8px 24px -22px rgba(26,32,38,.7);
}

.ts-header__bar {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 4.5rem;
}

.ts-brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-right: auto; }
.ts-brand img { max-height: 54px; width: auto; }
.ts-brand__name {
  font-family: var(--ts-display);
  font-size: 1.4rem; font-weight: 600; line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ts-ink);
}
.ts-brand__name span { display: block; font-family: var(--ts-body); font-size: .6875rem; font-weight: 500; letter-spacing: .14em; color: var(--ts-slate-soft); }

.ts-nav ul { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.ts-nav a {
  font-size: var(--ts-step--1);
  font-weight: 500;
  color: var(--ts-ink);
  text-decoration: none;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  display: block;
}
.ts-nav a:hover,
.ts-nav .current-menu-item > a,
.ts-nav .current-menu-parent > a { border-bottom-color: var(--ts-wheat); color: var(--ts-ink); }

.ts-nav li { position: relative; }
.ts-nav .sub-menu {
  display: none; position: absolute; top: 100%; left: -1rem;
  min-width: 13rem; flex-direction: column; gap: 0;
  background: var(--ts-paper);
  border: 1px solid var(--ts-rule-soft);
  border-radius: var(--ts-radius);
  padding: .5rem;
  box-shadow: var(--ts-lift);
}
.ts-nav li:hover > .sub-menu,
.ts-nav li:focus-within > .sub-menu { display: flex; }
.ts-nav .sub-menu a { padding: .45rem .75rem; border-bottom: 0; border-radius: 6px; }
.ts-nav .sub-menu a:hover { background: var(--ts-linen); }

.ts-header__actions { display: flex; align-items: center; gap: .75rem; }

.ts-iconbtn {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--ts-rule);
  background: transparent;
  color: var(--ts-ink);
  cursor: pointer;
}
.ts-iconbtn:hover { background: var(--ts-linen); }
.ts-iconbtn svg { width: 18px; height: 18px; }

.ts-burger { display: none; }

/* Slide-down search */
.ts-search-drop {
  display: none;
  border-top: 1px solid var(--ts-rule-soft);
  background: var(--ts-linen);
  padding-block: 1.25rem;
}
.ts-search-drop.is-open { display: block; }

.ts-searchform { display: flex; gap: .5rem; }
.ts-searchform input[type="search"] {
  flex: 1;
  font: inherit;
  font-size: var(--ts-step-0);
  padding: .8rem 1rem;
  border: 1px solid var(--ts-rule);
  border-radius: var(--ts-radius);
  background: var(--ts-paper);
  color: var(--ts-ink);
}
.ts-searchform input[type="search"]::placeholder { color: var(--ts-slate-soft); }

/* Mobile drawer */
.ts-drawer {
  display: none;
  position: fixed; inset: 4.5rem 0 0;
  background: var(--ts-chalk);
  z-index: 55;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 3rem;
}
.ts-drawer.is-open { display: block; }
.ts-drawer ul { list-style: none; margin: 0; padding: 0; }
.ts-drawer > ul > li { border-bottom: 1px solid var(--ts-rule-soft); }
.ts-drawer a {
  display: block;
  font-family: var(--ts-display);
  font-size: var(--ts-step-2);
  padding: .85rem 0;
  text-decoration: none;
  color: var(--ts-ink);
}
.ts-drawer .sub-menu a { font-family: var(--ts-body); font-size: var(--ts-step-0); padding: .5rem 0 .5rem 1rem; color: var(--ts-muted); }
.ts-drawer__cta { margin-top: 1.75rem; display: grid; gap: .75rem; }
.ts-drawer .ts-btn--primary { color: #fff; }
.ts-drawer .ts-btn--ghost { color: var(--ts-ink); }

@media (max-width: 960px) {
  .ts-nav { display: none; }
  .ts-burger { display: grid; }
}

/* ==========================================================================
   6. Cards and post lists
   ========================================================================== */

.ts-grid { display: grid; gap: 2rem 1.75rem; }
.ts-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ts-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ts-grid--2 { grid-template-columns: repeat(2, 1fr); }

.ts-card { display: flex; flex-direction: column; }
.ts-card__media {
  position: relative;
  display: block;
  border-radius: var(--ts-radius);
  overflow: hidden;
  background: var(--ts-linen-deep);
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
}
.ts-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.ts-card:hover .ts-card__media img { transform: scale(1.035); }
.ts-card__title { font-size: var(--ts-step-1); margin-bottom: .45rem; }
.ts-card__title a { color: var(--ts-ink); text-decoration: none; background-image: linear-gradient(var(--ts-wheat), var(--ts-wheat)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s ease; }
.ts-card__title a:hover { background-size: 100% 2px; }
.ts-card__excerpt { color: var(--ts-muted); font-size: var(--ts-step--1); margin-bottom: .75rem; }
.ts-card--lead .ts-card__media { aspect-ratio: 16 / 9; }
.ts-card--lead .ts-card__title { font-size: var(--ts-step-3); }
.ts-card--lead .ts-card__excerpt { font-size: var(--ts-step-0); max-width: 34rem; }

/* Meta: the facts that matter to a baker, kept as discrete chips rather than
   a dot-joined string. */
.ts-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; font-size: var(--ts-step--2); color: var(--ts-muted); margin-bottom: .6rem; }
.ts-meta__cat {
  font-weight: 600; letter-spacing: .02em;
  color: var(--ts-crust); text-decoration: none;
}
.ts-meta__cat:hover { color: var(--ts-crust-lit); }
.ts-meta time { color: var(--ts-slate-soft); }

.ts-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: var(--ts-step--2); font-weight: 500;
  padding: .2rem .55rem;
  border: 1px solid var(--ts-rule);
  border-radius: 999px;
  color: var(--ts-slate);
  background: var(--ts-paper);
}

/* Compact numbered-free list for sidebars and "more reading" */
.ts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.ts-list li { display: flex; gap: .9rem; align-items: flex-start; }
.ts-list li > a { flex: none; }
.ts-list img { width: 96px; height: 60px; object-fit: cover; border-radius: 7px; flex: none; background: var(--ts-linen-deep); }
.ts-list h3, .ts-list h4 { font-size: var(--ts-step--1); margin: 0 0 .15rem; line-height: 1.3; font-family: var(--ts-body); font-weight: 600; }
.ts-list h3 a, .ts-list h4 a { color: var(--ts-ink); text-decoration: none; }
.ts-list h3 a:hover, .ts-list h4 a:hover { color: var(--ts-crust); }
.ts-list span { font-size: var(--ts-step--2); color: var(--ts-slate-soft); }

@media (max-width: 900px) {
  .ts-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .ts-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ts-grid--4, .ts-grid--3, .ts-grid--2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. Home — hero and the rising jar
   ========================================================================== */

.ts-hero { padding-block: clamp(2.5rem, 1rem + 5vw, 4.75rem) clamp(3rem, 1rem + 6vw, 5.5rem); overflow: hidden; }
.ts-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.ts-hero h1 {
  font-size: var(--ts-step-6);
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin-bottom: 1.1rem;
}
.ts-hero__sub {
  font-size: var(--ts-step-1);
  line-height: 1.5;
  color: var(--ts-muted);
  max-width: 30rem;
  margin-bottom: 1.9rem;
}
.ts-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.ts-hero__proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(7.5rem, 100%), 1fr));
  gap: 1.25rem 2rem;
  max-width: 30rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--ts-rule);
}
.ts-hero__proof b {
  display: block;
  font-family: var(--ts-display);
  font-size: var(--ts-step-3);
  font-weight: 600;
  line-height: 1;
  color: var(--ts-slate);
  font-variant-numeric: tabular-nums;
}
.ts-hero__proof span { font-size: var(--ts-step--2); color: var(--ts-muted); }

/* The jar. It carries the page's single idea — sourdough is a clock — and
   doubles as a small tool: the slider below sets the kitchen temperature and
   the readout says how long a fed starter takes to double. */
.ts-jar { margin: 0; max-width: 30rem; margin-inline: auto; }
.ts-jar__stage {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: stretch;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--ts-linen);
  border-radius: var(--ts-radius-lg) var(--ts-radius-lg) 0 0;
}
.ts-jar__glass {
  position: relative;
  flex: none;
  width: clamp(9rem, 15vw, 11.5rem);
  height: clamp(15rem, 24vw, 18.5rem);
  border: 2px solid var(--ts-slate);
  border-top-width: 0;
  border-radius: 6px 6px 16px 16px;
  background:
    linear-gradient(105deg, rgba(255,255,255,.55) 0 18%, rgba(255,255,255,0) 18.5%),
    var(--ts-paper);
  overflow: hidden;
}
.ts-jar__lid {
  position: absolute; inset: 0 -6px auto -6px;
  height: 14px;
  background: var(--ts-slate);
  border-radius: 4px;
}
.ts-jar__dough {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 30%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.5) 0 3px, transparent 3.5px),
    radial-gradient(circle at 65% 60%, rgba(255,255,255,.42) 0 4px, transparent 4.5px),
    radial-gradient(circle at 42% 85%, rgba(255,255,255,.35) 0 2.5px, transparent 3px),
    linear-gradient(to bottom, #E9DCBC 0 9%, #DCC89C 38%, #D2BB89 100%);
  border-radius: 48% 52% 4px 4px / 20px 18px 4px 4px;
  animation: ts-rise 2.6s cubic-bezier(.33,.9,.4,1) .45s forwards;
}
@keyframes ts-rise { from { height: 30%; } to { height: 60%; } }

.ts-jar__bubble {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  animation: ts-bubble 4.5s ease-in-out infinite;
}
@keyframes ts-bubble {
  0%, 100% { transform: translateY(0) scale(1); opacity: .5; }
  50% { transform: translateY(-9px) scale(1.25); opacity: .95; }
}

.ts-jar__mark {
  position: absolute; left: -2px; right: -2px;
  display: flex; align-items: center;
  pointer-events: none;
}
.ts-jar__mark::before { content: ""; flex: 1; height: 0; border-top: 2px dashed var(--ts-slate-soft); }
.ts-jar__mark em {
  position: absolute; left: .5rem;
  font-style: normal; font-size: .625rem; font-weight: 600;
  letter-spacing: .04em;
  color: var(--ts-slate);
  background: rgba(255,255,255,.82);
  padding: 1px 5px; border-radius: 3px;
  transform: translateY(-.85em);
  font-variant-numeric: tabular-nums;
}
.ts-jar__mark--band { bottom: 30%; }
.ts-jar__mark--peak { bottom: 60%; }
.ts-jar__mark--peak::before { border-top: 2px solid var(--ts-crust); }
.ts-jar__mark--peak em { color: var(--ts-crust); }

/* Volume scale beside the glass: marks sit where those levels really are. */
.ts-jar__scale {
  position: relative;
  flex: none; width: 2.1rem;
  list-style: none; margin: 0; padding: 0;
  border-left: 2px solid var(--ts-rule);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--ts-slate-soft);
  font-variant-numeric: tabular-nums;
}
.ts-jar__scale li { position: absolute; left: .55rem; line-height: 1; transform: translateY(50%); white-space: nowrap; }
.ts-jar__scale li:nth-child(1) { bottom: 90%; }
.ts-jar__scale li:nth-child(2) { bottom: 60%; }
.ts-jar__scale li:nth-child(3) { bottom: 30%; }
.ts-jar__scale li:nth-child(4) { bottom: 0; transform: none; }
.ts-jar__scale li::before {
  content: ""; position: absolute; left: -.55rem; top: 50%;
  width: .35rem; height: 2px; background: var(--ts-rule); transform: translate(-100%, -50%);
}
.ts-jar__scale li.is-now { color: var(--ts-crust); font-weight: 700; }

/* The readout */
.ts-jar__read { flex: 1 1 7.5rem; display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; min-width: 0; }
.ts-jar__read p { margin: 0; }
.ts-jar__temp b {
  display: block;
  font-family: var(--ts-display); font-weight: 600;
  font-size: var(--ts-step-5); line-height: 1; letter-spacing: -0.02em;
  color: var(--ts-slate);
  font-variant-numeric: tabular-nums;
}
.ts-jar__temp span { font-size: var(--ts-step--1); color: var(--ts-muted); font-variant-numeric: tabular-nums; }
.ts-jar__time { font-size: var(--ts-step--2); color: var(--ts-muted); line-height: 1.4; }
.ts-jar__time b {
  display: block; margin-top: .15rem;
  font-family: var(--ts-display); font-weight: 600;
  font-size: var(--ts-step-3); line-height: 1.05;
  color: var(--ts-crust);
  font-variant-numeric: tabular-nums;
}

/* The slider */
.ts-jar__control {
  background: var(--ts-linen-deep);
  border-radius: 0 0 var(--ts-radius-lg) var(--ts-radius-lg);
  padding: 1rem 1.75rem 1.1rem;
}
.ts-jar__control label { display: block; font-size: var(--ts-step--1); font-weight: 600; color: var(--ts-slate); margin-bottom: .6rem; }
.ts-jar__ends { display: flex; justify-content: space-between; font-size: var(--ts-step--2); color: var(--ts-muted); margin-top: .35rem; font-variant-numeric: tabular-nums; }
.no-js .ts-jar__control { display: none; }
.no-js .ts-jar__stage { border-radius: var(--ts-radius-lg); }

.ts-jar input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 1.75rem; margin: 0;
  background: transparent; cursor: pointer;
}
.ts-jar input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--ts-slate-mid), var(--ts-wheat) 60%, var(--ts-crust-lit));
}
.ts-jar input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(to right, var(--ts-slate-mid), var(--ts-wheat) 60%, var(--ts-crust-lit));
}
.ts-jar input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 1.5rem; height: 1.5rem; margin-top: calc(3px - .75rem);
  border-radius: 50%;
  background: var(--ts-paper);
  border: 2px solid var(--ts-slate);
  box-shadow: 0 2px 6px rgba(26,32,38,.25);
}
.ts-jar input[type="range"]::-moz-range-thumb {
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--ts-paper);
  border: 2px solid var(--ts-slate);
  box-shadow: 0 2px 6px rgba(26,32,38,.25);
}
.ts-jar input[type="range"]:focus-visible { outline: none; }
.ts-jar input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ts-wheat); outline-offset: 2px; }
.ts-jar input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--ts-wheat); outline-offset: 2px; }

.ts-jar figcaption { margin-top: .8rem; font-size: var(--ts-step--2); color: var(--ts-slate-soft); }

@media (prefers-reduced-motion: reduce) {
  .ts-jar__dough { animation: none; height: 60%; }
  .ts-jar__bubble { animation: none; }
  .ts-card:hover .ts-card__media img { transform: none; }
}

@media (max-width: 920px) {
  .ts-hero__inner { grid-template-columns: 1fr; }
  .ts-jar { margin-inline: 0; }
}
@media (max-width: 420px) {
  .ts-jar__stage { padding: 1.25rem 1.1rem 1.1rem; gap: 1rem; }
  .ts-jar__control { padding-inline: 1.1rem; }
  .ts-jar__glass { width: 8.25rem; height: 14rem; }
  .ts-jar__read { flex-basis: 100%; flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: 1.5rem; }
}

/* As-featured-in strip */
.ts-featured-in { border-block: 1px solid var(--ts-rule-soft); padding-block: 1.25rem; }
.ts-featured-in__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; }
.ts-featured-in p { margin: 0; font-size: var(--ts-step--2); color: var(--ts-slate-soft); flex: none; }
.ts-featured-in ul {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2.25rem;
  list-style: none; margin: 0; padding: 0;
}
.ts-featured-in li {
  font-family: var(--ts-display);
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ts-slate-soft);
}
.ts-featured-in img { height: 28px; width: auto; filter: grayscale(1); opacity: .7; }

/* ==========================================================================
   8. Home — "where are you stuck"
   ========================================================================== */

.ts-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ts-route {
  display: flex; flex-direction: column;
  background: var(--ts-paper);
  border: 1px solid var(--ts-rule-soft);
  border-radius: var(--ts-radius-lg);
  padding: 1.6rem 1.5rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease;
}
.ts-route:hover { border-color: var(--ts-slate); color: inherit; }
.ts-route__icon {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--ts-linen);
  color: var(--ts-slate);
  margin-bottom: 1rem;
}
.ts-route__icon svg { width: 22px; height: 22px; }
.ts-route h3 { font-size: var(--ts-step-1); margin-bottom: .4rem; }
.ts-route p { font-size: var(--ts-step--1); color: var(--ts-muted); margin-bottom: 1.1rem; }
.ts-route > span:last-child {
  margin-top: auto;
  font-size: var(--ts-step--1); font-weight: 600; color: var(--ts-crust);
  border-bottom: 1.5px solid var(--ts-wheat);
  align-self: flex-start; padding-bottom: 1px;
}

@media (max-width: 860px) { .ts-routes { grid-template-columns: 1fr; } }

/* ==========================================================================
   9. Home — bake-day schedule
   ========================================================================== */

.ts-schedule__track { display: flex; gap: 2px; margin-bottom: .9rem; }
.ts-stage { flex: var(--w) 1 0; min-width: 6rem; padding-right: .75rem; }
.ts-stage__bar {
  display: block;
  height: 10px;
  border-radius: 3px;
  background: var(--c, var(--ts-slate-mid));
  margin-bottom: .75rem;
}
.ts-stage h3 {
  font-size: var(--ts-step--1);
  font-family: var(--ts-body);
  font-weight: 600;
  color: #fff;
  margin-bottom: .2rem;
}
.ts-stage p { font-size: var(--ts-step--2); color: #9FB3C0; margin: 0; line-height: 1.4; }
.ts-stage__when { margin: 0 0 .3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45rem; }
.ts-stage time {
  font-size: var(--ts-step--1);
  font-weight: 600;
  color: var(--ts-wheat);
  font-variant-numeric: tabular-nums;
}
.ts-stage small { font-size: .6875rem; color: #8CA0AE; }
.ts-stage { transition: flex-grow .45s cubic-bezier(.3,.7,.3,1); }
.ts-stage__len {
  display: inline-block; margin-left: .35rem;
  font-size: var(--ts-step--2); font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--ts-ink); background: var(--ts-wheat);
  border-radius: 999px; padding: .05rem .5rem; vertical-align: .08em;
}
@media (prefers-reduced-motion: reduce) { .ts-stage { transition: none; } }

.ts-planner {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  margin-bottom: 2.25rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--ts-radius-lg);
  background: rgba(255,255,255,.04);
}
.ts-planner label { font-family: var(--ts-display); font-size: var(--ts-step-1); font-weight: 600; color: #fff; }
.ts-planner select {
  font: inherit; font-size: var(--ts-step-1); font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ts-ink);
  background: var(--ts-wheat);
  border: 0; border-radius: 10px;
  padding: .45rem 2.1rem .45rem .85rem;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A2026' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center;
}
.ts-planner select:focus-visible { outline-color: #fff; }
.ts-planner__answer { margin: 0 0 0 auto; color: #B9C7D1; font-size: var(--ts-step-0); }
.ts-planner__answer b { color: var(--ts-wheat); font-family: var(--ts-display); font-size: var(--ts-step-2); font-weight: 600; font-variant-numeric: tabular-nums; margin-inline: .2rem; }
.no-js .ts-planner select { pointer-events: none; background-image: none; padding-right: .85rem; }

.ts-schedule__axis {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: .5rem;
  margin-top: 1.75rem;
  font-size: var(--ts-step--2);
  color: #8CA0AE;
  font-variant-numeric: tabular-nums;
}
.ts-schedule__axis span { flex: 1 1 0; min-width: 0; position: relative; white-space: nowrap; }
.ts-schedule__axis span::before {
  content: ""; position: absolute; top: calc(-.5rem - 1px); left: 0; width: 1px; height: .4rem;
  background: rgba(255,255,255,.3);
}
/* The closing tick marks the right-hand edge; its label hangs back inside the track. */
.ts-schedule__axis span:last-child { flex: 0 0 0; display: flex; justify-content: flex-end; }
.ts-schedule__axis span:last-child::before { left: auto; right: 0; }

.ts-schedule__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
}
.ts-schedule__foot p { margin: 0; color: #B9C7D1; font-size: var(--ts-step--1); max-width: 34rem; }
.ts-schedule__foot .ts-btn { margin-left: auto; }

@media (max-width: 860px) {
  .ts-schedule__track { flex-direction: column; gap: 0; border-left: 2px solid rgba(255,255,255,.16); margin-left: 5.25rem; padding-left: 1rem; }
  .ts-stage { display: grid; grid-template-columns: 5.25rem 1fr; gap: 0 1rem; margin-left: -6.3rem; padding: 0 0 1.15rem; min-width: 0; }
  .ts-stage__bar { display: none; }
  .ts-stage__when { grid-column: 1; grid-row: 1 / span 2; flex-direction: column; gap: .1rem; margin: 0; }
  .ts-stage h3 { grid-column: 2; grid-row: 1; }
  .ts-stage > p:last-child { grid-column: 2; grid-row: 2; }
  .ts-schedule__axis { display: none; }
  .ts-planner__answer { margin-left: 0; flex-basis: 100%; }
}

/* ==========================================================================
   10. Home — fixes, course, newsletter
   ========================================================================== */

.ts-fixes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 2rem; }
.ts-fix {
  border-bottom: 1px solid var(--ts-rule);
  padding-bottom: .9rem;
}
.ts-fix > summary {
  display: flex; align-items: baseline; gap: .75rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--ts-display);
  font-size: var(--ts-step-1);
  font-weight: 600;
  padding: .7rem 0;
  color: var(--ts-ink);
}
.ts-fix > summary::-webkit-details-marker { display: none; }
.ts-fix > summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--ts-slate-soft);
  border-bottom: 2px solid var(--ts-slate-soft);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.ts-fix[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.ts-fix p { font-size: var(--ts-step--1); color: var(--ts-muted); margin: 0 0 .5rem; max-width: 34rem; }
.ts-fix a { font-size: var(--ts-step--1); font-weight: 600; }

@media (max-width: 760px) { .ts-fixes { grid-template-columns: 1fr; } }

/* Course band */
.ts-course { background: var(--ts-crust); color: #F7EFE8; position: relative; overflow: hidden; }
.ts-course::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: .5; pointer-events: none;
}
.ts-course__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.ts-course h2 { color: #fff; font-size: var(--ts-step-5); margin-bottom: .75rem; }
.ts-course__lead { font-size: var(--ts-step-1); color: #EBD6CA; line-height: 1.5; margin-bottom: 1.75rem; max-width: 32rem; }
.ts-course__panel {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--ts-radius-lg);
  padding: 1.6rem 1.6rem 1.75rem;
  backdrop-filter: blur(2px);
}
.ts-course__panel h3 { color: #fff; font-size: var(--ts-step-0); font-family: var(--ts-body); margin-bottom: .9rem; }
.ts-course__panel ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .6rem; }
.ts-course__panel li { display: flex; gap: .6rem; font-size: var(--ts-step--1); color: #F0DED3; line-height: 1.45; }
.ts-course__panel li svg { flex: none; width: 17px; height: 17px; margin-top: .22rem; color: var(--ts-wheat); }
.ts-course__panel .ts-btn { width: 100%; }
.ts-course__fine { margin: .75rem 0 0; font-size: var(--ts-step--2); color: #D6BCAC; text-align: center; }

@media (max-width: 880px) { .ts-course__inner { grid-template-columns: 1fr; } }

/* Newsletter */
.ts-signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.ts-signup h2 { margin-bottom: .5rem; }
.ts-signup p { color: var(--ts-muted); margin-bottom: 0; }
.ts-signup form { display: flex; gap: .5rem; flex-wrap: wrap; }
.ts-signup input[type="email"] {
  flex: 1 1 14rem;
  font: inherit; font-size: var(--ts-step-0);
  padding: .8rem 1rem;
  border: 1px solid var(--ts-rule);
  border-radius: var(--ts-radius);
  background: var(--ts-paper);
}
.ts-signup small { display: block; margin-top: .7rem; font-size: var(--ts-step--2); color: var(--ts-slate-soft); }

@media (max-width: 760px) { .ts-signup { grid-template-columns: 1fr; } }

/* ==========================================================================
   11. Page headers, archives, pagination
   ========================================================================== */

.ts-pagehead { padding-block: clamp(2.25rem, 1rem + 4vw, 3.75rem) 0; }
.ts-pagehead h1 { max-width: 22ch; }
.ts-pagehead p { color: var(--ts-muted); font-size: var(--ts-step-1); max-width: 44rem; }

.ts-breadcrumb { font-size: var(--ts-step--2); color: var(--ts-slate-soft); margin-bottom: .9rem; }
.ts-breadcrumb a { color: var(--ts-slate-soft); text-decoration: none; }
.ts-breadcrumb a:hover { color: var(--ts-crust); }
.ts-breadcrumb span { margin-inline: .4rem; }

.ts-terms { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.ts-terms a { text-decoration: none; }
.ts-terms a:hover .ts-tag { border-color: var(--ts-slate); }

.ts-pagination {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ts-rule);
}
.ts-pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 2.5rem; height: 2.5rem; padding-inline: .6rem;
  border: 1px solid var(--ts-rule);
  border-radius: 8px;
  font-size: var(--ts-step--1); font-weight: 600;
  color: var(--ts-ink); text-decoration: none;
}
.ts-pagination .page-numbers:hover { border-color: var(--ts-slate); }
.ts-pagination .page-numbers.current { background: var(--ts-slate); border-color: var(--ts-slate); color: #fff; }
.ts-pagination .dots { border-color: transparent; }

/* ==========================================================================
   12. Single post
   ========================================================================== */

.ts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21.875rem;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(2rem, 1rem + 3vw, 3.25rem) var(--ts-band);
}
.ts-layout--full { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1000px) { .ts-layout { grid-template-columns: minmax(0, 1fr); } }

.ts-entry__head { margin-bottom: 1.75rem; }
.ts-entry__head h1 { font-size: calc(var(--ts-step-5) * var(--ts-article-heading, 1)); margin-bottom: .75rem; }
.ts-entry__standfirst { font-size: var(--ts-step-1); color: var(--ts-muted); line-height: 1.5; }

.ts-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem;
  font-size: var(--ts-step--2); color: var(--ts-muted);
  padding-block: 1rem;
  border-block: 1px solid var(--ts-rule-soft);
  margin: 1.5rem 0 0;
}
.ts-byline img { width: 34px; height: 34px; border-radius: 50%; }
.ts-byline b { color: var(--ts-ink); font-weight: 600; }
.ts-byline__share { margin-left: auto; display: flex; gap: .4rem; }
.ts-byline__share a {
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border: 1px solid var(--ts-rule); border-radius: 50%; color: var(--ts-slate);
}
.ts-byline__share a:hover { background: var(--ts-linen); }
.ts-byline__share svg { width: 15px; height: 15px; }

.ts-featured { margin: 0 0 2rem; }
.ts-featured img { width: 100%; height: auto; max-height: 36rem; object-fit: cover; border-radius: var(--ts-radius-lg); }
.ts-featured figcaption { font-size: var(--ts-step--2); color: var(--ts-slate-soft); padding-top: .5rem; }

/* Article body */
.ts-prose { font-size: var(--ts-article-size, 1.1875rem); line-height: 1.75; }
.ts-prose > * + * { margin-top: 1.15em; }
.ts-prose h2 { font-size: calc(var(--ts-step-3) * var(--ts-article-heading, 1)); margin-top: 2.2em; margin-bottom: .55em; }
.ts-prose h3 { font-size: calc(var(--ts-step-2) * var(--ts-article-heading, 1)); margin-top: 1.8em; margin-bottom: .45em; }
.ts-prose h2 + h3 { margin-top: 1em; }
.ts-prose ul, .ts-prose ol { padding-left: 1.3em; }
.ts-prose li + li { margin-top: .4em; }
.ts-prose ul { list-style: none; padding-left: 1.4em; }
.ts-prose ul > li { position: relative; }
.ts-prose ul > li::before {
  content: ""; position: absolute; left: -1.1em; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--ts-wheat);
}
.ts-prose img, .ts-prose figure img { border-radius: var(--ts-radius); }
.ts-prose figure { margin-inline: 0; }
.ts-prose figcaption { font-size: var(--ts-step--2); color: var(--ts-slate-soft); margin-top: .5rem; }
.ts-prose .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 45%; }
.ts-prose .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 45%; }
.ts-prose .wp-caption-text { font-size: var(--ts-step--2); color: var(--ts-slate-soft); }

/* Key-facts panel: the numbers a baker scans for before reading */
.ts-facts {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2.25rem;
  background: var(--ts-linen);
  border-radius: var(--ts-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.ts-facts div { min-width: 6rem; }
.ts-facts dt { font-size: var(--ts-step--2); color: var(--ts-muted); margin-bottom: .1rem; }
.ts-facts dd {
  margin: 0;
  font-family: var(--ts-display); font-weight: 600; font-size: var(--ts-step-1);
  color: var(--ts-slate); font-variant-numeric: tabular-nums; line-height: 1.1;
}

/* Author box */
.ts-authorbox {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--ts-linen);
  border-radius: var(--ts-radius-lg);
  padding: 1.5rem;
  margin-top: 3rem;
}
.ts-authorbox img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.ts-authorbox h2 { font-size: var(--ts-step-1); margin-bottom: .3rem; }
.ts-authorbox p { font-size: var(--ts-step--1); color: var(--ts-muted); margin-bottom: .5rem; }

.ts-nextprev { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.ts-nextprev a {
  display: block; padding: 1.1rem 1.25rem;
  border: 1px solid var(--ts-rule-soft); border-radius: var(--ts-radius);
  text-decoration: none; color: var(--ts-ink);
}
.ts-nextprev a:hover { border-color: var(--ts-slate); }
.ts-nextprev span { display: block; font-size: var(--ts-step--2); color: var(--ts-slate-soft); margin-bottom: .25rem; }
.ts-nextprev b { font-family: var(--ts-display); font-weight: 600; font-size: var(--ts-step-0); line-height: 1.25; display: block; }
.ts-nextprev a:last-child { text-align: right; }
@media (max-width: 600px) { .ts-nextprev { grid-template-columns: 1fr; } .ts-nextprev a:last-child { text-align: left; } }

/* ==========================================================================
   13. Sidebar and widgets
   ========================================================================== */

.ts-sidebar { align-self: stretch; min-width: 0; }
.ts-sidebar > .ts-widget + .ts-widget { margin-top: 2.25rem; }
.ts-sidebar > .adthrive-ad { margin-bottom: 2.25rem; }
.ts-widget { font-size: var(--ts-step--1); }
.ts-widget__title,
.ts-widget .widget-title,
.ts-widget .wp-block-heading {
  font-family: var(--ts-body);
  font-size: var(--ts-step--2);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ts-slate-soft);
  text-transform: none;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--ts-wheat);
  display: inline-block;
}
.ts-widget ul { list-style: none; margin: 0; padding: 0; }
.ts-widget li + li { margin-top: .55rem; }
.ts-widget a { color: var(--ts-ink); text-decoration: none; }
.ts-widget a:hover { color: var(--ts-crust); }

.ts-adslot {
  background: var(--ts-linen);
  border-radius: var(--ts-radius);
  min-height: 250px;
  display: grid; place-items: center;
  color: var(--ts-slate-soft);
  font-size: var(--ts-step--2);
}
.ts-adslot--inline { margin-block: 2.25rem; min-height: 120px; }

/* ==========================================================================
   14. Comments
   ========================================================================== */

.ts-comments { margin-top: 3.5rem; }
.ts-comments h2 { font-size: var(--ts-step-2); margin-bottom: 1.5rem; }
.ts-comments ol { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.ts-comments .children { list-style: none; padding-left: 1.5rem; margin-top: 1.25rem; border-left: 2px solid var(--ts-rule-soft); }
.ts-comments .ts-comment { padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--ts-rule-soft); }
.ts-comments .comment-author { display: flex; align-items: center; gap: .6rem; font-size: var(--ts-step--1); font-weight: 600; margin-bottom: .4rem; }
.ts-comments .comment-author img { border-radius: 50%; }
.ts-comments .comment-metadata { font-size: var(--ts-step--2); color: var(--ts-slate-soft); margin-bottom: .6rem; }
.ts-comments .comment-metadata a { color: inherit; text-decoration: none; }
.ts-comments p { font-size: var(--ts-step--1); }
.comment-respond label { display: block; font-size: var(--ts-step--2); font-weight: 600; margin-bottom: .3rem; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%; font: inherit; font-size: var(--ts-step--1);
  padding: .65rem .85rem; border: 1px solid var(--ts-rule);
  border-radius: var(--ts-radius); background: var(--ts-paper); margin-bottom: 1rem;
}
.comment-respond .submit {
  font: inherit; font-size: var(--ts-step--1); font-weight: 600;
  background: var(--ts-crust); color: #fff; border: 0;
  padding: .75rem 1.4rem; border-radius: 999px; cursor: pointer;
}
.comment-respond .submit:hover { background: var(--ts-crust-lit); }

/* ==========================================================================
   15. Footer
   ========================================================================== */

.ts-footer { background: var(--ts-slate); color: #C3D0D9; font-size: var(--ts-step--1); }
.ts-footer a { color: #E3EAEF; text-decoration: none; }
.ts-footer a:hover { color: var(--ts-wheat); }

.ts-footer__top { padding-block: clamp(2.5rem, 1rem + 4vw, 4rem); }
.ts-footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.ts-footer h2, .ts-footer h3 {
  color: #fff;
  font-family: var(--ts-body);
  font-size: var(--ts-step--2);
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.ts-footer ul { list-style: none; margin: 0; padding: 0; }
.ts-footer li + li { margin-top: .5rem; }
.ts-footer__about p { color: #A8BAC6; max-width: 26rem; }
.ts-footer__social { display: flex; gap: .5rem; margin-top: 1.1rem; }
.ts-footer__social a {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22); border-radius: 50%;
}
.ts-footer__social a:hover { background: rgba(255,255,255,.1); }
.ts-footer__social svg { width: 16px; height: 16px; }

.ts-footer__disclosure {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 1.5rem;
  font-size: var(--ts-step--2);
  color: #90A4B1;
}
.ts-footer__disclosure p { max-width: 62rem; margin-bottom: .75rem; }
.ts-footer__legal { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.25rem; }
.ts-footer__legal > .ts-shell {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
  font-size: var(--ts-step--2); color: #90A4B1;
}
.ts-footer__legal nav { margin-left: auto; }
.ts-footer__legal nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.ts-footer__legal nav li + li { margin-top: 0; }

@media (max-width: 880px) { .ts-footer__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ts-footer__cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   16. WordPress block and editor defaults
   ========================================================================== */

.wp-block-button__link { border-radius: 999px; font-weight: 600; padding: .8rem 1.4rem; }
.wp-block-pullquote { border-top: 2px solid var(--ts-wheat); border-bottom: 2px solid var(--ts-wheat); padding: 1.5rem 0; }
.wp-block-table figcaption { font-size: var(--ts-step--2); color: var(--ts-slate-soft); }
.wp-block-separator { border: 0; border-top: 1px solid var(--ts-rule); max-width: 8rem; }
.wp-block-image.is-style-rounded img { border-radius: 50%; }
.bypostauthor > .ts-comment { background: var(--ts-linen); border-radius: var(--ts-radius); padding: 1rem; }
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); }
.gallery-item img { border-radius: var(--ts-radius); }

@media print {
  .ts-header, .ts-footer, .ts-sidebar, .ts-adslot, .ts-byline__share, .ts-course, .ts-signup { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .ts-prose { max-width: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* Homepage lead + reading list */
.ts-latest {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.ts-list--lg { gap: 1.4rem; }
.ts-list--lg li { padding-bottom: 1.4rem; border-bottom: 1px solid var(--ts-rule-soft); }
.ts-list--lg li:last-child { border-bottom: 0; padding-bottom: 0; }
.ts-list--lg img { width: 128px; height: 80px; border-radius: 8px; }
.ts-list--lg h3, .ts-list--lg h4 { font-size: var(--ts-step-0); line-height: 1.32; margin-bottom: .3rem; }

@media (max-width: 860px) { .ts-latest { grid-template-columns: 1fr; } }

/* ==========================================================================
   17. Odds and ends
   ========================================================================== */

.ts-related { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--ts-rule); }
.ts-related h2 { font-size: var(--ts-step-2); margin-bottom: 1.5rem; }
.ts-related .ts-card__title { font-size: var(--ts-step-0); }

.ts-comments__note { font-size: var(--ts-step--2); color: var(--ts-muted); max-width: 34rem; }

.ts-empty { max-width: 34rem; padding-block: 2rem 1rem; }
.ts-empty p { color: var(--ts-muted); }

.ts-404 { max-width: 46rem; }
.ts-404__code { font-size: var(--ts-step--1); color: var(--ts-crust); font-weight: 600; margin-bottom: .5rem; }
.ts-404 h1 { font-size: var(--ts-step-5); }
.ts-404 > p { color: var(--ts-muted); font-size: var(--ts-step-1); max-width: 34rem; }
.ts-404 .ts-routes { margin-top: 2.5rem; }
.ts-404 .ts-route p { display: none; }

.ts-header__cta { padding: .6rem 1.1rem; }
@media (max-width: 560px) { .ts-header__cta { display: none; } }


/* ==========================================================================
   18. Second pass — topic chips, sidebar cards, notes, transitions
   ========================================================================== */

/* Topic chips above the latest posts, with real post counts */
.ts-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: -1rem 0 2.25rem; padding: 0; }
.ts-chips a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--ts-step--1); font-weight: 500;
  color: var(--ts-slate); text-decoration: none;
  padding: .4rem .5rem .4rem .9rem;
  border: 1px solid var(--ts-rule);
  border-radius: 999px;
  background: var(--ts-paper);
  transition: border-color .18s ease, background-color .18s ease;
}
.ts-chips a:hover { border-color: var(--ts-slate); color: var(--ts-ink); }
.ts-chips span {
  font-size: var(--ts-step--2); font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ts-muted);
  background: var(--ts-linen);
  border-radius: 999px;
  padding: .05rem .5rem;
}

.ts-latest__rest { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--ts-rule-soft); }

/* Sidebar fallback: about card and course promo */
.ts-promo {
  background: var(--ts-slate);
  color: #C9D5DD;
  border-radius: var(--ts-radius-lg);
  padding: 1.4rem 1.35rem 1.5rem;
}
.ts-promo h2 { font-size: var(--ts-step-1); color: #fff; margin-bottom: .5rem; }
.ts-promo p { font-size: var(--ts-step--1); margin-bottom: 1.1rem; }
.ts-promo .ts-btn { width: 100%; }
.ts-widget.ts-promo a.ts-btn { color: var(--ts-ink); }

/* Newsletter confirmation */
.ts-signup__status { margin: .75rem 0 0; font-size: var(--ts-step--1); font-weight: 600; color: var(--ts-slate); }
.ts-signup__status[data-state="error"] { color: var(--ts-crust); }
.ts-signup form[aria-busy="true"] button { opacity: .65; cursor: progress; }

/* Editor-selectable notes: "Baker's note" and "Watch out" */
.is-style-ts-note,
.is-style-ts-caution {
  border-left: 4px solid var(--ts-wheat);
  background: var(--ts-linen);
  border-radius: 0 var(--ts-radius) var(--ts-radius) 0;
  padding: 1rem 1.25rem;
}
.is-style-ts-caution { border-left-color: var(--ts-crust); background: #F6ECE6; }
.is-style-ts-note > :last-child,
.is-style-ts-caution > :last-child { margin-bottom: 0; }

/* Wide tables scroll inside themselves instead of pushing the page sideways */
.ts-prose .wp-block-table, .ts-prose > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ts-prose iframe, .ts-prose video { max-width: 100%; }
.ts-prose :where(h2, h3)[id] { scroll-margin-top: 6rem; }

/* Flags and other small images a language-switcher plugin puts in the menu */
.ts-nav img, .ts-drawer img { display: inline-block; width: auto; height: 1em; max-height: 1em; vertical-align: -.12em; margin-right: .35em; }

/* Ad containers injected into the article should never widen the page */

/* Pages cross-fade into one another where the browser supports it */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ==========================================================================
   19. Third pass — sidebar post lists, article images
   ========================================================================== */

/* Recent and most-popular lists */
.ts-list__thumb {
  position: relative;
  flex: none; width: 96px; height: 60px;
  border-radius: 7px; overflow: hidden;
  background: var(--ts-linen-deep);
}
.ts-list__thumb img { display: block; width: 100%; height: 100%; border-radius: 0; }
.ts-list__text { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.ts-list__text a {
  font-size: var(--ts-step--1); font-weight: 600; line-height: 1.32;
  color: var(--ts-ink); text-decoration: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.ts-list__text a:hover { color: var(--ts-crust); }
.ts-list__text small { font-size: var(--ts-step--2); color: var(--ts-slate-soft); }
.ts-widget .ts-list li + li { margin-top: 0; }

/* The popular list is a ranking, so it is numbered */
.ts-list--ranked { counter-reset: ts-rank; }
.ts-list--ranked li { counter-increment: ts-rank; }
.ts-list--ranked .ts-list__thumb::after {
  content: counter(ts-rank);
  position: absolute; left: 0; top: 0;
  min-width: 1.4rem; height: 1.4rem; padding-inline: .3rem;
  display: grid; place-items: center;
  font-size: var(--ts-step--2); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--ts-ink); background: var(--ts-wheat);
  border-radius: 0 0 7px 0;
}

/* Images inside an article sit centred in the column */
.ts-prose .wp-block-image:not(.alignleft):not(.alignright) { text-align: center; }
.ts-prose .wp-block-image:not(.alignleft):not(.alignright) img { margin-inline: auto; }
.ts-prose .wp-block-image img { height: auto; }
.ts-prose .wp-block-image figcaption,
.ts-prose .wp-element-caption { text-align: center; }
.ts-prose .wp-block-embed { margin-inline: 0; }
.ts-prose .wp-block-buttons { margin-block: 1.75rem; }

.ts-entry__foot { margin-top: 2.5rem; }
.ts-entry__foot > :first-child { margin-top: 0; }

@media (max-width: 600px) { .ts-prose { font-size: calc(var(--ts-article-size, 1.1875rem) - .0625rem); line-height: 1.7; } }

/* ==========================================================================
   20. Advertising — Raptive
   The ad script styles its own containers; these rules only keep the theme
   out of their way. See "Ads" in README.md for the selectors involved.
   ========================================================================== */

/* In-content and below-post slots: clear floated images, never wider than the column */
.ts-prose .adthrive-ad,
.ts-prose .adthrive-auto-injected-player-container { clear: both; max-width: 100%; }
.ts-prose > .adthrive-ad + * , .ts-prose > .adthrive-auto-injected-player-container + * { clear: both; }

/* Phones narrower than 360px: 10px gutters, so the column is still the 300px an ad needs */
@media (max-width: 359px) {
  .ts-shell, .ts-shell--narrow { width: calc(100% - 1.25rem); }
}

/* The sticky footer ad sits over the bottom of the page: give the last row room to clear it */
body:has(> .adthrive-footer) .ts-footer__legal { padding-bottom: calc(1.25rem + 100px); }

/* Optional sticky header (Customize → Header). Off by default — see README. */
.ts-sticky-header .ts-header { position: sticky; top: 0; }
