/* ============================================================
   INTERIOR TEMPLATES — Dev C
   ------------------------------------------------------------
   New stylesheet for index.php / page.php / 404.php / search.php.
   The client HTML layout (01-client-html-layout/index.html) is a
   single-page homepage design with no interior-page treatment; these
   rules extend the existing design system (tokens + patterns already
   defined in assets/css/theme.css: .wrap, .sec-head, .eyebrow, section
   rhythm, --ink/--paper/--surface/--brass/--sage/--text-mut/--line,
   --display/--body) to cover generic content pages without introducing
   any new colors, fonts, or visual language.

   theme.css itself is byte-identical to the client source and is never
   edited for this — everything interior-specific lives here instead.
   ============================================================ */

/* ---------- PAGE HEADER (page.php / index.php / search.php) ---------- */
/* Compact banner: 30px/20px are the existing hero/nav padding values
   from theme.css, reused here rather than introducing new spacing. */
.page-header{background:none;border-bottom:0;padding:30px 0 20px}
.page-header .sec-head{margin-bottom:0}
.page-header .sec-head h1{font-size:clamp(2rem,3.8vw,2.9rem);margin:0}
/* The 16px top margin only makes sense as breathing room after an
   eyebrow label; a title-only header sits flush under the banner. */
.page-header .eyebrow + h1{margin-top:16px}

/* Inline variant used for a single post rendered by index.php (no
   dedicated single.php yet — see Phase 2) so the article keeps its own
   heading rhythm without the section padding/border of the top banner. */
.page-header--inline{background:none;border-bottom:0;padding:56px 0 0}

@media(max-width:720px){
  .page-header{padding:30px 0 20px}
}

/* ---------- FEATURED IMAGE ---------- */
.page-feature{margin:0 0 48px}
.page-feature img{width:100%;height:auto;display:block;border-radius:10px;box-shadow:var(--shadow);border:1px solid var(--line)}

/* ---------- CONTENT MEASURE ---------- */
/* Prose is constrained to a comfortable reading measure rather than the
   full 1160px .wrap — 70ch keeps line length readable on wide viewports. */
.content-col{max-width:70ch;margin:0 auto}
.content-col--wide{max-width:100%}

section.page-content{padding:0 0 92px}
@media(max-width:720px){section.page-content{padding:0 0 64px}}

/* When the banner's own <h1> is omitted (the imported content's first
   heading is already the page's <h1> — see page.php), the content
   section loses the banner's bottom padding as breathing room above
   it, so it isn't glued to the nav. */
section.page-content.page-content--flush{padding-top:30px}

/* ---------- ENTRY CONTENT TYPOGRAPHY ---------- */
.entry-content{font-size:1.04rem;color:var(--text-mut)}
.entry-content > *:first-child{margin-top:0}
.entry-content p{margin:0 0 18px}
.entry-content strong,.entry-content b{color:var(--ink);font-weight:700}
.entry-content em,.entry-content i{font-style:italic}
.entry-content a{color:var(--brass);text-decoration:underline;text-underline-offset:2px;text-decoration-color:rgba(169,128,62,.45)}
.entry-content a:hover{text-decoration-color:var(--brass)}

.entry-content h2,.entry-content h3,.entry-content h4{color:var(--ink);margin:2em 0 .6em}
.entry-content h2{font-size:1.7rem}
.entry-content h3{font-size:1.35rem}
.entry-content h4{font-size:1.12rem}
.entry-content > h2:first-child,
.entry-content > h3:first-child,
.entry-content > h4:first-child{margin-top:0}

.entry-content ul,.entry-content ol{margin:0 0 18px 1.3em;color:var(--text-mut)}
.entry-content li{margin-bottom:8px}
.entry-content li > ul,.entry-content li > ol{margin-top:8px}

