/*
 * WordPress-only additions. style.css is the design's base.css copied verbatim
 * by tools/convert-html.py — keep theme-specific rules here so it can be re-copied.
 */

/* Self-hosted fonts (the design loads the same families from Google Fonts). */
@font-face{ font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/inter-400.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/inter-500.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/inter-600.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/inter-700.woff2') format('woff2'); }
@font-face{ font-family:'Bricolage Grotesque'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/bricolage-600.woff2') format('woff2'); }
@font-face{ font-family:'Bricolage Grotesque'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/bricolage-700.woff2') format('woff2'); }
@font-face{ font-family:'Bricolage Grotesque'; font-style:normal; font-weight:800; font-display:swap; src:url('../fonts/bricolage-800.woff2') format('woff2'); }

/* Sticky header clears the logged-in admin bar. */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

/* Enquiry forms */
.rn-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
#rn-form { scroll-margin-top: 110px; }
.form-error { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #e3a3a3; border-radius: var(--radius-sm); background: #fdf1f1; color: #8a1f1f; font-size: .88rem; }
.form-error ul { margin: 6px 0 0; padding-left: 18px; }
[data-theme="dark"] .form-error { background: #3a1d1d; border-color: #7a3a3a; color: #f3c6c6; }

/* Directory cards (Hospitals, Doctors, Patient Stories) */
.rn-dir-card { display: block; color: inherit; text-decoration: none; }
.rn-dir-card h3 { margin: 0 0 6px; }
.rn-dir-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: .9rem; }
.rn-dir-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 14px; }
.rn-dir-person { display: flex; gap: 14px; align-items: flex-start; }
.rn-dir-avatar { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.rn-dir-meta { color: var(--ink-soft); font-size: .88rem; }

/* Single profile pages */
.grid-hairline.cols-1 { grid-template-columns: 1fr; }
.rn-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.rn-facts b { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.rn-rich > :first-child { margin-top: 0; }
.rn-rich ul, .rn-rich ol { padding-left: 20px; }

/* Search */
.rn-search { display: flex; gap: 10px; margin-top: 16px; }
.rn-search input { flex: 1; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 6px; font: inherit; background: var(--card); color: inherit; }
