/*
Theme Name: AltRx Review
Theme URI: https://altrx.sucks
Author: Prototype build
Author URI: https://glp1.sucks
Description: AltRx Review — a tiles-layout healthcare publication theme. Case notes on respiratory care — inhaler technique, step-down, pulmonary rehabilitation and rescue plans that use real numbers. Ships with demo articles and patient stories, all of it fictional. Registers a Patient Story post type and needs no plugins.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: altrx-sucks
Tags: blog, editorial, news, two-columns, custom-menu, featured-images, translation-ready, threaded-comments
*/

/* ============================================================
   Design tokens. Rebranding means editing this block, the logo
   in assets/img, and the strings in inc/demo-data.php.
   ============================================================ */

:root {
  --paper: #F5F8FA;
  --surface: #ffffff;
  --ink: #0F181E;
  --ink-soft: #37454E;
  --muted: #66747D;
  --rule: #D5E0E6;
  --accent: #1D5B80;
  --accent-soft: #E6F0F5;

  --display: "Manrope", Georgia, serif;
  --sans: "Source Serif 4", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 78rem;
  --read: 42rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(140, 29, 51, 0.16); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.25rem;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------------- the marker (signature element) ---------------- */

.tag-illustrative {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.tag-illustrative::before {
  content: "";
  width: 7px; height: 7px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 1px solid var(--accent);
}
.tag-illustrative.compact { font-size: 9.5px; }

/* ---------------- masthead ---------------- */

.masthead {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--rule);
  background: rgba(251, 251, 250, 0.95);
}
.admin-bar .masthead { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .masthead { top: 46px; } }

.masthead .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.brand {
  flex-shrink: 0; text-decoration: none; color: inherit;
  display: flex; align-items: center; gap: 0.7rem;
}
.brand img { width: auto; }


.brand-mark { height: 30px; width: auto; flex: 0 0 auto; }
@media (min-width: 768px) { .brand-mark { height: 34px; } }

.brand-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.brand-name {
  font-family: var(--display); font-weight: 600;
  font-size: 1.4rem; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink); white-space: nowrap;
}
@media (min-width: 768px) { .brand-name { font-size: 1.6rem; } }
.brand-strap {
  font-family: var(--mono); font-size: 8.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); line-height: 1; white-space: nowrap;
}
/* Below this the strapline competes with the nav controls for room. */
@media (max-width: 420px) {
  .brand-strap { display: none; }
  .brand-name { font-size: 1.25rem; }
}