.entry-content blockquote{
  font-family:var(--display);font-size:1.28rem;font-weight:500;font-style:italic;
  line-height:1.4;color:var(--ink);border-left:3px solid var(--brass);
  padding:6px 0 6px 26px;margin:30px 0
}
.entry-content blockquote p{margin-bottom:10px;color:inherit}
.entry-content blockquote cite{display:block;font-family:var(--body);font-style:normal;font-size:.82rem;
  letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--brass);margin-top:10px}

.entry-content img{max-width:100%;height:auto;border-radius:8px}
.entry-content figure{margin:28px 0}
.entry-content figcaption{font-size:.85rem;color:var(--text-mut);margin-top:8px}

.entry-content hr{border:0;border-top:1px solid var(--line);margin:40px 0}

.entry-content table{width:100%;border-collapse:collapse;margin:0 0 24px;font-size:.94rem}
.entry-content th,.entry-content td{padding:10px 14px;border:1px solid var(--line);text-align:left}
.entry-content th{color:var(--ink);font-weight:700;background:var(--surface)}

.entry-content code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:var(--surface);padding:.15em .4em;border-radius:4px;font-size:.92em}
.entry-content pre{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:18px;overflow-x:auto;margin:0 0 18px}
.entry-content pre code{background:none;padding:0}

/* Imported content (02-old-site export) carries inline white text
   authored for a dark section background that no longer exists in the
   interior template — on the paper background it's invisible (e.g.
   the pull-quote attribution on /meet-dr-locke/). Inline style="" wins
   over any class-based color, so !important is required here to
   remap it to the existing muted-text token instead. */
.entry-content [style*="color: #ffffff"],
.entry-content [style*="color:#ffffff"],
.entry-content [style*="color: #fff;"],
.entry-content [style*="color:#fff;"],
.entry-content [style*="color: #FFFFFF"]{color:var(--text-mut)!important}
.entry-content [style*="color: #ffffff"] strong,
.entry-content [style*="color:#ffffff"] strong,
.entry-content [style*="color: #fff;"] strong,
.entry-content [style*="color:#fff;"] strong,
.entry-content [style*="color: #FFFFFF"] strong,
.entry-content [style*="color: #ffffff"] em,
.entry-content [style*="color:#ffffff"] em,
.entry-content [style*="color: #fff;"] em,
.entry-content [style*="color:#fff;"] em,
.entry-content [style*="color: #FFFFFF"] em{color:inherit}

/* ---------- PAGE LINKS (wp_link_pages) ---------- */
.page-links{margin-top:32px;padding-top:24px;border-top:1px solid var(--line);font-size:.9rem;
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;color:var(--text-mut)}
.page-links a{color:var(--brass);font-weight:700;text-decoration:none}
.page-links a:hover{text-decoration:underline}
.page-links span.current{font-weight:700;color:var(--ink)}

/* ---------- EDIT LINK ---------- */
.edit-link{margin-top:32px}
.edit-link a{font-size:.85rem;color:var(--text-mut);text-decoration:underline;text-underline-offset:2px}
.edit-link a:hover{color:var(--ink)}

/* ---------- ARCHIVE / BLOG LIST (index.php) ---------- */
.archive-list{display:flex;flex-direction:column}
.archive-card{padding:36px 0;border-bottom:1px solid var(--line)}
.archive-card:first-child{padding-top:0}
.archive-thumb{display:block;margin-bottom:18px;border-radius:10px;overflow:hidden;border:1px solid var(--line)}
.archive-thumb img{width:100%;height:auto;display:block}
.archive-title{font-size:1.5rem;margin:0 0 8px}
.archive-title a{text-decoration:none;color:var(--ink)}
.archive-title a:hover{color:var(--brass)}
.archive-meta{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--brass);font-weight:700;margin-bottom:12px}
.archive-excerpt{color:var(--text-mut);font-size:1rem;margin-bottom:12px}
.archive-more{font-size:.86rem;font-weight:700;color:var(--brass);text-decoration:none}
.archive-more:hover{text-decoration:underline}

