/* =========================================================
   THE.BUR — READING PAGE (single.php)
   Editorial layout: generous white space, hairline rules, small outlined
   tag chips, a large light serif headline over a sans lead, the featured
   image across the column, and a sticky contents / share rail beside a
   calm 17px body. Monochrome navy-on-paper; amber only as the accent
   (active contents item, link underline on hover, progress bar).
   Works in dark and light mode alike — the read-out is paper in both.
   ========================================================= */

.read{
  --read-ink:   var(--navy);
  --read-text:  #2B2F3A;
  --read-muted: #6A6F7C;
  --read-rule:  var(--line);
  --read-max:   1080px;
  --read-col:   680px;
  --read-rail:  200px;
  max-width:var(--read-max); margin:0 auto; min-width:0; width:100%;
}
/* the sticky rail needs every frame ancestor to clip without becoming a
   scroll container: overflow:clip trims the rounded frame exactly like
   hidden did, but lets position:sticky follow the page */
.single-post .shell,
.single-post .readout{ overflow:clip; }

/* ---------- chips ---------- */
.read-chip{
  display:inline-flex; align-items:center; height:22px; padding:0 8px;
  font-family:var(--font-mono); font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase;
  color:var(--read-ink); border:1px solid var(--read-ink); border-radius:3px; line-height:1;
  white-space:nowrap; transition:background .15s, color .15s, border-color .15s;
}
a.read-chip:hover{ background:var(--read-ink); color:var(--paper); }

/* ---------- top: the original article header ----------
   Breadcrumb, title, byline, square featured image and lead keep their
   style.css look exactly; here they only line up with the body column. */
.read-top{ max-width:720px; margin:0 0 52px; min-width:0; }
.read.has-rail .read-top{ margin-left:calc(var(--read-rail) + 64px); }
.read.is-wide .read-top{ max-width:960px; margin-left:auto; margin-right:auto; }
/* one block: the lead sits in the text column under the byline, the square
   image beside the whole group, and a single hairline closes the unit */
.read-top{ padding-bottom:34px; border-bottom:1px solid var(--line); }
.read-top .meta{ padding-bottom:0; border-bottom:0; }
.read-top .lead{
  margin:22px 0 0; font-size:18px; line-height:1.65; color:var(--read-text);
  padding-left:0; border:0;
}

/* ---------- body grid: rail + column ---------- */
.read-grid{ display:grid; grid-template-columns:minmax(0, 1fr); gap:64px; }
.read.has-rail .read-grid{ grid-template-columns:var(--read-rail) minmax(0, var(--read-col)); }
.read-main{ min-width:0; }
.read.is-wide .read-main{ max-width:960px; width:100%; margin:0 auto; }

