/* Pharmacy: Elmfield, an invented independent community pharmacy. Clinical white, a calm teal green and clear sans serif type. Repeat prescriptions, services and opening hours are the three jobs. */

.ph-page {
  --ph-canvas: #f8fbfa;
  --ph-surface: #ffffff;
  --ph-band: #eaf4f1;
  --ph-ink: #10221d;
  --ph-muted: #475b55;
  --ph-line: #d5e4df;
  --ph-line-strong: #71877f;
  --ph-accent: #0b6b5a;
  --ph-accent-hover: #085244;
  --ph-on-accent: #ffffff;
  --ph-tint: #dbefe9;
  --ph-success: #0b6b3c;
  --ph-danger: #b3261e;
  --ph-focus: #0b6b5a;
  --ph-head: "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --ph-body: "Segoe UI", system-ui, sans-serif;
  --ph-r: 10px;

  background: var(--ph-canvas);
  color: var(--ph-ink);
  font-family: var(--ph-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Dark mode, the default (PRD section 13.10): dark slate with mint. Only this template's
   tokens change. */
@media screen {
  :root[data-theme="dark"] .ph-page {
    --ph-canvas: #0a1311;
    --ph-surface: #111d1a;
    --ph-band: #0d1815;
    --ph-ink: #e5f2ee;
    --ph-muted: #a1b8b1;
    --ph-line: #213430;
    --ph-line-strong: #6a857d;
    --ph-accent: #6fdcc3;
    --ph-accent-hover: #9be8d6;
    --ph-on-accent: #03271f;
    --ph-tint: #163029;
    --ph-success: #7fe0a8;
    --ph-danger: #ff8a80;
    --ph-focus: #6fdcc3;
    color-scheme: dark;
  }
}

.ph-page [hidden] { display: none !important; }
:where(.ph-page) :is(p, h1, h2, h3, h4, ul, ol, dl, dd, fieldset, figure, blockquote) { margin: 0; }
:where(.ph-page) :is(ul, ol) { padding: 0; list-style: none; }
:where(.ph-page) fieldset { padding: 0; border: 0; min-width: 0; }
:where(.ph-page) a { color: var(--ph-accent); }
:where(.ph-page) :is(h1, h2, h3, h4) { color: inherit; }
.ph-page :focus-visible { outline: 3px solid var(--ph-focus); outline-offset: 2px; }
.ph-page :is(input[type="range"], input[type="checkbox"], input[type="radio"]) { accent-color: var(--ph-accent); }
html:has(.ph-page) { scroll-behavior: smooth; }
.ph-page section[id] { scroll-margin-top: 72px; }
.ph-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.ph-header { position: sticky; top: 0; z-index: 20; background: var(--ph-canvas); border-bottom: 1px solid var(--ph-line); }
.ph-header-in { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.ph-logo { display: flex; align-items: center; gap: 10px; font: 700 1.2rem/1.1 var(--ph-head); color: var(--ph-ink) !important; text-decoration: none; }
.ph-logo-mark { width: 30px; height: 30px; flex: none; fill: var(--ph-tint); stroke: var(--ph-accent); stroke-width: 2; stroke-linejoin: round; }
.ph-nav { margin-left: auto; }
.ph-nav ul { display: flex; gap: 22px; }
.ph-nav a { color: var(--ph-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.ph-nav a:hover { color: var(--ph-accent); text-decoration: underline; text-underline-offset: 4px; }
.ph-menu-btn { display: none; }
.ph-theme-btn {
  display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--ph-line-strong); border-radius: var(--ph-r); background: transparent; color: inherit; font-size: 1.15rem; cursor: pointer;
}
.ph-theme-btn:hover { background: var(--ph-tint); }

.ph-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border: 2px solid var(--ph-accent); border-radius: var(--ph-r); font: 700 1rem/1.2 var(--ph-head); text-decoration: none; cursor: pointer; text-align: center;
}
.ph-btn--fill { background: var(--ph-accent); color: var(--ph-on-accent) !important; }
.ph-btn--fill:hover { background: var(--ph-accent-hover); border-color: var(--ph-accent-hover); }
.ph-btn--line { background: transparent; color: var(--ph-accent) !important; }
.ph-btn--line:hover { background: var(--ph-tint); }
.ph-btn--big { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.ph-btn:disabled { background: var(--ph-band); border-color: var(--ph-line-strong); color: var(--ph-muted) !important; cursor: not-allowed; }

.ph-eyebrow { font-weight: 700; color: var(--ph-accent); font-size: .92rem; letter-spacing: .02em; }
.ph-title { font: 700 clamp(1.7rem, 3.4vw, 2.4rem)/1.15 var(--ph-head); }
.ph-sub { color: var(--ph-muted); margin-top: 8px; max-width: 64ch; }
.ph-head { margin-bottom: 26px; }
.ph-sec { padding: 72px 0; }
.ph-band { background: var(--ph-band); }
.ph-muted { color: var(--ph-muted); }
.ph-small { font-size: .9rem; color: var(--ph-muted); }

.ph-hero { padding: 64px 0 56px; }
.ph-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.ph-hero-title { font: 700 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--ph-head); margin-top: 10px; }
.ph-lede { font-size: 1.15rem; color: var(--ph-muted); margin-top: 16px; max-width: 54ch; }
.ph-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ph-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--ph-muted); font-size: .95rem; }
.ph-facts strong { color: var(--ph-ink); }
.ph-panel { padding: 24px; background: var(--ph-surface); border: 1px solid var(--ph-line); border-radius: calc(var(--ph-r) + 4px); box-shadow: 0 24px 40px -30px var(--color-shadow); }
.ph-panel-title { font: 700 1.1rem var(--ph-head); margin-bottom: 12px; }

.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.ph-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ph-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--ph-surface); border: 1px solid var(--ph-line); border-radius: var(--ph-r); }
.ph-card h3 { font: 700 1.15rem/1.25 var(--ph-head); }
.ph-card p { color: var(--ph-muted); font-size: .96rem; }
.ph-card .ph-btn { margin-top: auto; align-self: flex-start; }
.ph-card.is-on { border: 2px solid var(--ph-accent); }
.ph-art { height: 120px; margin: -22px -22px 6px; border-radius: var(--ph-r) var(--ph-r) 0 0; background: var(--ph-tint); position: relative; overflow: hidden; }
.ph-art::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 18%; top: 22%; background: var(--ph-canvas); opacity: .7; }
.ph-price { font: 700 1.5rem var(--ph-head); color: var(--ph-ink); }
.ph-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ph-line-strong); font-size: .82rem; font-weight: 600; color: var(--ph-ink); }
.ph-badge--on { background: var(--ph-tint); border-color: var(--ph-accent); }
.ph-badge--bad { border-color: var(--ph-danger); color: var(--ph-danger); }
.ph-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--ph-muted); }