/* ---------- PAGINATION (the_posts_pagination) ---------- */
.pagination{margin:48px 0 0}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;align-items:center}
.pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 14px;
  border-radius:999px;border:1.5px solid var(--line);color:var(--ink);text-decoration:none;
  font-weight:700;font-size:.9rem;font-family:var(--body)
}
a.page-numbers:hover{border-color:var(--ink)}
.pagination .page-numbers.current{background:var(--brass);border-color:var(--brass);color:#fff}
.pagination .page-numbers.dots{border-color:transparent}

/* ---------- EMPTY / NO-RESULTS STATES (index.php, search.php) ---------- */
.no-results{padding:8px 0 40px}
.no-results h1,.no-results h2{margin-bottom:14px}
.no-results p{color:var(--text-mut);margin-bottom:20px;max-width:60ch}
.no-results .search-form-wrap{margin-top:8px;max-width:480px}

/* ---------- SEARCH ---------- */
.search-count{font-size:.92rem;color:var(--text-mut);margin-bottom:32px}
.search-count strong{color:var(--ink)}

/* WordPress core search form markup (get_search_form()) styled with
   existing tokens; no new visual language introduced. */
.search-form{display:flex;gap:10px;flex-wrap:wrap}
.search-form .search-field{
  flex:1 1 220px;font-family:var(--body);font-size:.96rem;padding:12px 16px;
  border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--ink)
}
.search-form .search-field:focus{outline:2.5px solid var(--brass);outline-offset:2px}
.search-form .search-submit{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  font-family:var(--body);font-weight:700;font-size:.9rem;
  padding:12px 22px;border-radius:999px;background:var(--brass);color:#fff;border:1.5px solid transparent;
  cursor:pointer;transition:transform .18s ease,background .2s ease
}
.search-form .search-submit:hover{background:#8f6a30;transform:translateY(-1px)}

/* ---------- 404 ---------- */
.error-hero{background:var(--ink);color:#fff;padding:110px 0 90px;text-align:center}
.error-hero .eyebrow{color:var(--brass-lt);justify-content:center}
.error-hero .eyebrow::before{background:var(--brass-lt)}
.error-hero .eyebrow.center::after{background:var(--brass-lt)}
.error-hero h1{color:#fff;font-size:clamp(2.4rem,6vw,4rem);margin:20px 0 0}
.error-hero p{color:rgba(255,255,255,.72);max-width:52ch;margin:20px auto 0;font-size:1.06rem}
.error-hero .hero-cta{justify-content:center;margin-top:32px}

.error-links{padding:72px 0}
.error-links .sec-head{max-width:640px;margin:0 auto 40px;text-align:center}
.error-links .sec-head .eyebrow{justify-content:center}
.error-links-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;max-width:900px;margin:0 auto}
.error-links-grid a{
  display:block;padding:18px 20px;border:1px solid var(--line);border-radius:12px;text-decoration:none;
  color:var(--ink);font-weight:700;font-size:.96rem;background:var(--surface);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}
.error-links-grid a:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:transparent}

@media(max-width:720px){
  .error-hero{padding:80px 0 64px}
  .error-links{padding:56px 0}
}

/* ---------- ACCESSIBILITY: screen-reader-only text ---------- */
/* Standard WordPress screen-reader-text pattern. Used by inc/links.php's
   external-link filter to announce "opens in a new window" (WCAG 3.2.5)
   without introducing a visible icon into content typography. */
.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;
  overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important
}
.screen-reader-text:focus{
  background-color:var(--surface);border-radius:8px;box-shadow:var(--shadow);clip:auto!important;
  clip-path:none;color:var(--ink);display:block;font-family:var(--body);font-size:.9rem;font-weight:700;
  height:auto;left:16px;line-height:normal;padding:12px 20px;text-decoration:none;top:16px;width:auto;z-index:100000
}

/* ---------- BLOG CARD GRID (template-parts/blog/card.php, listing.php) ---------- */
/* Card derives from theme.css's .svc pattern (surface background,
   1px line, 12px radius, brass hover lift) rather than inventing a new
   card language — see theme.css .svc-grid/.svc. */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
@media(max-width:940px){.blog-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.blog-grid{grid-template-columns:1fr}}

