/* ============================================================
   P&D LAW — Editorial pages (mockup 2026-10-28)
   The guides library, a guide, and the rows that link to them from the
   home and practice pages. Nothing here is a new look: the page shell and
   labels come from the partner profiles, the ruled columns and their
   accent draw from the services folio, the tinted panel from the home
   page. Long reading gets the primary text colour, never the secondary.
   ============================================================ */

/* ── PAGE SHELL: cream ground under the opaque nav, as on the profiles ── */
.ed {
  background: var(--color-bg);
  padding-top: calc(var(--space-20) + var(--space-8));
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.ed-wrap { max-width: var(--container-lg); }

.ed-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  transition: color var(--duration-fast) var(--ease),
              gap var(--duration-fast) var(--ease);
}
.ed-back:hover { color: var(--color-text); gap: var(--space-3); }
.ed-back span[aria-hidden] { font-size: var(--text-sm); line-height: 1; }

/* Draft notice: only while a page waits for the partners */
.ed-draft {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  background: var(--color-tint);
  border: 1px solid var(--color-accent-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-8);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-charcoal-deep);
}
.ed-draft b {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent-active);
}

.ed-h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  max-width: 26ch;
  text-wrap: balance;
}
.ed-dek {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 60ch;
  margin-top: var(--space-5);
  text-wrap: pretty;
}

/* Small uppercase label, charcoal for contrast (see the profile page note) */
.ed-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-charcoal);
  margin: 0 0 var(--space-3);
}

/* Who reviewed it, when, and what it rests on: the profile's credentials row */
.ed-facts {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-4) var(--space-6);
  max-width: 820px;
}
.ed-facts li {
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--color-text);
}
.ed-facts b {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-charcoal);
  margin-bottom: var(--space-1);
}
.ed-facts a, .ed-prose a, .ed-sources a, .ed-note a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.ed-facts a:hover, .ed-prose a:hover, .ed-sources a:hover, .ed-note a:hover {
  text-decoration-color: currentColor;
}
.ed-pending { color: var(--color-text-secondary); }

/* ── GUIDE LIST: the services folio, one ruled column per guide ── */
.guide-group { margin-top: clamp(var(--space-12), 6vw, var(--space-16)); }
.guide-group .section-heading { font-size: var(--text-2xl); }
.guide-list {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 2.6rem);
}
@media (min-width: 768px) {
  .guide-list {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2.4rem, 4vw, 3.2rem) clamp(3rem, 6vw, 5.5rem);
  }
}
.guide-entry {
  position: relative;
  border-top: 1px solid var(--color-border-strong);
  padding-top: 1.15rem;
}
/* the lead guide is marked by its rule, like the lead practice */
.guide-entry.featured {
  border-top: 2px solid var(--color-accent);
  padding-top: calc(1.15rem - 1px);
}
.guide-entry::after {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.guide-entry.featured::after { top: -2px; }
.guide-entry:hover::after, .guide-entry:focus-within::after { transform: scaleX(1); }
.guide-entry.is-soon::after { display: none; }

.guide-entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.1vw, 1.9rem);
  font-weight: var(--weight-medium);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--color-charcoal-deep);
  margin: 0 0 0.65rem;
  text-wrap: balance;
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.guide-entry:hover .guide-entry-title { color: var(--color-accent-active); }
.guide-entry.is-soon .guide-entry-title { color: var(--color-text-secondary); }
.guide-entry.is-soon:hover .guide-entry-title { color: var(--color-text-secondary); }

/* the whole column opens the guide */
.guide-entry-link { color: inherit; }
.guide-entry-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.guide-entry-link:focus-visible { outline: none; }
.guide-entry:has(.guide-entry-link:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 4px; }

.guide-entry-desc {
  font-size: 0.92rem;
  line-height: 1.66;
  color: var(--color-text-secondary);
  margin: 0 0 0.9rem;
  max-width: 46ch;
}
.guide-entry-meta {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-charcoal);
}

.ed-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-8);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-charcoal);
  transition: color var(--duration-fast) var(--ease), gap var(--duration-fast) var(--ease);
}
.ed-more:hover { color: var(--color-accent-active); gap: var(--space-3); }

/* ── GUIDE PAGE ── */
.ed-body {
  margin-top: clamp(var(--space-8), 4vw, var(--space-10));
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  grid-template-areas: "answer toc" "prose toc";
  grid-template-rows: auto 1fr;
  gap: 0 clamp(var(--space-10), 6vw, var(--space-16));
}
.ed-answer { grid-area: answer; }
.ed-prose { grid-area: prose; min-width: 0; }
.ed-toc { grid-area: toc; position: sticky; top: 6.5rem; align-self: start; }
@media (max-width: 899px) {
  .ed-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "answer" "toc" "prose"; }
  .ed-toc { position: static; margin-top: var(--space-8); }
}