.nav-primary { margin-left: auto; display: none; }
@media (min-width: 1024px) { .nav-primary { display: block; } }
.nav-primary ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-primary a {
  font-size: 14.5px; font-weight: 500; text-decoration: none;
  color: var(--ink-soft); padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.nav-primary a:hover,
.nav-primary .current-menu-item > a { color: var(--ink); border-bottom-color: var(--accent); }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
@media (min-width: 1024px) { .head-actions { margin-left: 0.75rem; } }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--rule); border-radius: 3px;
  background: none; cursor: pointer; color: var(--ink);
  padding: 0.5rem 0.75rem;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color 0.18s;
}
.btn-ghost:hover { border-color: var(--ink); }
.nav-toggle { display: inline-flex; }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.search-inline { display: none; align-items: center; gap: 0.5rem; }
.search-inline.open { display: flex; }
.search-inline input[type="search"] {
  width: 10rem; border: 1px solid var(--rule); border-radius: 3px;
  background: var(--surface); padding: 0.5rem 0.75rem;
  font-family: var(--sans); font-size: 14px;
}
@media (min-width: 640px) { .search-inline input[type="search"] { width: 14rem; } }
.search-inline input:focus { outline: none; border-color: var(--ink); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.drawer.open { display: block; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(21, 23, 26, 0.4); border: 0; width: 100%; cursor: pointer; }
.drawer-panel {
  position: absolute; inset-block: 0; right: 0;
  width: min(22rem, 90vw);
  background: var(--surface);
  overflow-y: auto;
  box-shadow: -12px 0 40px -20px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--rule); padding: 1rem 1.25rem;
}
.drawer-panel nav { padding: 1rem 1.25rem 2rem; }
.drawer-panel nav ul { list-style: none; margin: 0; padding: 0; }
.drawer-panel nav > ul > li > a {
  display: block; padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-size: 1.25rem;
  text-decoration: none; color: var(--ink);
}
.drawer-topics { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* ---------------- buttons ---------------- */

.btn-solid {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 3px; cursor: pointer;
  padding: 0.85rem 1.5rem;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.18s;
}
.btn-solid:hover { opacity: 0.9; }

.link-rule {
  display: inline-block;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.25rem;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  transition: color 0.18s, border-color 0.18s;
}
.link-rule:hover { color: var(--accent); border-color: var(--accent); }

.link-underline {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.25s ease;
}
.link-underline:hover { background-size: 100% 1px; }

/* ---------------- section headings ---------------- */

.section { padding: 4rem 0; }
.section-tight { padding: 0 0 4rem; }
.section-alt { background: var(--surface); border-block: 1px solid var(--rule); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1rem 2rem;
  border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem;
}
.section-head h2 { margin-top: 0.75rem; font-size: clamp(1.9rem, 3vw, 2.25rem); line-height: 1.15; }
.section-head p { margin: 0.75rem 0 0; max-width: 56ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }

.cat-link {@media (min-width: 768px) 
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
}
.cat-link:hover { text-decoration: underline; }

.byline { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.75rem; }
.byline img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.byline-text { font-family: var(--mono); font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.byline-text strong { color: var(--ink); font-weight: 500; }

/* ---------------- card grid ---------------- */

.grid { display: grid; gap: 3rem 2rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; height: 100%; }
.card-media { display: block; overflow: hidden; background: var(--accent-soft); }
.card-media img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; flex: 1; padding-top: 1.25rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.card-meta .mins { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 0.65rem 0 0; font-size: 1.45rem; line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card p.excerpt { margin: 0.65rem 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.card-foot { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; padding-top: 1.25rem; }
.card-foot img { width: 1.75rem; height: 1.75rem; border-radius: 50%; }
.card-foot span { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---------------- patient story cards ---------------- */

.story-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .story-grid { grid-template-columns: repeat(3, 1fr); } }

.story-card {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--rule); background: var(--surface);
  overflow: hidden; transition: border-color 0.2s;
}
.story-card:hover { border-color: rgba(21, 23, 26, 0.3); }

/* The photo is a banner, not a thumbnail. An environmental shot squeezed
   into a small circle reads as a dark smudge and carries no information. */
.story-card-media { display: block; overflow: hidden; background: var(--accent-soft); }
.story-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s ease; }
.story-card:hover .story-card-media img { transform: scale(1.03); }

.story-card-head { display: flex; align-items: flex-start; gap: 1rem; padding: 1.35rem 1.5rem 0; }
.story-card h3 { font-size: 1.15rem; line-height: 1.25; }
.story-card h3 a { text-decoration: none; }
.journey {
  margin: 0.35rem 0 0;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.story-card blockquote {
  margin: 1.25rem 1.5rem 0; padding-left: 1rem;
  border-left: 2px solid var(--accent);
  font-family: var(--display); font-size: 1.0625rem; line-height: 1.35; color: var(--ink);
}
.story-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-top: auto; padding: 1.5rem;
}
.story-card-foot a {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.story-card-foot a:hover { color: var(--accent); }

/* ---------------- topic chips ---------------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-block;
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.11em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-soft);
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------------- topic list ---------------- */

.topic-grid { display: grid; gap: 0.5rem 2.5rem; }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .topic-grid { grid-template-columns: repeat(3, 1fr); } }
.topic {
  display: block; text-decoration: none;
  border-top: 2px solid var(--ink); padding: 1.25rem 0;
  transition: border-color 0.18s;
}
.topic:hover { border-color: var(--accent); }
.topic-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.topic h3 { font-size: 1.2rem; line-height: 1.2; transition: color 0.18s; }
.topic:hover h3 { color: var(--accent); }
.topic .count { font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); }
.topic p { margin: 0.5rem 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* ---------------- page headers ---------------- */

.page-head { border-bottom: 1px solid var(--rule); background: var(--surface); padding: 2.5rem 0; }
@media (min-width: 1024px) { .page-head { padding: 3.5rem 0; } }
.page-head h1 { margin-top: 0.75rem; font-size: clamp(2.4rem, 4.5vw, 3rem); line-height: 1.1; }
.page-head .standfirst { margin: 1rem 0 0; max-width: 58ch; font-size: 1.125rem; line-height: 1.6; color: var(--ink-soft); }

.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.25rem 0.5rem; list-style: none; margin: 0; padding: 0;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--rule); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* Listing banner. Wide and shallow so it reads as a masthead band rather than
   competing with the article covers in the grid below it. */
.page-banner { margin: 2rem 0 0; overflow: hidden; background: var(--accent-soft); }
.page-banner img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 680px) { .page-banner img { aspect-ratio: 16 / 9; } }

