/*
 * Ortodontiakliinik — site stylesheet
 *
 * The design system from the mockup in example/index.html, colours included:
 * the tokens and every text/surface pairing below are the mockup's own.
 *
 * Note for whoever audits this later, so the finding is not a surprise: the
 * brand orange #F49C00 carries white text on buttons and on the top bar, which
 * is 2.19:1, and --gray #787878 is 4.42:1 on white. Both are under the WCAG AA
 * 4.5:1 floor for body text. That is the approved design.
 */

:root{
  --orange:#F49C00;
  --orange-dark:#d98a00;
  --orange-soft:#FDF3E2;
  --navy:#071323;
  --brown:#633911;
  --slate:#28303F;
  --gray:#787878;
  --line:#E7E4DE;
  --cream:#F7F7F5;
  --white:#fff;
  --radius:22px;
  --shadow-sm:0 2px 10px rgba(7,19,35,.06);
  --shadow:0 18px 50px -20px rgba(7,19,35,.22);
  --shadow-lg:0 40px 90px -40px rgba(7,19,35,.35);
  --max:1200px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:'Mulish',Helvetica,Arial,sans-serif;color:var(--slate);
  background:var(--white);font-size:17px;line-height:1.7;-webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 24px}
h1,h2,h3,h4{font-weight:800;line-height:1.15;color:var(--navy);margin:0 0 .5em;letter-spacing:-.02em}
h1{font-size:clamp(2.2rem,5.2vw,3.7rem)}
h2{font-size:clamp(1.8rem,3.6vw,2.65rem)}
h3{font-size:1.22rem}
p{margin:0 0 1.1em}
.eyebrow{
  display:inline-flex;align-items:center;gap:.55rem;font-size:.78rem;font-weight:800;
  letter-spacing:.18em;text-transform:uppercase;color:var(--orange);margin-bottom:1rem;
}
.lead{font-size:1.1rem;color:var(--gray)}
.muted{color:var(--gray)}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  padding:.95rem 1.7rem;border-radius:999px;font-weight:800;font-size:.85rem;
  letter-spacing:.09em;text-transform:uppercase;border:2px solid transparent;
  transition:.25s ease;cursor:pointer;white-space:nowrap;
}
.btn-primary{background:var(--orange);color:#fff;box-shadow:0 12px 28px -12px rgba(244,156,0,.85)}
.btn-primary:hover{background:var(--orange-dark);transform:translateY(-2px);box-shadow:0 18px 34px -14px rgba(244,156,0,.9)}
.btn-ghost{border-color:var(--orange);color:var(--orange);background:transparent}
.btn-ghost:hover{background:var(--orange);color:#fff;transform:translateY(-2px)}
.btn-light{background:#fff;color:var(--navy)}
.btn-light:hover{transform:translateY(-2px)}
.btn-outline-light{border-color:rgba(255,255,255,.45);color:#fff}
.btn-outline-light:hover{background:#fff;color:var(--navy)}

/* ---------- topbar + header ---------- */
.topbar{background:var(--orange);color:#fff;font-size:.82rem;font-weight:600}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:42px}
.topbar a{opacity:.95;transition:.2s}
.topbar a:hover{opacity:1}
.topbar-links{display:flex;align-items:center;gap:1.4rem}
.topbar-links{list-style:none;margin:0;padding:0}
.topbar-links li{display:inline-flex;align-items:center;gap:.45rem}
.topbar-links .nav-item button{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:.35rem}

header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);transition:.3s}
header.scrolled{box-shadow:0 8px 30px -18px rgba(7,19,35,.4)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:86px}
.logo img{height:42px;width:auto}
.menu{display:flex;align-items:center;gap:2rem;font-weight:600;font-size:.97rem;list-style:none;margin:0;padding:0}
.menu a{position:relative;padding:.3rem 0;color:var(--slate);transition:.2s}
.menu a::after{content:"";position:absolute;left:0;bottom:-2px;height:2px;width:0;background:var(--orange);transition:.3s;border-radius:2px}
.menu a:hover{color:var(--navy)}
.menu a:hover::after,.menu a.active::after{width:100%}
.menu a.active{color:var(--navy)}
.nav-cta{display:flex;align-items:center;gap:1rem}
.burger{display:none;width:46px;height:46px;border:1px solid var(--line);border-radius:14px;background:#fff;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer}
.burger span{display:block;width:20px;height:2px;background:var(--navy);border-radius:2px;transition:.3s}
.burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger.open span:nth-child(2){opacity:0}
.burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{display:none;border-top:1px solid var(--line);background:#fff}
.mobile-menu.show{display:block}
.mobile-menu ul{list-style:none;margin:0;padding:0}
.mobile-menu a{display:block;padding:.9rem 0;font-weight:700;border-bottom:1px solid var(--line)}
/* The CTA is an <a> too, so the rule above was turning it into a block: a
   block ignores .btn's justify-content, which left the label against the left
   edge of a full-width pill and drew the menu's divider across its bottom.
   Same specificity as `.mobile-menu a` and later in the file, so it wins. */
.mobile-menu .btn{
  display:inline-flex;justify-content:center;border-bottom:0;
  padding:.95rem 1.7rem;width:100%;margin:1.1rem 0 1.4rem;
}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;background:#633911}
.hero-photo{position:absolute;top:0;right:0;width:48%;height:100%;overflow:hidden}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-inner{position:relative;z-index:2;padding:clamp(78px,10vw,140px) clamp(24px,3vw,48px) clamp(120px,13vw,170px) 0;max-width:560px;color:#fff}
.hero-inner h1{color:#fff}
.hero-inner .eyebrow{color:#FFC663}
.hero-inner p{color:rgba(255,255,255,.86);font-size:1.12rem;max-width:520px}
.hero-actions{display:flex;flex-wrap:wrap;gap:.9rem;margin-top:2rem}
.hero-trust{display:flex;flex-wrap:wrap;gap:2.2rem;margin:3rem 0 0;padding:1.8rem 0 0;list-style:none;border-top:1px solid rgba(255,255,255,.2)}
.hero-trust li strong{display:block;font-size:1.6rem;font-weight:800;color:#fff;line-height:1.2}
.hero-trust li span{font-size:.85rem;color:rgba(255,255,255,.7)}

/* ---------- info cards ---------- */
/* The pull-up is scoped to the hero rather than sitting on .info-cards itself.
   The hero renders its own cards so they overlap its bottom edge, but the same
   block is available as a standalone section further down a page, and there a
   -90px top margin would drag it over whatever came before. */
.info-cards{position:relative;z-index:5;margin-top:3.4rem}
.hero + .info-cards{margin-top:-90px}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;list-style:none;margin:0;padding:0}
.info-card{background:#fff;border-radius:var(--radius);padding:34px 30px;box-shadow:var(--shadow);border:1px solid var(--line);transition:.3s}
.info-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.info-card .ico{width:54px;height:54px;border-radius:16px;background:var(--orange-soft);color:var(--orange);display:flex;align-items:center;justify-content:center;margin-bottom:1.1rem}
.info-card h2{font-size:1.22rem;margin-bottom:.4rem}
.info-card p{margin:0;font-size:.97rem;color:var(--gray)}
.info-card .hours{font-weight:800;color:var(--navy);font-size:1.05rem;margin-top:.5rem}
.info-card .ico img{width:34px;height:34px;object-fit:contain;display:block}

/* ---------- sections ---------- */
section{padding:clamp(64px,8vw,110px) 0}
.section-head{max-width:640px;margin-bottom:3rem}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center}
.section-head.center .eyebrow{justify-content:center}

/* about */
.about-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:clamp(32px,5vw,72px);align-items:center}
.about-media{position:relative}
.about-media img{border-radius:var(--radius);box-shadow:var(--shadow-lg);width:100%;height:100%;max-height:560px;object-fit:cover}
.stat-badge{
  position:absolute;left:-18px;bottom:-24px;background:var(--orange);color:#fff;border-radius:20px;
  padding:22px 28px;box-shadow:0 22px 45px -20px rgba(244,156,0,.9);
}
.stat-badge strong{display:block;font-size:2.1rem;font-weight:800;line-height:1}
.stat-badge span{font-size:.85rem;opacity:.95}
.check-list{list-style:none;padding:0;margin:1.6rem 0 0;display:grid;grid-template-columns:1fr 1fr;gap:.75rem 1.4rem}
.check-list li{display:flex;gap:.65rem;align-items:flex-start;font-weight:600;font-size:.98rem;color:var(--slate)}
.check-list svg{flex:0 0 auto;margin-top:4px;color:var(--orange)}

/* services */
.services{background:var(--cream)}
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.svc{background:#fff;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);display:flex;flex-direction:column;transition:.35s}
.svc:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);border-color:transparent}
.svc-img{height:210px;overflow:hidden;background:var(--orange-soft)}
.svc-img img{width:100%;height:100%;object-fit:cover;transition:.6s}
.svc:hover .svc-img img{transform:scale(1.06)}
.svc-body{padding:28px 26px 30px;display:flex;flex-direction:column;flex:1}
.svc-body p{font-size:.96rem;color:var(--gray);flex:1}
.svc-link{display:inline-flex;align-items:center;gap:.5rem;font-weight:800;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;color:var(--orange);margin-top:.4rem}
.svc-link svg{transition:.25s}
.svc:hover .svc-link svg{transform:translateX(5px)}
.svc-plain{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 26px;display:flex;gap:1rem;align-items:flex-start;transition:.3s}
.svc-plain:hover{transform:translateY(-5px);box-shadow:var(--shadow);border-color:transparent}
.svc-plain .ico{flex:0 0 auto;width:48px;height:48px;border-radius:14px;background:var(--orange-soft);color:var(--orange);display:flex;align-items:center;justify-content:center}
.svc-plain h3{font-size:1.06rem;margin-bottom:.25rem}
.svc-plain p{margin:0;font-size:.93rem;color:var(--gray)}
.svc-extra{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:26px}

/* team */
.team-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:24px}
.member{text-align:center}
.member-photo{position:relative;border-radius:20px;overflow:hidden;aspect-ratio:3/3.5;background:var(--cream);box-shadow:var(--shadow-sm)}
.member-photo img{width:100%;height:100%;object-fit:cover;transition:.5s}
.member:hover .member-photo img{transform:scale(1.05)}
.member h3{font-size:1.02rem;margin:1rem 0 .1rem}
.member span{font-size:.86rem;color:var(--orange);font-weight:700;letter-spacing:.04em}

/* gallery */
.gallery{background:var(--cream)}
.gallery h2{color:var(--navy)}
.gallery .lead{color:var(--gray)}
.gal-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:190px;gap:18px}
.gal-item{overflow:hidden;border-radius:18px;background:#EDE9E2;border:1px solid var(--line)}
/* The tile's whole area is the lightbox trigger, so the link fills it — as an
   inline box it would collapse to the image's line box and leave the tile
   partly unclickable, and the focus ring would trace the wrong shape. */
.gal-item a{display:block;width:100%;height:100%}
.gal-item img{width:100%;height:100%;object-fit:cover;transition:.6s}
.gal-item:hover img{transform:scale(1.07)}
.gal-item.tall{grid-row:span 2}
.gal-item.wide{grid-column:span 2}

/* blog */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.post{border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;transition:.35s}
.post:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);border-color:transparent}
.post-img{height:215px;overflow:hidden;position:relative}
.post-img img{width:100%;height:100%;object-fit:cover;transition:.6s}
.post:hover .post-img img{transform:scale(1.06)}
.tag{position:absolute;left:16px;top:16px;background:#fff;color:var(--navy);font-size:.68rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;padding:.42rem .8rem;border-radius:999px;box-shadow:var(--shadow-sm)}
.post-body{padding:26px;display:flex;flex-direction:column;flex:1}
.post-body h3{font-size:1.12rem}
.post-body p{font-size:.94rem;color:var(--gray);flex:1}

/* CTA + booking */
.booking{background:var(--cream)}
.booking-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,4vw,56px);align-items:stretch}
.form-card{background:#fff;border-radius:var(--radius);padding:clamp(28px,3.5vw,44px);box-shadow:var(--shadow);border:1px solid var(--line)}
.field{margin-bottom:1rem}
.field label{display:block;font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--navy);margin-bottom:.4rem}
.field input,.field select,.field textarea{
  width:100%;padding:.85rem 1rem;border:1.5px solid var(--line);border-radius:14px;font:inherit;font-size:.97rem;
  background:#fff;color:var(--slate);transition:.2s;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 4px rgba(244,156,0,.15)}
.field textarea{min-height:110px;resize:vertical}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
.form-note{font-size:.83rem;color:var(--gray);margin:.8rem 0 0}
.contact-panel{background:#633911;color:#fff;border-radius:var(--radius);padding:clamp(28px,3.5vw,44px);display:flex;flex-direction:column}
.contact-panel h2{color:#fff}
.contact-panel .lead{color:rgba(255,255,255,.72)}
.contact-list{list-style:none;padding:0;margin:1.5rem 0 0;display:grid;gap:1.15rem}
.contact-list li{display:flex;gap:1rem;align-items:flex-start}
.contact-list .ico{flex:0 0 auto;width:44px;height:44px;border-radius:13px;background:rgba(244,156,0,.16);color:var(--orange);display:flex;align-items:center;justify-content:center}
.contact-list strong{display:block;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.55);font-weight:800;margin-bottom:.15rem}
.contact-list a,.contact-list span{color:#fff;font-weight:600;font-size:1.02rem}
.contact-list a:hover{color:var(--orange)}
.map{margin-top:auto;padding-top:1.8rem}
.map iframe{width:100%;height:200px;border:0;border-radius:16px;filter:grayscale(.25)}

/* footer */
footer{background:var(--slate);color:rgba(255,255,255,.72);padding:clamp(56px,7vw,86px) 0 0;font-size:.96rem}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:36px;padding-bottom:48px}
footer a,footer li,.contact-list a{overflow-wrap:anywhere}
.foot-logo img{height:40px;margin-bottom:1.2rem}
footer h2{color:#fff;font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;margin-bottom:1.1rem}
footer ul{list-style:none;padding:0;margin:0;display:grid;gap:.6rem}
footer a:hover{color:var(--orange)}
.social{display:inline-flex;align-items:center;gap:.6rem;margin-top:1rem;font-weight:700;color:#fff}
.social .circle{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;transition:.25s}
.social:hover .circle{background:var(--orange)}
.foot-bottom{border-top:1px solid rgba(255,255,255,.12);padding:22px 0;display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;justify-content:space-between;font-size:.86rem}

/* reveal */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}

/* responsive */
@media (max-width:1080px){
  .team-grid{grid-template-columns:repeat(3,1fr)}
  .gal-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:960px){
  .menu,.nav-cta .btn{display:none}
  .burger{display:flex}
  .info-grid,.svc-grid,.svc-extra,.blog-grid{grid-template-columns:1fr}
  .about-grid,.booking-grid{grid-template-columns:1fr}
  .about-media{order:-1}
  .stat-badge{left:auto;right:16px;bottom:-20px}
  .hero{display:flex;flex-direction:column}
  /* No fixed band here: the photo keeps its own proportions, so a portrait or
     near-square upload is shown whole instead of being cropped to a letterbox
     strip the editor never chose. The height follows the file, which is why
     the img drops the 100% height the desktop rule gives it. */
  .hero-photo{position:relative;order:-1;width:100%;height:auto}
  .hero-photo img{height:auto}
  .hero-inner{max-width:none;padding:clamp(48px,8vw,76px) 0 150px}
  .hero + .info-cards{margin-top:-110px}
  .foot-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  body{font-size:16px}
  /* li.topbar-hours, not .topbar-hours: the base rule is `.topbar-links li`,
     which outranks a lone class, so this never actually hid the hours and the
     top bar overflowed a 320px screen by 32px. */
  .topbar-links li.topbar-hours{display:none}
  /* The bar carries the page gutter, which at 320px it cannot afford: the
     accessibility toggle and the phone number need 255px of the 320.
     (Checklist 1.2) */
  .topbar .wrap{padding:0 16px;gap:.8rem}
  /* The wordmark is 42px tall on desktop, which on a phone eats the header and
     crowds the burger. */
  .logo img{height:32px}
  .nav{min-height:70px}
  .team-grid,.gal-grid{grid-template-columns:repeat(2,1fr)}
  .gal-item.wide{grid-column:span 1}
  .gal-item.tall{grid-row:span 1}
  .gal-grid{grid-auto-rows:150px}
  .check-list{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .hero-trust{gap:1.4rem}
  .foot-grid{grid-template-columns:1fr;gap:30px}
  .foot-bottom{flex-direction:column;gap:.4rem}
}

/* ===== MENÜÜ RIPPMENÜÜ ===== */
.has-drop{position:relative;display:inline-flex}
.has-drop>a{display:inline-flex;align-items:center;gap:.35rem}
.has-drop .caret{transition:.25s;opacity:.55}
.has-drop:hover .caret{transform:rotate(180deg);opacity:1;color:var(--orange)}
.drop{
  position:absolute;top:100%;left:50%;transform:translateX(-50%) translateY(10px);
  min-width:262px;background:#fff;border:1px solid var(--line);border-radius:18px;
  box-shadow:var(--shadow);padding:10px;opacity:0;visibility:hidden;transition:.24s ease;z-index:70;
}
.drop::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
.has-drop:hover .drop,.has-drop:focus-within .drop{opacity:1;visibility:visible;transform:translateX(-50%) translateY(6px)}
.drop ul{list-style:none;margin:0;padding:0}
.drop a{display:block;padding:.68rem .9rem;border-radius:13px;font-size:.95rem;font-weight:700;color:var(--slate);transition:.2s}
.drop a::after{display:none}
.drop a:hover{background:var(--cream);color:var(--navy)}
.drop a.active{background:var(--navy);color:#fff}
.m-sub{display:grid;border-bottom:1px solid var(--line);padding:.2rem 0 .6rem}
.m-sub a{padding:.6rem 0 .6rem 1.1rem !important;border:0 !important;font-size:.95rem;font-weight:600;color:var(--gray);position:relative}
.m-sub a::before{content:"";position:absolute;left:0;top:50%;width:6px;height:6px;border-radius:50%;background:var(--orange);transform:translateY(-50%)}

/* ===== ALAMLEHTEDE STIILID ===== */
.page-hero{position:relative;overflow:hidden;background:var(--brown)}
.page-hero .bg{position:absolute;inset:0}
.page-hero .bg img{width:100%;height:100%;object-fit:cover;opacity:.6;filter:sepia(.28) saturate(1.08)}
.page-hero .bg::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgb(99 57 17 / 94%) 0%,rgb(99 57 17 / 84%) 55%,rgb(120 72 26 / 58%) 100%)}
.page-hero .inner{position:relative;z-index:2;padding:clamp(52px,7vw,86px) 0 clamp(56px,7vw,90px);max-width:720px;color:#fff}
.page-hero h1{color:#fff;font-size:clamp(2rem,4.4vw,3.1rem);margin-bottom:.35em}
.page-hero p{color:rgba(255,255,255,.82);font-size:1.06rem;margin:0;max-width:560px}
.crumbs{
  display:inline-flex;flex-wrap:wrap;align-items:center;gap:.5rem;font-size:.83rem;font-weight:700;
  letter-spacing:.06em;color:rgba(255,255,255,.72);margin-bottom:1.3rem;text-transform:uppercase;
}
.crumbs a{color:rgba(255,255,255,.72);transition:.2s}
.crumbs a:hover{color:var(--orange)}
.crumbs .sep{display:inline-flex;align-items:center;opacity:.55;color:rgba(255,255,255,.75)}
.crumbs .cur{color:var(--orange)}

.article-hero .inner{padding:clamp(30px,4vw,48px) 0}
.article-hero .crumbs{margin-bottom:0}
.article-title{font-size:clamp(1.85rem,3.5vw,2.55rem);margin:.15em 0 .9em;line-height:1.18}
.prose>.eyebrow{margin-bottom:.5rem}

.page-body{padding:clamp(52px,7vw,92px) 0}
.page-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:clamp(32px,4.5vw,64px);align-items:start}

.prose{font-size:1.045rem}
.prose>p:first-of-type{font-size:1.16rem;color:var(--navy);font-weight:600;line-height:1.65}
.prose p{color:var(--gray)}
.prose h2{font-size:1.6rem;margin-top:2.4rem}
.prose h3{margin-top:2rem}
.prose img.inline{border-radius:var(--radius);box-shadow:var(--shadow);margin:2rem 0}
.prose ul.dots{list-style:none;padding:0;margin:1.2rem 0 1.6rem;display:grid;gap:.7rem}
.prose ul.dots li{position:relative;padding-left:2.1rem;color:var(--slate);font-weight:500}
.prose ul.dots li::before{
  content:"";position:absolute;left:0;top:.55em;width:10px;height:10px;border-radius:50%;
  background:var(--orange);box-shadow:0 0 0 4px rgba(244,156,0,.18);
}
.callout{
  background:var(--orange-soft);border:1px solid #F3DDB6;border-left:4px solid var(--orange);
  border-radius:16px;padding:22px 26px;margin:2rem 0;color:var(--slate);font-weight:500;
}
.callout strong{color:var(--navy)}
.callout p:last-child{margin-bottom:0}
.quote{
  background:var(--navy);color:#fff;border-radius:var(--radius);padding:30px 34px;margin:2.4rem 0;
  font-size:1.1rem;font-weight:700;line-height:1.5;position:relative;
}
.quote::before{content:"„";position:absolute;left:18px;top:-2px;font-size:4rem;color:var(--orange);opacity:.5;line-height:1}
.quote p{margin:0;padding-left:34px;color:#fff}

.chips{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.6rem 0 0}
.chip{
  display:inline-flex;align-items:center;gap:.5rem;background:#fff;border:1px solid var(--line);
  border-radius:999px;padding:.6rem 1.1rem;font-size:.92rem;font-weight:700;color:var(--navy);
}
.chip svg{color:var(--orange);flex:0 0 auto}

/* sidebar */
.side{position:sticky;top:112px;display:grid;gap:22px}
.side-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:26px 24px;box-shadow:var(--shadow-sm)}
.side-card h2{font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--orange);margin-bottom:1rem}
.side-nav{list-style:none;padding:0;margin:0;display:grid;gap:.2rem}
.side-nav a{
  display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.75rem .9rem;border-radius:13px;
  font-weight:700;font-size:.98rem;color:var(--slate);transition:.22s;
}
.side-nav a:hover{background:var(--cream);color:var(--navy)}
.side-nav a.active{background:#633911;color:#fff}
.side-nav a.active svg{color:var(--orange)}
.side-nav svg{opacity:.6;transition:.22s}
.side-nav a:hover svg{transform:translateX(3px);opacity:1;color:var(--orange)}
.side-cta{background:#633911;color:#fff;border-radius:var(--radius);padding:28px 26px;text-align:center}
.side-cta h2{color:#fff;font-size:1.22rem;margin-bottom:.4rem}
.side-cta p{color:rgba(255,255,255,.72);font-size:.95rem}
.side-cta .btn{width:100%}
.side-contact{display:grid;gap:.9rem;font-size:.96rem}
.side-contact a,.side-contact span{display:flex;gap:.7rem;align-items:center;font-weight:700;overflow-wrap:anywhere}
.side-contact a{color:var(--navy)}
.side-contact span{color:var(--gray);font-weight:600}
.side-contact a:hover{color:var(--orange)}
.side-contact svg{color:var(--orange);flex:0 0 auto}

/* price table */
.price-table{width:100%;border-collapse:separate;border-spacing:0;margin:1.8rem 0 1rem;background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.price-table th{background:var(--navy);color:#fff;text-align:left;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;padding:16px 22px}
.price-table th:last-child,.price-table td:last-child{text-align:right}
.price-table td{padding:16px 22px;border-top:1px solid var(--line);font-weight:600;color:var(--slate)}
.price-table tr:nth-child(even) td{background:#FCFCFB}
.price-table td:last-child{color:var(--orange);font-weight:800;white-space:nowrap}
.table-wrap{overflow-x:auto}

/* services overview */
.ov-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.ov-wide{display:grid;grid-template-columns:1.15fr 1fr;gap:clamp(24px,4vw,52px);align-items:center;background:var(--cream);border-radius:var(--radius);padding:clamp(26px,3.4vw,46px);border:1px solid var(--line);margin-top:26px}
.ov-wide img{border-radius:18px;box-shadow:var(--shadow);max-height:280px;width:100%;object-fit:cover}

/* bottom CTA band */
.cta-band{background:var(--orange);color:#fff;border-radius:var(--radius);padding:clamp(32px,4vw,52px);display:flex;flex-wrap:wrap;gap:1.4rem;align-items:center;justify-content:space-between}
.cta-band h2{color:#fff;margin:0 0 .3em}
.cta-band p{color:rgba(255,255,255,.9);margin:0}
.cta-band .actions{display:flex;flex-wrap:wrap;gap:.8rem}

@media (max-width:960px){
  .page-grid{grid-template-columns:1fr}
  .side{position:static;grid-template-columns:1fr}
  .ov-grid{grid-template-columns:1fr}
  .ov-wide{grid-template-columns:1fr}
  .ov-wide .media{order:-1}
}

/* ==========================================================================
   Additions to the mockup — none of the following exists in example/
   ========================================================================== */

/* Visually hidden, but still read aloud. Carries the new-window warnings and
   the accessible names of icon-only controls. (Checklist 7.10, 14.8) */
.visually-hidden{
  position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}

/* The mockup ships no focus styles at all, so a keyboard user could not see
   where they were. :focus-visible only, so a mouse click does not draw it.
   Two rings — dark over light halo — so the indicator is visible against the
   orange, the navy and the brown alike. (Checklist 8.2, 7.3, 14.7) */
:focus-visible{
  outline:3px solid var(--navy);
  outline-offset:2px;
  border-radius:4px;
}
.hero :focus-visible,.gallery :focus-visible,.contact-panel :focus-visible,
.topbar :focus-visible,footer :focus-visible,.page-hero :focus-visible,
.cta-band :focus-visible{
  outline-color:#fff;
  box-shadow:0 0 0 6px rgba(7,19,35,.55);
}

/* The skip link pcadmin renders as the first thing in <body>. Core ships its
   own stylesheet for it; this only lifts it clear of the sticky header and
   puts it in this site's colours. (Checklist 3.12) */
.pc-skip-link:focus{
  position:fixed;top:12px;left:12px;z-index:200;
  background:var(--navy);color:#fff;padding:.85rem 1.4rem;border-radius:12px;
  font-weight:800;text-decoration:none;
}

/* Anchor targets clear the sticky header, so a jumped-to heading is not
   hidden underneath it. Core emits .pc-anchor for section anchor ids. */
.pc-anchor{scroll-margin-top:128px}

/* ---------- header: language picker ---------- */
/* Only rendered when the site has more than one active language. */
.lang-picker{position:relative}
.lang-picker>ul{list-style:none;margin:0;padding:0;display:flex;gap:.5rem;align-items:center}
.lang-toggle{
  display:inline-flex;align-items:center;gap:.4rem;background:#fff;cursor:pointer;
  border:1px solid var(--line);border-radius:999px;padding:.45rem .8rem;
  font:inherit;font-size:.85rem;font-weight:800;color:var(--navy);
}
.lang-toggle[hidden]{display:none}
.lang-picker.is-enhanced>ul{
  position:absolute;top:calc(100% + 8px);right:0;z-index:70;display:none;
  flex-direction:column;gap:0;min-width:160px;padding:8px;
  background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);
}
.lang-picker.is-enhanced.is-open>ul{display:flex}
.lang-picker.is-enhanced>ul a{
  display:flex;align-items:center;gap:.55rem;padding:.6rem .8rem;border-radius:11px;
  font-weight:700;font-size:.94rem;color:var(--slate);
}
.lang-picker.is-enhanced>ul a:hover{background:var(--cream);color:var(--navy)}
.lang-tick{width:14px;height:14px;margin-left:auto;opacity:0}
[aria-current="true"] .lang-tick{opacity:1;color:var(--orange)}

/* ---------- header: mobile submenu disclosure ---------- */
/* The mockup prints the Teenused children as a permanently open indented list.
   They are a disclosure now: collapsed unless the branch holds the page you
   are on, so a long services list does not push the rest of the menu off the
   screen. The parent is a page of its own, so its link keeps its own tap area
   and the caret button beside it owns the list. */
/* The divider belongs to the ROW, not to the link: with the caret button
   beside it the link no longer spans the panel, and the line stopped short. */
.m-group{display:flex;align-items:center;gap:.5rem;border-bottom:1px solid var(--line)}
.m-group>a{flex:1;border-bottom:0}
.m-sub[hidden]{display:none}
.m-toggle{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:44px;height:44px;margin-right:-10px;
  border:0;border-radius:12px;background:transparent;color:var(--navy);
  cursor:pointer;
}
.m-toggle:hover{background:var(--cream)}
.m-toggle .caret{transition:transform .25s ease}
.m-toggle[aria-expanded="true"] .caret{transform:rotate(180deg)}
/* Without script the list cannot fold, so the control that would fold it is
   not rendered as a control at all — the same rule the burger follows. */
html:not(.js) .m-toggle{display:none}

/* ---------- info cards: icon-only rows ---------- */
/* A card whose badge is an uploaded image rather than an inline icon. */
.info-card .badge{height:56px;width:auto;margin-bottom:1rem}

/* ---------- gallery ---------- */
/* Grid items are plain <li> in the markup, so the list needs resetting. */
.gal-grid{list-style:none;padding:0;margin:0}
.team-grid{list-style:none;padding:0;margin:0}
.svc-extra .svc-plain{color:inherit}

/* ---------- booking form ---------- */
/* Explains the asterisk before the first field. (Checklist 12.23) */
.form-req{font-size:.85rem;color:var(--gray);margin:0 0 1.2rem}
.field .req{color:var(--orange);font-weight:800}
/* Errors are text beside the field, never colour alone. (13.2, 13.4) */
.field-error{
  display:block;margin-top:.4rem;font-size:.88rem;font-weight:700;color:#9B1C1C;
}
.field input[aria-invalid="true"],.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"]{border-color:#9B1C1C;border-width:2px}
.form-status{
  margin:1rem 0 0;padding:.9rem 1.1rem;border-radius:14px;font-weight:700;font-size:.95rem;
}
.form-status:empty{display:none}
.form-status.is-ok{background:#E7F4EC;color:#14532D;border:1px solid #A7D3B8}
.form-status.is-error{background:#FDECEC;color:#7F1D1D;border:1px solid #E3B3B3}

/* ---------- motion ---------- */
/* Everything that moves stops when the visitor has asked for less motion.
   The reveal animation must not leave content invisible when it does.
   (Checklist 1.25) */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  .reveal{opacity:1;transform:none}
}

/* No JavaScript, no reveal animation — otherwise every .reveal block stays at
   opacity:0 and the page reads as blank. */
html:not(.js) .reveal{opacity:1;transform:none}

/* ---------- progressive enhancement ---------- */
/* The `js` class is set by the inline snippet in includes/head.php, so these
   rules describe the page as it behaves WITHOUT main.js. The burger cannot do
   anything without script, so it is not offered; the panel it would have
   opened ships open instead, and is the only menu below 960px where .menu is
   hidden. Small screens must not lose content to a breakpoint. (Checklist 5.1) */
html:not(.js) .burger{display:none}
@media (max-width:960px){
  html:not(.js) .mobile-menu{display:block}
}

/* Esc dismisses the services dropdown without the pointer moving off it.
   (Checklist 3.11) */
.has-drop.is-dismissed .drop{opacity:0;visibility:hidden}

/* ---------- 404 ---------- */
/* The page-hero band is brown, so the eyebrow needs the same lift the homepage
   hero gives it, the way the mockup lifts the homepage hero eyebrow. */
.page-hero .eyebrow{color:#FFC663}
.page-hero .eyebrow::before{background:#FFC663}
.err-body{padding:clamp(48px,6vw,80px) 0}
.err-actions{display:flex;flex-wrap:wrap;gap:.9rem;margin-bottom:3rem}
.err-links{list-style:none;padding:0;margin:1.2rem 0 0;display:flex;flex-wrap:wrap;gap:.7rem}
.err-links a{
  display:inline-flex;align-items:center;gap:.5rem;background:#fff;border:1px solid var(--line);
  border-radius:999px;padding:.7rem 1.3rem;font-size:.95rem;font-weight:700;color:var(--navy);transition:.25s;
}
.err-links a:hover{border-color:transparent;box-shadow:var(--shadow);transform:translateY(-2px)}

/* <address> is the right element for the clinic's contact details, but browsers
   italicise it by default and the mockup's footer and contact panel are upright. */
address{font-style:normal}

/* ---------- top bar: accessibility toggle ---------- */
/* The button is core's component, and core's stylesheet colours it for a white
   Bootstrap navbar: #accessibility-toggle i is --bs-primary blue and the span
   is #60697b grey with !important. On the orange bar both read as mistakes, so
   they are pulled back to the bar's own white. The .topbar prefix is what wins
   the cascade — core's selectors are id-only, so a class in front of the same
   id outranks them. */
/* Core renders the toggle as `btn btn-link`, so this site's .btn catches it and
   shouts the label in uppercase like a pill CTA. It is a bar link, not a call
   to action — same reason the panel's close button undoes .btn further down. */
.topbar #accessibility-toggle{text-transform:none}
.topbar #accessibility-toggle i{color:#fff}
.topbar #accessibility-toggle span{
  color:#fff !important;
  font-size:.82rem !important;
  font-weight:600 !important;
}

/* On the narrowest phones the toggle keeps its icon and drops its label: the
   word is 186px of the 288px the bar has at 320px, which is what pushed the
   phone number off the screen. Core's button already carries
   aria-label="Juurdepääsetavus", so the control keeps its accessible name and
   a screen reader reads it exactly as before. (Checklist 14.8, 1.2) */
@media (max-width:400px){
  .topbar #accessibility-toggle span{display:none}
  .topbar #accessibility-toggle{padding:6px 0}
  /* A phone number breaking across three lines is not a phone number. */
  .topbar-links a{white-space:nowrap}
}

/* ---------- authored rich text ---------- */
/* The tick on a .chip is drawn by CSS rather than an inline <svg>, because
   these are written in the page editor and an author cannot type SVG. The
   mockup's hand-written `.chip svg` rule still applies where that markup
   exists, so both forms render the same. */
.chip::before{
  content:"";flex:0 0 auto;width:16px;height:16px;
  background:currentColor;color:var(--orange);
  -webkit-mask:var(--tick) center/contain no-repeat;
  mask:var(--tick) center/contain no-repeat;
}
.chip:has(svg)::before{display:none}
:root{
  --tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- accessibility panel ---------- */
/* Core renders this panel with Bootstrap's grid and utility classes
   (container-fluid, row, col-lg-4, form-check, btn). This project loads no
   Bootstrap, so without the rules below the panel is an unstyled full-height
   stack — and our own .btn, which core's markup also carries, turned its close
   button into a pill the width of a paragraph.

   Everything here is scoped to .accessibility-controls: these are stand-ins for
   somebody else's framework, and they must not leak onto the site. */
.accessibility-controls{
  max-height:100vh;overflow-y:auto;
  font-family:inherit;font-size:1rem;
}
.accessibility-controls .container-fluid{
  width:100%;max-width:var(--max);margin:0 auto;padding:0 24px;
}
.accessibility-controls .row{display:flex;flex-wrap:wrap}

/* The title bar. */
.accessibility-controls .row.align-items-center{
  align-items:center;justify-content:space-between;gap:1rem;
  padding:.9rem 0;border-bottom:1px solid rgba(255,255,255,.25);
}
.accessibility-controls .col{flex:1 1 auto;min-width:0}
.accessibility-controls .col-auto{flex:0 0 auto}
.accessibility-controls h5{color:#fff;font-size:1.1rem;margin:0}

/* The three option columns. */
.accessibility-controls .row.py-3{gap:2rem;padding:1.6rem 0 2rem}
.accessibility-controls .col-12{flex:1 1 240px}
.accessibility-controls .accessibility-heading{color:#fff;font-size:1rem;margin:0 0 .25rem}
.accessibility-controls .accessibility-desc{color:rgba(255,255,255,.7);font-size:.9rem;margin:0 0 .9rem}
.accessibility-controls .radio-list,
.accessibility-controls .form-group{display:grid;gap:.55rem}
.accessibility-controls .form-check{display:flex;align-items:center;gap:.6rem;margin:0}
.accessibility-controls .form-check-input{width:18px;height:18px;flex:0 0 auto;margin:0;accent-color:var(--orange)}
.accessibility-controls .form-check-label{color:#fff;margin:0;cursor:pointer}

/* Undo this site's .btn on core's close button — it is an icon, not a pill. */
.accessibility-controls .btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.35rem;border:0;border-radius:10px;background:transparent;color:#fff;
  font:inherit;letter-spacing:normal;text-transform:none;box-shadow:none;cursor:pointer;
}
.accessibility-controls .btn:hover{background:rgba(255,255,255,.14);transform:none;box-shadow:none}

/* The centred button under a card grid. The mockup writes it as an inline
   style on a bare div; it is a class here because three sections use it. */
.section-more{text-align:center;margin-top:2.8rem}

/* ---------- cookie consent banner ---------- */
/* Core's consent gate renders Silktide's banner, and Silktide ships its own
   palette — purple #533BE2 — in a stylesheet core links at the end of <body>,
   i.e. after this file. Later stylesheet wins at equal specificity, so every
   rule here carries an `html` prefix to outrank consent.css on specificity
   instead of on order.

   COLOUR ONLY. Sizes, spacing, radii and type stay Silktide's — the banner's
   own layout is tuned to its 600px panel and the long Estonian labels in it.
   Silktide reads its colours from custom properties on #silktide-wrapper, so
   the block below is most of the restyle: banner, preferences modal, switches
   and the floating cookie icon all follow from it.

   Two deliberate choices, so the contrast numbers are not a surprise later:
   the accept/reject buttons are white on --orange (2.18:1), the same approved
   pairing as .btn-primary and the top bar; but anything that is TEXT on the
   white panel — the Eelistused link, the privacy links — takes --brown
   (10.6:1) rather than orange. (Checklist 8.4) */
html #silktide-wrapper{
  --primaryColor:var(--orange);
  --backgroundColor:var(--white);
  --textColor:var(--slate);
  --backdropBackgroundColor:rgba(7,19,35,.55);
  /* The floating icon is an orange dot with a navy cookie on it: white on
     orange would leave the glyph at 2.18:1. (Checklist 8.5) */
  --cookieIconColor:var(--orange);
  --cookieIconBackgroundColor:var(--navy);
  /* Silktide clears the outline on its own controls and draws focus with this
     shadow instead, so the site's :focus-visible ring never reaches them.
     Same indicator the rest of the site draws — 3px navy, 2px clear of the
     control — rather than Silktide's black-on-white slab, which on the banner
     reads as a stray border round whichever button opened with focus. Navy
     because the ring itself has to clear 3:1 against both the white panel and
     the orange fill; orange on white is 2.18:1. (Checklist 8.2, 14.7) */
  --focus:0 0 0 2px #fff,0 0 0 5px var(--navy);
}

/* Silktide's hover inverts a button to primary-on-white, which orange cannot
   carry: it would put the label at 2.18:1 on the panel. Darkened fill instead,
   the same move .btn-primary makes. */
html #silktide-wrapper .st-button--primary:hover{
  background-color:var(--orange-dark);border-color:var(--orange-dark);color:#fff;
}

/* Text on the white panel: brown, not orange. */
html #silktide-wrapper a,
html #silktide-banner a,
html #silktide-banner .preferences{color:var(--brown)}

/* An "on" switch is the brand orange, like every other active control on the
   site. Its ON label goes navy rather than Silktide's white: white on orange
   is 2.18:1, and unlike the buttons this label is the thing that tells you the
   switch is on. The white knob and the slate off-state are Silktide's own. */
html #silktide-modal .switch input:checked + .switch__pill{background:var(--orange)}
html #silktide-modal .switch input:checked ~ .switch__on{color:var(--navy)}

/* Core's close button is an icon; the navy reads as a control rather than as
   a second orange accent beside the heading. */
html #silktide-modal .modal-close{color:var(--navy)}
html #silktide-modal .modal-close svg{fill:var(--navy)}

/* Not colour, but the same banner: the preferences modal is built from
   <header>, <section> and <footer>, and this file styles those tags bare for
   the page itself — so the modal was inheriting 110px of section padding, a
   sticky translucent header and the slate footer band across its buttons.
   Undone here, inside the modal only, which restores Silktide's own spacing;
   narrowing the page rules instead would mean touching every section on every
   page. */
html #silktide-modal section{padding:0}
html #silktide-modal header{
  position:static;z-index:auto;background:none;backdrop-filter:none;border-bottom:0;
}
html #silktide-modal footer{
  background:none;color:inherit;padding:0;font-size:inherit;
}

/* ==========================================================================
   Text Block section — the legal pages
   ==========================================================================
   The privacy policy, the terms and the cookie notice are one Text Block each:
   a single field of TinyMCE HTML, no cards, no sidebar, and a document that is
   numbered rather than illustrated.

   The template is pages/default/frontend/text-block.php, and it is written for
   a Bootstrap theme this project does not load — .text-block-section, .py-5,
   .container, .content. Without Bootstrap none of those names carry anything,
   which is why the block rendered as unstyled text running the full width of
   the window. .py-5 stays meaningless; the rest is given a meaning below.

   The rules address BARE elements, because bare is what an author produces:
   paragraphs, headings, the occasional list, a link. The class-keyed rules the
   service pages use — .prose ul.dots, .price-table, .callout — are markup that
   prose.php builds out of typed fields, and no editor can type a class, so
   none of them can reach authored text.

   Body text is --slate, not the --gray that .prose paragraphs use. Gray is
   4.42:1 and the file header records it as approved for the marketing pages;
   a privacy policy is small print somebody has to read to the end, and it
   takes the ratio that passes. (Checklist 8.4)
   ========================================================================== */

/* .py-5 means nothing here, and two blocks in a row are one document rather
   than two bands of padding. */
.text-block-section{padding:clamp(48px,6.5vw,86px) 0}
.text-block-section+.text-block-section{padding-top:0}

/* .container is Bootstrap's name for what this site calls .wrap. */
.text-block-section .container{
  width:100%;max-width:var(--max);margin:0 auto;padding:0 24px;
}

/* One reading column, centred, NOT the full 1200px: a clause running the whole
   width of a desktop screen is a line the eye loses its place in. ~68ch keeps
   it inside the 80-character ceiling. (Checklist 6.4) */
.text-block-section .content{
  max-width:68ch;margin:0 auto;
  font-size:1.05rem;line-height:1.75;color:var(--slate);
  overflow-wrap:break-word;
}
.text-block-section .content>:first-child{margin-top:0}
.text-block-section .content>:last-child{margin-bottom:0}

/* ---------- headings ---------- */
/* The editor's own document decides the levels. What these pages do is put the
   document's name in an <h2> and number the parts with <h3>, so the <h2> is
   sized as a title and the hairline — the thing that turns "1.", "2.", "3."
   into visible divisions rather than another bold line — goes on the <h3>. */
.text-block-section h2{font-size:clamp(1.7rem,3.2vw,2.2rem);margin:2.6rem 0 1.4rem}
/* TinyMCE leaves an empty paragraph wherever the author pressed Enter, and a
   policy pasted out of another site usually opens with one — so the title is
   not :first-child and cannot be found that way. It is simply the first h2,
   wherever the paste happened to nest it. */
.text-block-section h2:first-of-type{margin-top:0}
.text-block-section h3{
  font-size:clamp(1.2rem,2.2vw,1.42rem);
  margin:2.8rem 0 1rem;padding-top:2rem;border-top:1px solid var(--line);
}
/* Nothing above it to divide it from. */
.text-block-section .content>h3:first-child{margin-top:0;padding-top:0;border-top:0}
.text-block-section h4{font-size:1.06rem;margin:2rem 0 .6rem}
.text-block-section h5{font-size:.98rem;margin:1.7rem 0 .5rem}
.text-block-section h6{
  font-size:.82rem;margin:1.7rem 0 .5rem;color:var(--brown);
  letter-spacing:.14em;text-transform:uppercase;
}

/* ---------- paragraphs and inline text ---------- */
.text-block-section p{margin:0 0 1.15rem}
.text-block-section :is(strong,b){color:var(--navy);font-weight:800}
.text-block-section p:empty{display:none}
.text-block-section small{font-size:.9rem}
.text-block-section abbr[title]{text-decoration:underline dotted;text-underline-offset:.2em;cursor:help}

/* ---------- links ---------- */
/* The site sets a{color:inherit;text-decoration:none}, which inside a wall of
   text leaves a link indistinguishable from the sentence around it. Underlined
   and in --brown (10.6:1) rather than the brand orange, which is 2.18:1 on
   white and cannot carry body text. (Checklist 7.1, 8.4) */
.text-block-section a{
  color:var(--brown);text-decoration:underline;text-decoration-thickness:1px;
  text-underline-offset:.2em;transition:background .2s ease,color .2s ease;
}
.text-block-section a:hover{
  color:var(--navy);background:var(--orange-soft);text-decoration-thickness:2px;
}

/* ---------- lists ---------- */
/* ::marker rather than a drawn ::before, so an <ol> keeps its numbering and
   nesting still counts — a policy numbers itself and must not be renumbered. */
.text-block-section :is(ul,ol){margin:0 0 1.3rem;padding-left:1.6rem}
.text-block-section li{margin-bottom:.5rem;padding-left:.25rem}
.text-block-section li::marker{color:var(--orange);font-weight:800}
.text-block-section li>:is(ul,ol){margin:.55rem 0 0}
.text-block-section li:last-child{margin-bottom:0}

/* ---------- quotes, rules, images ---------- */
/* The <blockquote> the toolbar produces — in a policy usually a quoted
   paragraph of law. Not .quote, which is the navy pull quote prose.php builds
   from a typed field on the service pages. */
.text-block-section blockquote{
  margin:2rem 0;padding:.3rem 0 .3rem 1.5rem;
  border-left:3px solid var(--orange);color:var(--navy);font-weight:600;
}
.text-block-section blockquote>:last-child{margin-bottom:0}
.text-block-section hr{border:0;border-top:1px solid var(--line);margin:2.6rem 0}
.text-block-section img{border-radius:var(--radius);box-shadow:var(--shadow);margin:2rem 0}

/* ---------- tables ---------- */
/* The site's one table design is .price-table, which prose.php builds from a
   typed field; a table drawn with TinyMCE's own control arrives with no class
   at all and gets the same look here. A wide one is left to scroll the page
   rather than be clipped — a table is the one thing allowed to. (1.2) */
.text-block-section table{
  width:100%;border-collapse:separate;border-spacing:0;margin:1.8rem 0;
  background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;
  font-size:.97rem;
}
.text-block-section caption{
  caption-side:top;text-align:left;font-weight:800;color:var(--navy);padding:0 0 .7rem;
}
.text-block-section th{
  background:var(--navy);color:#fff;text-align:left;padding:14px 18px;
  font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;
}
/* A header cell in the body is a row label, not a column heading. */
.text-block-section tbody th{
  background:var(--cream);color:var(--navy);
  font-size:inherit;letter-spacing:0;text-transform:none;
}
.text-block-section td{padding:14px 18px;border-top:1px solid var(--line);vertical-align:top}