.blog-card{
  background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;
  display:flex;flex-direction:column;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;position:relative
}
.blog-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:transparent}

.blog-card-media{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--paper)}
.blog-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .32s ease}
.blog-card:hover .blog-card-media img{transform:scale(1.04)}
/* No-image variant: same gradient/monogram treatment as .portrait .mono
   (theme.css) so a post without a featured image still reads as part
   of the design system rather than an empty box. */
.blog-card-media--none{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--surface),var(--paper))}
.blog-card-media-mono{font-family:var(--display);font-size:3.2rem;font-weight:500;color:rgba(16,48,44,.12)}

.blog-card-body{padding:24px 26px 28px;display:flex;flex-direction:column;flex:1}
.blog-card-cat{
  align-self:flex-start;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--brass);text-decoration:none;margin-bottom:10px
}
.blog-card-cat:hover{text-decoration:underline}
.blog-card-title{font-size:1.22rem;margin:0 0 8px;line-height:1.22}
.blog-card-title a{text-decoration:none;color:var(--ink)}
.blog-card-title a:hover{color:var(--brass)}
.blog-card-date{display:block;font-size:.78rem;color:var(--text-mut);margin-bottom:12px}
.blog-card-excerpt{color:var(--text-mut);font-size:.94rem;margin-bottom:14px;flex:1}
.blog-card-more{font-size:.86rem;font-weight:700;color:var(--brass);text-decoration:none;align-self:flex-start}
.blog-card-more:hover{text-decoration:underline}

/* Related-posts row (single.php): same card, a matching 3-up grid. */
.blog-grid--related{grid-template-columns:repeat(3,1fr);margin-top:36px}
@media(max-width:940px){.blog-grid--related{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.blog-grid--related{grid-template-columns:1fr}}

/* ---------- CATEGORY FILTER ROW (template-parts/blog/listing.php) ---------- */
.blog-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:36px}
.blog-filter{
  display:inline-flex;align-items:center;gap:6px;font-size:.86rem;font-weight:700;color:var(--ink);
  padding:8px 16px;border-radius:999px;border:1.5px solid var(--line);text-decoration:none;
  transition:border-color .18s ease,background .18s ease,color .18s ease
}
.blog-filter:hover{border-color:var(--ink)}
.blog-filter.is-active{background:var(--brass);border-color:var(--brass);color:#fff}
.blog-filter-count{font-size:.78rem;opacity:.7}

/* ---------- ARCHIVE DESCRIPTION (archive.php term description) ---------- */
.archive-description{color:var(--text-mut);margin-top:16px;max-width:640px}
.archive-description p{margin:0}

/* ---------- SINGLE POST META (single.php) ---------- */
.entry-meta{display:flex;align-items:center;gap:10px;margin-top:16px;font-size:.86rem;color:var(--text-mut)}
.entry-meta-sep{opacity:.6}
/* The category eyebrow doubles as a link on single.php (page.php/
   archive.php use a plain <span class="eyebrow">) — theme.css's
   .eyebrow never sets text-decoration, so the anchor variant needs its
   own reset here rather than editing the locked rule. */
a.eyebrow{text-decoration:none}
a.eyebrow:hover{color:var(--ink)}

/* ---------- POST TAXONOMY (single.php categories + tags) ---------- */
.entry-taxonomy{margin-top:36px;padding-top:24px;border-top:1px solid var(--line)}
.entry-taxonomy-row{margin-bottom:12px;font-size:.92rem;color:var(--text-mut)}
.entry-taxonomy-row:last-child{margin-bottom:0}
.entry-taxonomy-label{font-weight:700;color:var(--ink);margin-right:8px}
.entry-taxonomy-row.taglist{margin-top:4px}
.entry-taxonomy a{color:var(--brass);text-decoration:none}
.entry-taxonomy a:hover{text-decoration:underline}

/* ---------- PREV / NEXT POST NAVIGATION (single.php) ---------- */
.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:40px;padding-top:24px;border-top:1px solid var(--line)}
.post-nav-link{
  display:flex;flex-direction:column;gap:6px;text-decoration:none;padding:16px 18px;
  border:1px solid var(--line);border-radius:10px;transition:border-color .18s ease,box-shadow .18s ease
}
.post-nav-link:hover{border-color:transparent;box-shadow:var(--shadow)}
.post-nav-next{grid-column:2;text-align:right}
.post-nav-label{font-size:.74rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--brass)}
.post-nav-title{font-family:var(--display);font-size:1.02rem;color:var(--ink)}
@media(max-width:720px){
  .post-nav{grid-template-columns:1fr}
  .post-nav-next{grid-column:1;text-align:left}
}