/* ---------------- article ---------------- */

.article-head { border-bottom: 1px solid var(--rule); background: var(--surface); }
.article-head .inner { padding: 2.5rem 0; }
@media (min-width: 1024px) { .article-head .inner { padding: 3.5rem 0; } }
.article-head h1 {
  margin: 1rem 0 0; max-width: 19ch;
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.02;
}
.article-head .standfirst { margin: 1.5rem 0 0; max-width: 56ch; font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); }
.article-head-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }
.article-head-meta .byline { margin-top: 0; }
.article-cover { margin: 0; padding-bottom: 2.5rem; }
@media (min-width: 1024px) { .article-cover { padding-bottom: 3.5rem; } }
.article-cover img { width: 100%; object-fit: cover; }

.article-layout { display: grid; gap: 3rem; padding: 3rem 0; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 13rem minmax(0, var(--read)) 1fr; gap: 4rem; padding: 4rem 0; }
}

.toc { order: 2; }
@media (min-width: 1024px) { .toc { order: 1; position: sticky; top: 7rem; align-self: start; } }
.toc ol { list-style: none; margin: 1rem 0 0; padding: 0; border-left: 1px solid var(--rule); }
.toc a {
  display: block; margin-left: -1px;
  border-left: 2px solid transparent; padding-left: 1rem;
  font-size: 14px; line-height: 1.35; color: var(--ink-soft); text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}
.toc a:hover { border-color: var(--accent); color: var(--ink); }

.article-body { order: 1; }
@media (min-width: 1024px) { .article-body { order: 2; } }
.article-aside { order: 3; }

.prose p { margin: 0 0 1.5rem; font-size: 1.125rem; line-height: 1.72; color: var(--ink-soft); }
.prose > p:first-of-type::first-letter {
  float: left; font-family: var(--display); font-weight: 600;
  font-size: 4.25rem; line-height: 0.78;
  padding: 0.35rem 0.6rem 0 0; color: var(--accent);
}
.prose h2 { margin-top: 3rem; font-size: 1.6rem; line-height: 1.2; scroll-margin-top: 7rem; }
.prose h3 { margin-top: 2.25rem; font-size: 1.2rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.35rem; font-size: 1.0625rem; line-height: 1.6; color: var(--ink-soft); }
.prose li + li { margin-top: 0.65rem; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 2px; }
.prose img { margin: 1.5rem 0; }

/* Fallback rhythm for element types without an explicit margin above (figure,
   table, embeds). Note the low specificity: `*` contributes nothing, so this
   selector scores (0,1,0) and cannot override a rule like `.prose p` at
   (0,1,1) — which is why paragraphs and lists carry their own margin instead
   of relying on this. */
.prose > * + * { margin-top: 1.5rem; }
.prose > *:last-child { margin-bottom: 0; }

.prose blockquote.pull {
  margin: 2.25rem 0; padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--accent);
}
.prose blockquote.pull p {
  margin: 0 !important; font-family: var(--display);
  font-size: 1.4rem; line-height: 1.32; color: var(--ink);
}
.prose blockquote.pull cite {
  display: block; margin-top: 0.75rem;
  font-family: var(--mono); font-size: 10.5px;
  font-style: normal; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted);
}