.ph-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ph-chip { min-height: 42px; padding: 0 16px; border: 1px solid var(--ph-line-strong); border-radius: 999px; background: var(--ph-surface); color: var(--ph-ink); font: 600 .95rem var(--ph-body); cursor: pointer; }
.ph-chip:hover { border-color: var(--ph-accent); }
.ph-chip[aria-pressed="true"] { background: var(--ph-accent); border-color: var(--ph-accent); color: var(--ph-on-accent); }
.ph-count { font-weight: 600; margin-bottom: 14px; }
.ph-empty { padding: 28px; text-align: center; border: 1px dashed var(--ph-line-strong); border-radius: var(--ph-r); }

.ph-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; counter-reset: st; }
.ph-steps li { padding: 22px; background: var(--ph-surface); border: 1px solid var(--ph-line); border-radius: var(--ph-r); counter-increment: st; }
.ph-steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: var(--ph-accent); color: var(--ph-on-accent); font-weight: 700; }
.ph-steps h3 { font: 700 1.1rem var(--ph-head); }
.ph-steps p { color: var(--ph-muted); font-size: .95rem; margin-top: 4px; }

.ph-table { width: 100%; border-collapse: collapse; background: var(--ph-surface); border: 1px solid var(--ph-line); border-radius: var(--ph-r); overflow: hidden; }
.ph-table th, .ph-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--ph-line); vertical-align: top; }
.ph-table th { font-size: .88rem; color: var(--ph-muted); background: var(--ph-band); }
.ph-table td.ph-num, .ph-table th.ph-num { text-align: right; font-variant-numeric: tabular-nums; }

.ph-meter { height: 10px; border-radius: 999px; background: var(--ph-line); overflow: hidden; }
.ph-meter span { display: block; height: 100%; background: var(--ph-accent); border-radius: inherit; }
.ph-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.ph-stat strong { display: block; font: 700 2rem/1.1 var(--ph-head); }
.ph-stat span { color: var(--ph-muted); font-size: .92rem; }

.ph-faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.ph-qs details { border-bottom: 1px solid var(--ph-line); }
.ph-qs summary { padding: 16px 0; font-weight: 700; cursor: pointer; }
.ph-qs p { padding: 0 0 16px; color: var(--ph-muted); }