/* ---------- RELATED POSTS (single.php) ---------- */
.related-posts{padding:72px 0 0;margin-top:60px;border-top:1px solid var(--line)}
@media(max-width:720px){.related-posts{padding-top:56px}}

/* ---------- WORDPRESS ALIGNMENT CLASSES (.entry-content) ----------
   Core alignleft/alignright/aligncenter classes had no rules, so an
   aligned image rendered at full column width. Sizing values below
   (300px max width, 45% cap, 260px mobile, 24px/32px margins) are new
   layout values, not design tokens; colour/shadow/radius reuse existing
   tokens and the .page-feature img treatment. */
.entry-content .alignright{float:right;margin:4px 0 24px 32px;max-width:min(300px,45%);height:auto}
.entry-content .alignleft{float:left;margin:4px 32px 24px 0;max-width:min(300px,45%);height:auto}
.entry-content .aligncenter{display:block;margin:0 auto 24px}
.entry-content img.alignright,
.entry-content img.alignleft{border-radius:8px;box-shadow:var(--shadow);border:1px solid var(--line)}
/* Contain floats so they never bleed past the end of the content. */
.entry-content::after{content:"";display:table;clear:both}
.entry-content h2,.entry-content h3{clear:both}
@media(max-width:720px){
  .entry-content .alignright,
  .entry-content .alignleft{float:none;display:block;margin:0 auto 24px;max-width:260px}
}

/* ---------- PAGE-CONTENT COMPONENTS (/meet-dr-locke/ etc.) ----------
   Classes used inside .entry-content: .logo-wall, .cred-grid, and the
   [dsl_post_grid] blog cards. Tokens only; card treatment derives from
   theme.css .svc (surface, 1px line, 12px radius, 28px padding) minus
   the hover lift. */

/* Institution logo wall. Logos are JPEG/PNG on white; multiply blends
   the white into the tile, grayscale keeps the wall calm until hover. */
.logo-wall{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin:32px 0 48px}
.logo-wall .logo-tile{
  display:flex;align-items:center;justify-content:center;height:96px;padding:18px;
  background:var(--surface);border:1px solid var(--line);border-radius:12px
}
.entry-content .logo-wall img{
  max-height:56px;max-width:100%;width:auto;height:auto;object-fit:contain;
  border-radius:0;box-shadow:none;border:0;
  mix-blend-mode:multiply;filter:grayscale(1);opacity:.8;
  transition:filter .25s ease,opacity .25s ease
}
.logo-wall .logo-tile:hover img{filter:none;opacity:1}
@media(max-width:520px){.logo-wall{grid-template-columns:repeat(2,1fr)}}

/* Credential cards. */
.cred-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin:24px 0 56px}
@media(max-width:720px){.cred-grid{grid-template-columns:1fr}}
.cred-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:28px 26px}
.entry-content .cred-card h3{
  font-family:var(--body);font-weight:700;font-size:.72rem;line-height:1.4;letter-spacing:.22em;
  text-transform:uppercase;color:var(--brass);margin:0 0 14px;clear:none
}
.cred-card p{font-size:1.04rem;color:var(--text-mut);margin:0 0 14px}
.entry-content .cred-card ul{list-style:none;margin:0 0 14px;padding:0}
.entry-content .cred-card li{position:relative;padding-left:20px;margin:0 0 8px;color:var(--ink)}
.entry-content .cred-card li::before{
  content:"";position:absolute;left:0;top:.7em;width:6px;height:6px;border-radius:50%;background:var(--brass)
}
.cred-card > :last-child,.entry-content .cred-card > :last-child{margin-bottom:0}