.prose .callout {
  margin: 2.5rem 0; padding: 1.25rem;
  border: 1px solid rgba(140, 29, 51, 0.25);
  background: var(--accent-soft);
}
.prose .callout .tag {
  margin: 0 !important; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.prose .callout .tag::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; margin-right: 0.4rem;
  transform: rotate(45deg); border: 1px solid var(--accent);
}
.prose .callout p + p { margin: 0.6rem 0 0 !important; font-size: 14.5px; line-height: 1.6; }

.prose .questions {
  margin: 2.5rem 0; border-top: 2px solid var(--ink); padding-top: 1.25rem;
}
.prose .questions ul { list-style: none; margin: 1rem 0 0 !important; padding: 0; }
.prose .questions li {
  position: relative; padding-left: 1.5rem;
  font-size: 1.0625rem; line-height: 1.4; color: var(--ink);
}
.prose .questions li::before {
  content: ""; position: absolute; left: 0; top: 0.45rem;
  width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--accent);
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.tag-list a {
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.tag-list a:hover { border-color: var(--ink); color: var(--ink); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2.5rem; }
.share a, .share button {
  border: 1px solid var(--rule); border-radius: 999px;
  background: none; cursor: pointer;
  padding: 0.4rem 0.9rem;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }

.author-card { display: flex; gap: 1.25rem; margin-top: 3rem; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.author-card img { width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: 0 0 auto; }
.author-card h2 { margin-top: 0.4rem; font-size: 1.15rem; }
.author-card p { margin: 0.5rem 0 0; max-width: 52ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

.factbox {
  border: 1px solid var(--rule); background: var(--surface); padding: 1.35rem;
}
@media (min-width: 1024px) { .factbox { position: sticky; top: 7rem; } }
.factbox img { width: 3.4rem; height: 3.4rem; border-radius: 50%; margin-bottom: 0.9rem; }
.factbox dl { margin: 1rem 0 0; font-family: var(--mono); font-size: 12.5px; }
.factbox dt { color: var(--muted); }
.factbox dd { margin: 0.15rem 0 0.9rem; color: var(--ink); }

.disclaimer-box { border: 1px solid var(--rule); background: var(--surface); padding: 1.25rem 1.5rem; }
.disclaimer-box p { margin: 0.6rem 0 0; max-width: 68ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.disclaimer-box a { color: var(--accent); }

.notice-box {
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  padding: 1rem 1.25rem;
  max-width: 62ch;
}
.notice-box p { margin: 0.5rem 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

/* ---------------- story page ---------------- */

.story-head-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .story-head-grid { grid-template-columns: 1fr auto; gap: 4rem; } }
.story-portrait { width: 100%; max-width: 22rem; aspect-ratio: 16 / 10; object-fit: cover; order: -1; }
@media (min-width: 1024px) { .story-portrait { width: 22rem; order: 0; } }
.story-quote {
  margin: 2rem 0 0; max-width: 46ch; padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--display); font-size: 1.5rem; line-height: 1.3; color: var(--ink);
}

/* ---------------- pagination ---------------- */

.pagination { margin-top: 3.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pagination .page-numbers {
  border: 1px solid var(--rule); border-radius: 3px;
  padding: 0.65rem 1rem;
  font-family: var(--mono); font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-decoration: none; color: var(--ink);
}
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.empty { padding: 4rem 1rem; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ---------------- newsletter ---------------- */

.newsletter { padding: 3.5rem 0; }
.newsletter-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 768px) { .newsletter-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; } }
.newsletter h2 { margin-top: 0.75rem; font-size: clamp(1.9rem, 3vw, 2.25rem); }
.newsletter p.blurb { margin: 1rem 0 0; max-width: 46ch; color: var(--ink-soft); }
.newsletter form { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .newsletter form { flex-direction: row; } }
@media (min-width: 768px) { .newsletter .form-col { padding-top: 2.75rem; } }
.newsletter input[type="email"] {
  flex: 1; width: 100%;
  border: 1px solid var(--rule); border-radius: 3px;
  background: var(--surface); padding: 0.85rem 1rem;
  font-family: var(--sans); font-size: 15px;
}
.newsletter input:focus { outline: none; border-color: var(--ink); }
.form-note { margin-top: 0.75rem; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------------- footer ---------------- */

.site-footer { margin-top: 6rem; border-top: 1px solid var(--rule); background: var(--surface); }
.footer-grid { display: grid; gap: 2.5rem; border-top: 1px solid var(--rule); padding: 3.5rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } }
.footer-grid .brand { gap: 0.7rem; }
.footer-grid .brand-mark { height: 34px; }
.footer-grid img.logo { height: 2.5rem; width: auto; }
.footer-grid .about { margin: 1rem 0 0; max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.footer-grid h2 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer-grid ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.footer-grid li + li { margin-top: 0.65rem; }
.footer-grid ul a { font-size: 15px; color: var(--ink-soft); text-decoration: none; }
.footer-grid ul a:hover { color: var(--ink); text-decoration: underline; }

.footer-legal { border-top: 1px solid var(--rule); padding: 2rem 0; }
.footer-legal p { margin: 0; max-width: 70ch; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.footer-legal p strong { color: var(--ink); font-weight: 500; }
.footer-legal ul {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }

/* ---------------- comments & misc WP ---------------- */

.comments-area { margin-top: 3rem; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.comment-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.comment-list li { border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem; margin-bottom: 1.25rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.sticky, .bypostauthor { }


/* ---------------- home banner + latest listing ---------------- */

.home-banner { position: relative; overflow: hidden; background: var(--ink); }
.home-banner img { width: 100%; object-fit: cover; display: block; }
.home-banner-caption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 2rem 0; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
}
.home-banner-caption .wrap { max-width: var(--wrap); }
.home-banner-caption h1 {
  margin: .5rem 0 0; color: #fff;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.06; max-width: 20ch;
}
.home-banner-caption p { margin: .75rem 0 0; max-width: 52ch; color: rgba(255,255,255,.88); font-size: 1.0625rem; }
.home-banner-caption .eyebrow { color: rgba(255,255,255,.75); }

.latest-rows { display: flex; flex-direction: column; gap: 2.5rem; }
.latest-row { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 760px) { .latest-row { grid-template-columns: 20rem 1fr; gap: 2rem; } }
.latest-row-media { display: block; overflow: hidden; background: var(--accent-soft); }
.latest-row-media img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform .5s ease; }
.latest-row:hover .latest-row-media img { transform: scale(1.03); }
.latest-kicker {
  margin: 0 0 .5rem; display: flex; gap: .75rem; align-items: baseline;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent);
}
.latest-kicker span { color: var(--muted); }
.latest-row h3 { font-size: 1.5rem; line-height: 1.18; margin: 0; }
.latest-row h3 a { text-decoration: none; }
.latest-excerpt { margin: .7rem 0 0; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
.latest-more {
  display: inline-block; margin-top: .9rem;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; color: var(--accent);
}
.latest-more:hover { text-decoration: underline; }

.latest-tiles { display: grid; gap: 1.5rem; }
@media (min-width: 640px)  { .latest-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .latest-tiles { grid-template-columns: repeat(4, 1fr); } }
.latest-tiles .card { border: 1px solid var(--rule); background: var(--surface); }
.latest-tiles .card-body { padding: 1.1rem 1.15rem .4rem; }
.latest-tiles .card h3 { font-size: 1.1rem; }
.latest-tiles .card-meta { padding: 1rem 1.15rem 1.15rem; }

.latest-all { margin-top: 2.5rem; }


/* .ti-banner img { height: clamp(17rem, 44vh, 27rem); } */




.blog-explore-section {
    width: 100%;
    background: #ffffff;
    padding: 70px 20px 75px;
    box-sizing: border-box;
}

.blog-explore-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    box-sizing: border-box;
}

.blog-explore-label {
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #536271;
    margin-bottom: 38px;
}

.blog-explore-section h2 {
    margin: 0 0 30px;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.3;
    color: #101820;
}

.blog-explore-description {
    max-width: 850px;
    margin: 0 0 45px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
    color: #52606d;
}


/* Latest 4 blogs */

.blog-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 900px;
}

.blog-latest-item {
    min-height: 76px;
    padding: 18px 25px;
    background: #e5e5e5;
    color: #111820;
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 18px;

    box-sizing: border-box;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.blog-latest-item:hover {
    background: #dcdcdc;
    color: #111820;
    transform: translateY(-2px);
}

.blog-item-icon {
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-item-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 400;
}


/* View all button */

.view-all-articles {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;

    margin-top: 32px;
    padding: 20px 32px;

    background: #3498ed;
    color: #ffffff;

    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.view-all-articles:hover {
    background: #2388dc;
    color: #ffffff;
    transform: translateY(-1px);
}

.view-all-articles svg {
    flex-shrink: 0;
}


/* Mobile */

@media (max-width: 767px) {

    .blog-explore-section {
        padding: 50px 20px 55px;
    }

    .blog-explore-label {
        font-size: 12px;
        letter-spacing: 3px;
        margin-bottom: 25px;
    }

    .blog-explore-section h2 {
        font-size: 25px;
        margin-bottom: 22px;
    }

    .blog-explore-description {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .blog-latest-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .blog-latest-item {
        min-height: 65px;
        padding: 16px 18px;
    }

    .blog-item-title {
        font-size: 16px;
    }

    .view-all-articles {
        width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        padding: 18px 20px;
    }
}


main{
	padding:0px 20px;
}

.custom-logo{
	width:100px !important;
}



.brand-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-tagline {
    display: block;
    margin-top: 3px;
    margin-left: 2px;

    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 2.5px;
    line-height: 1.2;

    color: #65727d;
    text-transform: uppercase;
}


.disclaimer-box{
	display:none !important;
}



.patients-section {
    margin-top: 2.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbfc 100%);
    border-radius: 24px;
    padding: 55px 50px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(20, 90, 100, 0.08);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.06);
}

/* Subtle decorative glow */
.patients-section::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(32, 139, 150, 0.06);
    top: -140px;
    right: -80px;
}

.patients-section::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(32, 139, 150, 0.04);
    bottom: -100px;
    left: -60px;
}

.patients-inner {
    max-width: 900px;
    margin: auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.patients-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #238b95;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 18px;
}

.label-line {
    width: 28px;
    height: 2px;
    background: #238b95;
    border-radius: 5px;
}

.patients-inner h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -1.2px;
    color: #18383d;
}

.patients-inner h2 span {
    color: #238b95;
}

.patients-description {
    max-width: 760px;
    margin: 22px auto 0;
    color: #66777a;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
}

.patients-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.patients-divider span {
    width: 75px;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        #cbdfe1
    );
}

.patients-divider span:last-child {
    background: linear-gradient(
        to left,
        transparent,
        #cbdfe1
    );
}

.quote-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef8f9;
    color: #238b95;
    font-size: 28px;
    font-family: Georgia, serif;
}

/* Mobile */
@media (max-width: 768px) {
    .patients-section {
        padding: 40px 22px;
        border-radius: 20px;
    }

    .patients-inner h2 {
        font-size: 32px;
    }

    .patients-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .patients-divider span {
        width: 45px;
    }
}



.brand-logo-wrapper {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.brand-logo-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand-mark {
	display: block;
	width: 56px;
	height: 46px;
	object-fit: contain;
}

.brand-name {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 30px;
	font-weight: 600;
	line-height: 1;
	color: #123b5d;
	white-space: nowrap;
}

.brand-tagline {
	display: block;
	margin-top: 5px;
	margin-left: 2px;

	font-family: Arial, Helvetica, sans-serif;
	font-size: 9px;
	font-weight: 400;
	letter-spacing: 2.5px;
	line-height: 1.3;
	text-transform: uppercase;

	color: #65727d;
	white-space: nowrap;
}