/* The short answer: the home page's one tinted panel */
.ed-answer {
  background: rgba(225, 135, 60, 0.10);
  border-radius: 16px;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  max-width: 66ch;
}
.ed-answer p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-charcoal-deep);
  margin: 0;
  text-wrap: pretty;
}

.ed-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--color-border);
}
.ed-toc a {
  display: block;
  padding: 0.5rem 0 0.5rem var(--space-4);
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--color-text-secondary);
  transition: color 0.2s ease, border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ed-toc a:hover { color: var(--color-text); }
.ed-toc a[aria-current="true"] { color: var(--color-text); border-left-color: var(--color-accent); }
@media (max-width: 899px) { .ed-toc a { padding-block: 0.7rem; } }

.ed-prose { max-width: 66ch; }
.ed-prose h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--color-charcoal-deep);
  margin: clamp(var(--space-10), 5vw, var(--space-12)) 0 var(--space-4);
  scroll-margin-top: 6.5rem;
  text-wrap: balance;
}
.ed-prose p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}
.ed-prose ul {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
.ed-prose ul > li {
  /* the dot sits in the line's left padding: as a flex row, every italic or bold run inside a line became its own
     column (found 23 Nov 2026 on the Airbnb article's third step) */
  position: relative;
  padding-left: calc(4px + 0.75rem);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
}
.ed-prose ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
}
/* A numbered list in an article: the bulleted list's rhythm, the number where the dot sits */
.ed-prose ol {
  list-style: none;
  margin: 0 0 var(--space-5);
  padding: 0;
  display: grid;
  gap: var(--space-3);
  counter-reset: ed-step;
}
.ed-prose ol > li {
  counter-increment: ed-step;
  position: relative;
  padding-left: calc(1.1em + 0.75rem);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
}
.ed-prose ol > li::before {
  content: counter(ed-step) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  color: var(--color-charcoal);
}

/* A diagram that came with the article. Its own ground is white: multiply sets it on the paper like print, with no
   box around it. A tap opens it at full size, for a phone, where its labels are small. */
.ed-fig { margin: var(--space-6) 0 var(--space-8); }
.ed-prose .ed-fig a { display: block; border: 0; text-decoration: none; background: none; }
.ed-fig img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }

.ed-art { color: var(--color-text-secondary); white-space: nowrap; }

/* Zones side by side: hairline table on a computer, one block per row on a phone, where each
   cell carries its column name (the header row is then read only by screen readers) */
.ed-td-label { display: none; }
.ed-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0 var(--space-8);
  font-size: var(--text-sm);
}
.ed-table th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-charcoal);
  padding: 0 var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-strong);
  vertical-align: bottom;
}
.ed-table td {
  padding: var(--space-4) var(--space-4) var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.55;
  color: var(--color-text);
}
.ed-table td:first-child {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: var(--weight-medium);
  line-height: 1.2;
  color: var(--color-charcoal-deep);
}
.ed-table td:first-child small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  color: var(--color-text-secondary);
  margin-top: var(--space-1);
}
@media (max-width: 639px) {
  .ed-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ed-table tr { display: block; border-top: 1px solid var(--color-border-strong); padding: var(--space-4) 0; }
  .ed-table td { display: block; border: 0; padding: var(--space-1) 0; }
  .ed-table td:first-child { padding-bottom: var(--space-2); }
  .ed-td-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-charcoal);
  }
}

/* Questions: the folio rule again, opening in place */
.ed-faq { margin-top: var(--space-6); border-bottom: 1px solid var(--color-border); }
.ed-faq details { border-top: 1px solid var(--color-border); }
.ed-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 44px;
  padding: var(--space-5) 0;
}
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.45rem);
  font-weight: var(--weight-medium);
  line-height: 1.25;
  color: var(--color-charcoal-deep);
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ed-faq summary:hover h3 { color: var(--color-accent-active); }
.ed-faq summary svg {
  flex-shrink: 0;
  color: var(--color-charcoal);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ed-faq details[open] summary svg { transform: rotate(45deg); }
.ed-faq details p { padding: 0 0 var(--space-5); margin: 0; max-width: 62ch; }

.ed-sources {
  margin: var(--space-4) 0 0;
  padding-left: 1.25rem;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.ed-sources li { padding-left: var(--space-1); }
.ed-prose .ed-note {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-secondary);
  max-width: 66ch;
}
.ed-prose .ed-note a { color: var(--color-text); }

/* A band that lines up with the services folio above it */
.ed-band { max-width: 1080px; margin-inline: auto; padding-inline: var(--container-pad); }

/* ── PEOPLE ROW: the partners behind a practice, with the team page's photo treatment ── */
.ed-people {
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 1000px;
}
@media (min-width: 768px) {
  .ed-people { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) clamp(3rem, 6vw, 5.5rem); }
}
.ed-person {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  padding-top: 1.15rem;
  border-top: 1px solid var(--color-border-strong);
}
.ed-person::after {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.ed-person:hover::after, .ed-person:focus-within::after { transform: scaleX(1); }
.ed-person-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}
.ed-person-photo img {
  position: absolute;
  top: var(--ph-top, 0%);
  left: var(--ph-left, 50%);
  width: calc(100% * var(--ph-zoom, 1));
  max-width: none;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  transform: translateX(-50%);
  filter: var(--photo-filter-default);
  transition: var(--photo-transition);
}
.ed-person:hover .ed-person-photo img { filter: var(--photo-filter-hover); }
.ed-person-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.1vw, 1.8rem);
  font-weight: var(--weight-medium);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-charcoal-deep);
  margin: 0 0 var(--space-2);
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ed-person:hover .ed-person-name { color: var(--color-accent-active); }
.ed-person-name a { color: inherit; }
.ed-person-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ed-person-name a:focus-visible { outline: none; }
.ed-person:has(a:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.ed-person-fact { font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--color-text-secondary); margin: 0; }