/* Blog cards rendered by [dsl_post_grid] inside .entry-content. The
   content column is 70ch (~700px), too narrow for 3 cards, so the grid
   is 2-up on desktop and 1-up at <=520px. Overrides undo the
   .entry-content link underline / h2 size, margin and clear leaking in. */
.entry-content .blog-grid{grid-template-columns:repeat(2,1fr);gap:24px;margin:32px 0}
@media(max-width:520px){.entry-content .blog-grid{grid-template-columns:1fr}}
.entry-content .blog-card a,
.entry-content .blog-filters a{text-decoration:none}
.entry-content .blog-card-title{font-size:1.22rem;line-height:1.22;margin:0 0 8px;clear:none}
.entry-content .blog-card-title a{color:var(--ink)}
.entry-content .blog-card-title a:hover{color:var(--brass)}
.entry-content .blog-card-cat,
.entry-content .blog-card-more{color:var(--brass)}
.entry-content .blog-card-cat:hover,
.entry-content .blog-card-more:hover{text-decoration:underline}
.entry-content .blog-card-media img{border-radius:0;box-shadow:none;width:100%;height:100%;object-fit:cover}
.entry-content .blog-card-excerpt,
.entry-content .blog-card-date{margin-bottom:12px}
.entry-content .blog-card-excerpt{font-size:.94rem;margin-bottom:14px}
.entry-content .blog-filter{color:var(--ink)}
.entry-content .blog-filter.is-active{color:#fff}

/* Extra breathing room for a heading that follows a component. */
.logo-wall + h2,.cred-grid + h2,.entry-content .blog-grid + h2{margin-top:56px}

/* ---------- CONTENT COMPONENTS, ROUND 2 (imported pages) ----------
   .lede, .review-grid, .license-grid, .feature-grid, .cta-card,
   .callout, .award. Tokens only; all scoped .entry-content to beat the
   generic .entry-content h2/h3/p/a/img rules. Card treatment matches
   .cred-card (surface, 1px line, 12px radius). Light text on the dark
   .cta-card reuses theme.css #start: #fff headings, rgba(255,255,255,.72)
   body copy. */

/* Intro paragraph. */
.entry-content .lede{font-size:1.15rem;color:var(--ink);max-width:62ch;margin:0 0 28px}

/* Testimonial cards. */
.review-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin:24px 0 56px}
@media(max-width:720px){.review-grid{grid-template-columns:1fr}}
.review-card{
  position:relative;display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:28px
}
/* Restrained opening quote mark, decorative only. */
.review-card::before{
  content:"\201C";position:absolute;top:10px;right:20px;
  font-family:var(--display);font-size:4rem;line-height:1;color:var(--brass-lt);opacity:.22;pointer-events:none
}
.entry-content .review-card .stars{
  display:block;color:var(--brass);font-size:1rem;letter-spacing:.12em;line-height:1;margin-bottom:12px
}
.entry-content .review-card h3{
  font-family:var(--display);font-size:1.2rem;line-height:1.3;color:var(--ink);margin:0 0 10px;clear:none
}
.entry-content .review-card p{color:var(--text-mut);font-size:1rem;margin:0 0 12px}
.entry-content .review-card > :last-child{margin-bottom:0}

/* License cards. */
.license-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin:24px 0 56px}
.license-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px}
.entry-content .license-card h3{
  font-family:var(--display);font-size:1.25rem;line-height:1.25;color:var(--ink);margin:0 0 6px;clear:none
}
.entry-content .license-card p{font-size:.9rem;color:var(--text-mut);margin:0}
/* second line ("Telemedicine only") = small label; values from theme.css .factcard h3 */
.entry-content .license-card p + p{margin-top:8px;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--brass);font-weight:700}