/* rail */
.read-rail{ min-width:0; display:flex; flex-direction:column; gap:30px; align-self:start; position:sticky; top:28px; }
.read-rail-lbl, .read-sec-lbl{
  font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--read-muted); margin-bottom:12px;
}
.read-rail-sec{ border-top:1px solid var(--read-rule); padding-top:16px; }
.read-toc ol{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.read-toc a{
  display:block; position:relative; padding:7px 0 7px 14px;
  font-size:13.5px; line-height:1.35; color:var(--read-muted);
  border-left:1px solid var(--read-rule); transition:color .15s, border-color .15s;
}
.read-toc a:hover{ color:var(--read-ink); }
.read-toc a.is-active{ color:var(--read-ink); border-left:2px solid var(--amber); padding-left:13px; font-weight:600; }
.read-toc li.is-sub a{ padding-left:26px; font-size:12.5px; }
.read-toc li.is-sub a.is-active{ padding-left:25px; }
.read-rail-author{ display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; color:var(--read-ink); }
.read-rail-author img{ width:34px; height:34px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.read-share{
  display:inline-flex; align-items:center; gap:8px; height:34px; padding:0 14px 0 12px; cursor:pointer;
  font:600 12.5px/1 var(--font-body); color:var(--read-ink);
  background:transparent; border:1px solid var(--read-rule); border-radius:100px;
  transition:border-color .15s, background .15s;
}
.read-share:hover{ border-color:var(--read-ink); }
.read-share.is-done{ border-color:var(--amber); background:rgba(252,163,17,.12); }
.read-share svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- body typography ---------- */
.read .article-body > *{ max-width:none; margin-left:0; margin-right:0; }
.read.is-wide .article-body > *{ max-width:760px; margin-left:auto; margin-right:auto; }
.read.is-wide .article-body > .alignwide,
.read.is-wide .article-body > .alignfull,
.read.is-wide .article-body > figure,
.read.is-wide .article-body > .wp-block-embed,
.read.is-wide .article-body > iframe{ max-width:100%; }
.read .article-body p,
.read .article-body li{ font-size:17px; line-height:1.78; color:var(--read-text); }
.read .article-body p{ margin:0 0 24px; }
.read .article-body > p:first-child{ margin-top:0; }
.read .article-body h2,
.read .article-body h3,
.read .article-body h4{
  font-family:var(--font-body); color:var(--read-ink); letter-spacing:-.01em; scroll-margin-top:90px;
}
.read .article-body h2{ font-size:24px; font-weight:600; line-height:1.3; margin:56px 0 16px; }
.read .article-body h3{ font-size:19px; font-weight:600; line-height:1.35; margin:40px 0 12px; }
.read .article-body h4{ font-size:16px; font-weight:700; margin:30px 0 10px; }
.read .article-body > h2:first-child,
.read .article-body > h3:first-child{ margin-top:0; }
.read .article-body a{
  color:var(--read-ink); border-bottom:0;
  text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:3px;
  text-decoration-color:color-mix(in srgb, var(--read-ink) 45%, transparent);
  transition:text-decoration-color .15s, color .15s;
}
.read .article-body a:hover{ color:var(--amber-deep); text-decoration-color:var(--amber); }
.read .article-body ul,
.read .article-body ol{ margin:0 0 24px; padding-left:22px; }
.read .article-body li{ margin-bottom:8px; }
.read .article-body li::marker{ color:var(--read-muted); }
.read .article-body strong{ color:var(--read-ink); font-weight:600; }
/* quote blocks (the editor's Quote block; a quote typed as a normal
   paragraph is left as a paragraph). Hairlines
   above and below, a large amber quote mark sitting on the top rule, the
   words in the display serif, the source as a small caps line led by an
   amber dash. The block editor's own "BUR pull quote" style keeps its look. */
.read .article-body blockquote:not(.is-style-bur-pull){
  position:relative; background:none; border:0; border-radius:0;
  border-top:1px solid var(--read-rule); border-bottom:1px solid var(--read-rule);
  padding:38px 0 28px;
  margin:52px auto; /* auto sides: follows the text column (centred 760px on full-width articles) */
}
.read .article-body blockquote:not(.is-style-bur-pull)::before{
  content:"\201C"; display:block; position:absolute; top:-.42em; left:0;
  padding-right:14px; background:var(--paper);
  font-family:var(--font-display); font-size:76px; line-height:1; height:.62em; overflow:hidden;
  color:var(--amber);
}
.read .article-body blockquote:not(.is-style-bur-pull) p{
  font-family:var(--font-display); font-weight:400; font-style:normal;
  font-size:clamp(20px, .7vw + 16px, 26px); line-height:1.45; letter-spacing:-.003em;
  color:var(--read-ink); margin:0 0 14px; text-wrap:pretty;
}
.read .article-body blockquote:not(.is-style-bur-pull) p:last-of-type{ margin-bottom:0; }
.read .article-body blockquote:not(.is-style-bur-pull) cite{
  display:flex; align-items:center; gap:12px; margin-top:20px;
  font-family:var(--font-mono); font-size:11px; font-style:normal; font-weight:600;
  letter-spacing:.1em; text-transform:uppercase; color:var(--read-muted);
}
.read .article-body blockquote:not(.is-style-bur-pull) cite::before{
  content:""; flex:0 0 26px; height:1px; background:var(--amber);
}
.read .article-body blockquote:not(.is-style-bur-pull) cite strong,
.read .article-body blockquote:not(.is-style-bur-pull) cite b{ color:var(--read-ink); font-weight:700; }
.read .article-body figure{ margin:40px 0; }
.read .article-body figure img,
.read .article-body > img{ border-radius:4px; }
.read .article-body figcaption{
  font-family:var(--font-body); font-size:12.5px; line-height:1.5; color:var(--read-muted); padding:10px 0 0; text-align:left;
}
.read .article-body hr{ border:0; border-top:1px solid var(--read-rule); margin:48px auto; }
.read .article-body table{ font-size:14.5px; }
.read .article-body th{ text-align:left; font-weight:600; color:var(--read-ink); border-bottom:1px solid var(--read-ink); padding:10px 12px 10px 0; }
.read .article-body td{ border-bottom:1px solid var(--read-rule); padding:10px 12px 10px 0; color:var(--read-text); }

/* ---------- after the body ---------- */
.read-tags{ display:flex; flex-wrap:wrap; gap:8px; margin:44px 0 0; }
.read-author{
  display:grid; grid-template-columns:120px minmax(0,1fr); gap:20px;
  border-top:1px solid var(--read-rule); margin-top:48px; padding-top:22px;
}
.read-author .read-sec-lbl{ margin:4px 0 0; }
.read-author-card{ display:flex; gap:16px; align-items:flex-start; }
.read-author-card img{ width:56px; height:56px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.read-author-name{ font-size:16px; font-weight:600; color:var(--read-ink); margin:2px 0 4px; }
.read-author-bio{ font-size:14px; line-height:1.6; color:var(--read-muted); margin:0; }

/* related */
.read-related{ border-top:1px solid var(--read-rule); margin-top:80px; padding-top:40px; }
.read-related-h{
  font-family:var(--font-display); font-weight:400; color:var(--read-ink);
  font-size:clamp(26px, 1vw + 20px, 36px); line-height:1.15; margin:0 0 30px;
}
.read-related-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:28px; }
.read-card{ display:flex; flex-direction:column; min-width:0; color:inherit; }
.read-card-img{ display:block; aspect-ratio:1/1; /* thumbnails are square designed cards */ overflow:hidden; border-radius:4px; background:#E7E1D3; }
.read-card-img img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s cubic-bezier(.32,.72,0,1); }
.read-card:hover .read-card-img img{ transform:scale(1.035); }
.read-card-meta{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin:14px 0 10px; }
.read-card-meta time{ font-size:12px; color:var(--read-muted); white-space:nowrap; }
.read-card-title{
  font-family:var(--font-display); font-size:21px; line-height:1.22; color:var(--read-ink);
  overflow-wrap:break-word; transition:color .15s;
}
.read-card:hover .read-card-title{ color:var(--amber-deep); }

/* previous / next */
.read-pager{
  display:grid; grid-template-columns:1fr 1fr; gap:28px;
  border-top:1px solid var(--read-rule); margin-top:56px; padding-top:24px;
}
.read-pager a{ display:flex; flex-direction:column; gap:6px; min-width:0; color:inherit; }
.read-pager .next{ text-align:right; align-items:flex-end; }
.read-pager .dir{ font-family:var(--font-mono); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--read-muted); }
.read-pager .t{ font-size:16px; font-weight:600; line-height:1.35; color:var(--read-ink); transition:color .15s; }
.read-pager a:hover .t{ color:var(--amber-deep); }

/* ---------- tablet: rail folds away ---------- */
@media (max-width: 1100px){
  .read.has-rail .read-top{ margin-left:auto; margin-right:auto; }
  .read.has-rail .read-grid{ grid-template-columns:minmax(0,1fr); }
  .read-main{ max-width:var(--read-col); }
  .read.has-rail .read-main{ margin:0 auto; width:100%; }
  .read-rail{ display:none; }
}
@media (max-width: 760px){
  .read-top{ margin-bottom:36px; padding-bottom:24px; }
  .read-top .lead{ font-size:15.5px; line-height:1.6; margin-top:16px; }
  .read .article-body p,
  .read .article-body li{ font-size:16px; line-height:1.72; }
  .read .article-body h2{ font-size:21px; margin-top:44px; }
  .read .article-body h3{ font-size:18px; }
  .read-author{ grid-template-columns:1fr; gap:12px; }
  .read-pager{ grid-template-columns:1fr; gap:20px; }
  .read-pager .next{ text-align:left; align-items:flex-start; }
}

/* ---------- phones: the original "Keep reading" row ----------
   Three compact cards side by side (style.css look), shown instead of
   the editorial cards. The date always fits on one line: it sizes to
   its card (container units), never wraps. */
.read-related-phone{ display:none; }
@media (max-width: 760px){
  .read-related{ display:none; }
  .read-related-phone{ display:block; }
  .read-related-phone .rc .body{ container-type:inline-size; }
  .read-related-phone .rc .date{
    font-size:10.5px; font-size:min(10.5px, 10cqi);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.4;
  }
}