.ph-form { max-width: 760px; margin-inline: auto; padding: 32px; background: var(--ph-surface); border: 1px solid var(--ph-line); border-radius: calc(var(--ph-r) + 4px); display: flex; flex-direction: column; gap: 18px; }
.ph-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ph-field--full { grid-column: 1 / -1; }
.ph-field label, .ph-field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.ph-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--ph-line-strong); border-radius: calc(var(--ph-r) - 2px); background: var(--ph-canvas); color: var(--ph-ink); font: 1rem var(--ph-body); }
.ph-field textarea { min-height: 110px; resize: vertical; }
.ph-field :is(input, select, textarea)[aria-invalid="true"] { border: 2px solid var(--ph-danger); }
.ph-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.ph-check input { width: 20px; min-height: 20px; height: 20px; margin-top: 3px; accent-color: var(--ph-accent); }
.ph-hint { font-size: .88rem; color: var(--ph-muted); margin-top: 6px; }
.ph-error { color: var(--ph-danger); font-weight: 600; font-size: .92rem; margin-top: 6px; }
.ph-error::before { content: "! "; }
.ph-status { font-weight: 600; }
.ph-status.is-ok { padding: 14px 16px; border-radius: calc(var(--ph-r) - 2px); background: var(--ph-tint); border-left: 4px solid var(--ph-success); }

.ph-footer { padding: 28px 0; border-top: 1px solid var(--ph-line); color: var(--ph-muted); font-size: .92rem; }
.ph-footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .ph-header-in { flex-wrap: wrap; gap: 10px; }
  .ph-theme-btn { margin-left: auto; }
  .ph-menu-btn {
    display: inline-flex; align-items: center; order: 3; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--ph-line-strong); border-radius: var(--ph-r); background: transparent; color: var(--ph-ink); font: 600 .95rem var(--ph-body); cursor: pointer;
  }
  .ph-nav { display: none; order: 5; width: 100%; margin: 0; }
  .ph-nav.is-open { display: block; padding-bottom: 12px; }
  .ph-nav ul { flex-direction: column; gap: 0; }
  .ph-nav a { display: block; padding: 12px 0; border-top: 1px solid var(--ph-line); }
  .ph-header-cta { display: none; }
  .ph-hero-in, .ph-faq-in, .ph-grid--2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .ph-sec { padding: 52px 0; }
  .ph-fields { grid-template-columns: minmax(0, 1fr); }
  .ph-form { padding: 20px; }
  .ph-table thead { display: none; }
  .ph-table, .ph-table tbody, .ph-table tr, .ph-table td { display: block; width: 100%; }
  .ph-table tr { border-bottom: 1px solid var(--ph-line-strong); padding: 6px 0; }
  .ph-table td { border: 0; padding: 6px 14px; text-align: left !important; }
  .ph-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ph-muted); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.ph-page) { scroll-behavior: auto; }
}

@media print {
  .ph-header, .ph-theme-btn, .ph-form { display: none; }
}

/* This template's own sections */
.ph-now { font: 700 1.6rem var(--ph-head); margin: 4px 0; }
.ph-now.is-open { color: var(--ph-success); } .ph-now.is-shut { color: var(--ph-danger); }
.ph-hint { color: var(--ph-muted); font-size: .88rem; margin-top: 10px; }
.ph-two { display: grid; gap: 40px; align-items: start; }
.ph-steps { list-style: decimal; padding-left: 22px; margin-top: 14px; display: grid; gap: 8px; }
.ph-rx { display: grid; gap: 6px; }
.ph-rx label:not(.ph-tick), .ph-rx legend { font-weight: 700; margin-top: 10px; }
.ph-rx input:not([type="radio"]), .ph-rx select { font: inherit; padding: 10px 12px; border: 1px solid var(--ph-line-strong); border-radius: var(--ph-radius); background: var(--ph-surface); color: var(--ph-ink); width: 100%; }
.ph-rx [aria-invalid="true"] { border-color: var(--ph-danger); }
.ph-rx fieldset { border: 0; padding: 0; margin: 0; }
.ph-add { display: flex; gap: 8px; }
.ph-meds li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--ph-line); }
.ph-x { background: none; border: 0; color: var(--ph-accent); text-decoration: underline; cursor: pointer; font: inherit; }
.ph-tick { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.ph-err { color: var(--ph-danger); font-weight: 700; }
.ph-ok { color: var(--ph-success); font-weight: 700; }
.ph-rx > button { justify-self: start; margin-top: 8px; }
.ph-empty { color: var(--ph-muted); margin-top: 14px; }
.ph-hours tr.is-today th, .ph-hours tr.is-today td { background: var(--ph-tint); color: var(--ph-ink); font-weight: 700; }
.ph-addr { font-style: normal; margin: 12px 0; line-height: 1.7; }