/* Two-column list (e.g. "Types of talk therapy" on /services/): ruled rows, one column on phones. */
.entry-content ul.two-col-list{
  list-style:none;margin:20px 0 56px;padding:0;columns:2;column-gap:40px;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 24px
}
.entry-content ul.two-col-list li{
  break-inside:avoid;margin:0;padding:12px 0 12px 22px;border-bottom:1px solid var(--line);
  position:relative;color:var(--ink);font-weight:600
}
.entry-content ul.two-col-list li::before{content:"";position:absolute;left:0;top:1.15em;width:8px;height:8px;border-radius:50%;background:var(--brass)}
@media(max-width:520px){.entry-content ul.two-col-list{columns:1}}

/* Service links list ("Our services" block repeated on service pages): compact pill links. */
.entry-content ul.service-links{list-style:none;margin:20px 0 56px;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.entry-content ul.service-links li{margin:0}
.entry-content ul.service-links a{
  display:inline-block;padding:9px 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);
  color:var(--ink);text-decoration:none;font-weight:600;font-size:.92rem
}
.entry-content ul.service-links a:hover{border-color:var(--brass);color:var(--brass)}

/* Feature cards. */
.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin:24px 0 56px}
.feature-card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:28px 26px}
.entry-content .feature-card img.feature-icon{
  display:block;width:44px;height:44px;max-width:none;object-fit:contain;
  border-radius:0;box-shadow:none;border:0;margin:0 0 14px;
  /* imported icons are white line art (old site used dark backgrounds): brass badge keeps them visible */
  box-sizing:content-box;padding:12px;background:var(--brass);border-radius:50%
}
.entry-content .feature-card h3{
  font-family:var(--display);font-size:1.15rem;line-height:1.3;color:var(--ink);margin:0 0 8px;clear:none
}
.entry-content .feature-card p{color:var(--text-mut);margin:0 0 12px}
.entry-content .feature-card > :last-child{margin-bottom:0}