/* Home and practice pages: a practice card that has its own page opens from anywhere on it */
.card-link { color: inherit; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible { outline: none; }
.service-card:has(.card-link:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 4px; }

/* Closing call: the services pages' CTA band */
.ed-cta { background: var(--color-surface); padding-block: clamp(3rem, 6vw, 5rem); text-align: center; border-top: 1px solid var(--color-border); }
.ed-cta-title { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-light); letter-spacing: var(--tracking-tight); color: var(--color-charcoal); margin-bottom: var(--space-6); line-height: var(--leading-tight); text-wrap: balance; }
.ed-cta p { font-size: var(--text-base); color: var(--color-text-secondary); margin: 0 auto var(--space-8); max-width: 44ch; line-height: var(--leading-relaxed); }

@media (prefers-reduced-motion: reduce) {
  .guide-entry::after, .ed-person::after, .guide-entry-title, .ed-person-name,
  .ed-faq summary svg, .ed-toc a, .ed-back, .ed-more { transition: none; }
}

/* ============================================================
   BLOG (20 Nov 2026). An article opens on a dark photograph with its title, like every main page of the
   site opens on one; under it the text runs wide, from the menu's left edge, with the page list at the
   right edge. On the blog page each article is listed with its photograph.
   ============================================================ */

/* ── The article's opening photograph ── */
.post-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(26rem, 72vh, 46rem);
  overflow: hidden;
  background: var(--color-charcoal-deep);
}
.post-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 70% 50%);
}
/* the scrim sits where the words sit: the lower left */
.post-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(28, 22, 22, 0.90) 0%, rgba(28, 22, 22, 0.55) 38%, rgba(28, 22, 22, 0.12) 72%, rgba(28, 22, 22, 0.40) 100%),
    linear-gradient(to right, rgba(28, 22, 22, 0.55) 0%, rgba(28, 22, 22, 0) 62%);
}
.post-hero-in {
  position: relative;
  z-index: 1;
  padding-top: calc(5rem + var(--space-8));
  padding-bottom: clamp(2.25rem, 5vw, 4rem);
}
.post-hero .ed-back { color: rgba(255, 255, 255, 0.78); margin-bottom: var(--space-4); }
.post-hero .ed-back:hover { color: #fff; }
.post-hero-title {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  line-height: 1.06;
  letter-spacing: var(--tracking-tight);
  color: #fff;
  max-width: 21ch;
  text-wrap: balance;
}

/* ── The article under it: wide, starting at the menu's left edge ── */
.ed--post { padding-top: clamp(2.25rem, 4.5vw, 3.5rem); }
.ed--post .ed-dek { max-width: 47rem; margin-top: 0; }
.ed--post .ed-facts { max-width: 47rem; }
.ed--post .ed-prose { max-width: 47rem; }
.ed--post .ed-body { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); }
.ed--post .guide-group { margin-top: clamp(var(--space-12), 6vw, var(--space-16)); }
/* the author's card and its rule take the reading column: in the shared two-column grid one card stopped half way */
.ed--post .ed-people { grid-template-columns: minmax(0, 1fr); max-width: 47rem; }
@media (min-width: 1100px) {
  .ed--post .ed-prose p, .ed--post .ed-prose ul > li, .ed--post .ed-prose ol > li { font-size: 1.125rem; }
}
/* Text runs edge to edge from a tablet up, as on a printed page. Hyphens keep the gaps between words even;
   a phone's column fits five or six words, where justified lines open wide gaps, so phones keep the left edge. */
@media (min-width: 700px) {
  .ed--post .ed-dek,
  .ed--post .ed-prose p:not(.ed-note),
  .ed--post .ed-prose ul > li,
  .ed--post .ed-prose ol > li {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    /* the browser's own hyphenation, unrestricted: measured 20 Nov, it keeps the widest gap at 9 px (under 2x) on a
       computer; allowing only long words to break pushed gaps past 11 px (2.3-2.5x) */
    text-wrap: wrap;
  }
}
/* Phones too since 23 Nov 2026 (his ask from his own phone: "on the phone add justification for everything even when
   opening the blog, so when I see it open it's fully clean and aligned"). Every paragraph, list line and the closing
   note run to both edges, with hyphenation (never a break after two letters); js/fit-lines.js then closes the widest
   lines: the lead paragraph a few percent in size, every other block a hair of letter spacing, and it sets the title
   across the full width. Headings keep their natural lines. */
@media (max-width: 699px) {
  .ed--post .ed-dek,
  .ed--post .ed-prose p,
  .ed--post .ed-prose ul > li,
  .ed--post .ed-prose ol > li {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    text-wrap: wrap;
    /* a word breaks only with three letters before the hyphen, and never on more than two lines in a row */
    hyphenate-limit-chars: 6 3 2; -webkit-hyphenate-limit-before: 3; -webkit-hyphenate-limit-after: 2;
    -webkit-hyphenate-limit-lines: 2; hyphenate-limit-lines: 2;
  }
  .post-hero-title { max-width: none; text-wrap: pretty; }
}
@media (max-width: 899px) {
  .ed--post .ed-body { grid-template-columns: minmax(0, 1fr); }
}

/* ── An article in a list, with its photograph ── */
.post-entry-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-charcoal-deep);
  margin-bottom: var(--space-5);
}
.post-entry-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 70% 50%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.post-entry:hover .post-entry-photo img { transform: scale(1.025); }
/* the newest article leads the list: photograph and words side by side, across the whole row */
@media (min-width: 768px) {
  .guide-list > .post-entry.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(2rem, 4.5vw, 4.5rem);
    align-items: center;
    padding-top: calc(var(--space-6) - 1px);
  }
  .post-entry.featured .post-entry-photo { margin-bottom: 0; }
  .post-entry.featured .guide-entry-title { font-size: clamp(1.9rem, 2.7vw, 2.6rem); line-height: 1.08; margin-bottom: 0.9rem; }
  .post-entry.featured .guide-entry-desc { font-size: var(--text-base); max-width: 44ch; }
}
/* Every article after the lead is the same row, smaller: photograph left, words right, one hairline across the whole
   list (his ask, 23 Nov 2026: he liked the lead and not the two columns under it, each with its own rule). */
@media (min-width: 768px) {
  .guide-list > .post-entry:not(.featured) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
    gap: clamp(1.75rem, 3.5vw, 3.25rem);
    align-items: center;
    padding-top: var(--space-6);
  }
  .post-entry:not(.featured) .post-entry-photo { margin-bottom: 0; }
  /* the shared "odd last entry" rule (shared.css) would let the last article's line run wider than the others */
  .guide-list > .post-entry:not(.featured) .guide-entry-desc,
  .guide-list > .post-entry:not(.featured):last-child:nth-child(odd) .guide-entry-desc { max-width: 52ch; }
}
/* Phones: under its photograph an article's words run from the photograph's left edge to its right edge (his ask on
   his own phone, 23 Nov 2026: the balanced title stopped short of the picture, the summary was ragged). The summary is
   justified with hyphenation; js/fit-lines.js then nudges each title and summary a few percent in size so its lines
   fill the width with near-normal gaps, and justifies the title. Without the script the title wraps naturally. */
@media (max-width: 767px) {
  .post-entry .guide-entry-title { text-wrap: pretty; }
  .post-entry .guide-entry-desc {
    max-width: none; text-align: justify; -webkit-hyphens: auto; hyphens: auto; text-wrap: wrap;
    /* never break a word after two letters ("op-erating"): words of 7 or more, 3 letters each side */
    hyphenate-limit-chars: 6 3 2; -webkit-hyphenate-limit-before: 3; -webkit-hyphenate-limit-after: 2;
  }
}
/* the author's name in the byline is one short word to tap: a 44px tall tap area, nothing moves */
.ed--post .ed-facts a { display: inline-block; padding-block: 14px; margin-block: -14px; }
/* phones: an article has no answer panel above its page list, so the list starts right under the rule */
@media (max-width: 899px) {
  .ed--post .ed-toc { margin-top: 0; margin-bottom: var(--space-6); }
}
@media (prefers-reduced-motion: reduce) {
  .post-entry-photo img { transition: none; }
  .post-entry:hover .post-entry-photo img { transform: none; }
}