/* Call-to-action panel (dark, as #start). */
.entry-content .cta-card{
  background:var(--ink);color:rgba(255,255,255,.72);border-radius:14px;padding:36px;margin:32px 0
}
.entry-content .cta-card h2,
.entry-content .cta-card h3{font-family:var(--display);color:#fff;margin:0 0 12px;clear:none}
.entry-content .cta-card p{color:rgba(255,255,255,.72);margin:0 0 18px}
.entry-content .cta-card strong{color:#fff}
.entry-content .cta-card > :last-child{margin-bottom:0}
.entry-content .cta-card a{color:#fff}
.entry-content .cta-card a.btn{text-decoration:none;color:#fff}
.entry-content .cta-card a.btn-primary:hover{color:#fff}
.entry-content .cta-card a.btn-light{color:var(--ink)}
/* Buttons anywhere in content (e.g. .callout on /hppd/): beat `.entry-content a` brass text. */
.entry-content a.btn{text-decoration:none}
.entry-content a.btn-primary,.entry-content a.btn-primary:hover{color:#fff}
@media(max-width:720px){
  .entry-content .cta-card{padding:28px 22px}
  .entry-content .cta-card a.btn{display:flex;white-space:normal;text-align:center}
}

/* Neutral notice box. */
.entry-content .callout{
  background:var(--surface);border-left:3px solid var(--brass);border-radius:8px;padding:18px 22px;margin:28px 0
}
.entry-content .callout p{color:var(--text-mut);margin:0 0 10px}
.entry-content .callout strong{color:var(--ink)}
.entry-content .callout > :last-child{margin-bottom:0}

/* Award: image + text row. */
.entry-content .award{display:flex;align-items:center;gap:24px;margin:28px 0}
.entry-content .award img{
  flex:0 0 auto;max-width:220px;border-radius:8px;box-shadow:var(--shadow);border:1px solid var(--line)
}
.entry-content .award > :not(img){flex:1 1 0;min-width:0}
.entry-content .award p{margin:0 0 10px}
.entry-content .award > :last-child{margin-bottom:0}
@media(max-width:720px){
  .entry-content .award{flex-direction:column;align-items:flex-start}
  .entry-content .award img{max-width:220px}
}

/* Spacing: tidy after a heading, and 56px before the next h2. */
.entry-content h2 + .review-grid,
.entry-content h2 + .license-grid,
.entry-content h2 + .feature-grid{margin-top:16px}
.entry-content .review-grid + h2,
.entry-content .license-grid + h2,
.entry-content .feature-grid + h2,
.entry-content .cta-card + h2,
.entry-content .callout + h2,
.entry-content .award + h2{margin-top:56px}

/* ---------- LOGO WALL — fix (2026-09-28) ----------
   WordPress's wpautop wraps the inline <span class="logo-tile"> run in <p>
   tags (with <br>s), so the <p>s became the grid items and each tile shrank
   to its content — small logos, big gaps. Unwrap those <p>s, hide the <br>s,
   and lay the tiles out 3 per row (2 on phones), centred so the last row
   doesn't leave an orphan hugging the left edge. Bigger logos. */
.entry-content .logo-wall{display:flex;flex-wrap:wrap;justify-content:center;gap:16px}
.entry-content .logo-wall > p{display:contents}
.entry-content .logo-wall br{display:none}
.entry-content .logo-wall .logo-tile{flex:0 1 calc((100% - 32px) / 3);height:112px;padding:16px 20px}
.entry-content .logo-wall img{max-height:72px;width:100%}
@media(max-width:520px){
  .entry-content .logo-wall .logo-tile{flex-basis:calc((100% - 16px) / 2);height:96px}
  .entry-content .logo-wall img{max-height:56px}
}

/* ---------- DOWNLOAD LINK (forms cards, 2026-09-28) ----------
   Used inside .feature-card on /forms/. Brass, bold, no underline, pinned to
   the card bottom so every card's link lines up. */
.entry-content .feature-card{display:flex;flex-direction:column}
.entry-content .feature-card .download-link{margin-top:auto;padding-top:12px;font-weight:700;color:var(--brass);text-decoration:none}
.entry-content .feature-card .download-link::after{content:" \2193"}
.entry-content .feature-card .download-link:hover{text-decoration:underline}

/* ---------- PAGES: FULL-WIDTH CONTENT (Noor 2026-10-15) ---------- */
/* Page content uses the same .wrap width as the page heading instead of the
   centred 70ch column, which left wide gaps either side. Posts (single.php)
   keep the 70ch reading measure. */
body.page .content-col{max-width:none}
body.page .entry-content .lede{max-width:none}   /* 62ch cap left a gap on the right (about-practice, hppd, licenses, CV) */

/* /forms/: 3 cards per row; the first "Forms" intro card spans the row. */
.entry-content .forms-grid{grid-template-columns:repeat(3,1fr)}
.entry-content .forms-grid > .feature-card:first-child{grid-column:1/-1}
@media(max-width:940px){.entry-content .forms-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.entry-content .forms-grid{grid-template-columns:1fr}}

/* Other images inside page text keep the width they had in the old 70ch
   column (full width blew e.g. an /hppd/ figure up to 1104x1472). Scoped to
   p/figure children so cards, logos, icons and .award images are untouched. */
body.page .entry-content > p > img:not([class*="align"]),
body.page .entry-content > figure > img{max-width:min(100%,70ch)}

/* Page banner photo (the image that opens the content on 14 imported pages:
   service pages, /contact/, /about-practice/, /hppd-help/, how-to-find pages).
   Full width made them ~720px tall; cap at the height the 2.5:1 service banners
   had in the old 699px (70ch) column — 280px — and crop to fill, never squash.
   2nd selector: content scripts' marker comment leaves an empty first <p>. */
body.page .entry-content > p:first-child > img:first-of-type:not([class*="align"]),
body.page .entry-content > p:first-child:empty + p > img:first-of-type:not([class*="align"]){
  width:100%;max-width:100%;max-height:280px;object-fit:cover;object-position:center
}
