/* Sarshar Institute: a quiet, accessible extension of the original identity. */
:root {
  --sihr-ink: #383744;
  --sihr-muted: #666171;
  --sihr-heading: #655b77;
  --sihr-blue: #356c91;
  --sihr-blue-deep: #245879;
  --sihr-line: #d8e2e9;
  --sihr-soft: #f6f8fb;
  --sihr-lilac: #eee9f7;
  --sihr-green: #edf5e9;
  --sihr-radius: .7rem;
  --font-body: Tahoma, Arial, sans-serif;
  --font-heading: var(--font-body);
}
html { scroll-padding-top: 2rem; }
html:lang(en) { --font-body: Arial, Helvetica, sans-serif; }
body.sihr-page { margin: 0; color: var(--sihr-ink); background: #fff; font-family: var(--font-body); font-size: 1rem; line-height: 1.9; -webkit-text-size-adjust: 100%; overflow-wrap: break-word; }
.sihr-page *, .sihr-page *::before, .sihr-page *::after { box-sizing: border-box; }
.sihr-page [hidden] { display: none !important; }
.sihr-page img { max-width: 100%; height: auto; }
.sihr-page a { color: var(--sihr-blue); text-decoration-thickness: .07em; text-underline-offset: .22em; }
.sihr-page a:hover { color: var(--sihr-blue-deep); }
.sihr-page a:focus-visible, .sihr-page button:focus-visible, .sihr-page summary:focus-visible, .sihr-page input:focus-visible, .sihr-page textarea:focus-visible, .sihr-page select:focus-visible { outline: 3px solid #4c87aa; outline-offset: 4px; }
.sihr-page button, .sihr-page input, .sihr-page textarea, .sihr-page select { font: inherit; }
.sihr-page button, .sihr-page summary { cursor: pointer; }
.sihr-page button:disabled { cursor: not-allowed; opacity: .6; }
.sihr-page button { min-height: 44px; border: 1px solid var(--sihr-line); border-radius: .4rem; padding: .45rem .9rem; background: #fff; color: var(--sihr-ink); }
.sihr-page button:hover:not(:disabled) { border-color: #8ba9c0; background: #f6f8fb; }
.sihr-page .button-primary, .sihr-page button[type=submit] { background: var(--sihr-blue); color: #fff; border-color: var(--sihr-blue); }
.sihr-page .button-primary:hover:not(:disabled), .sihr-page button[type=submit]:hover:not(:disabled) { background: var(--sihr-blue-deep); border-color: var(--sihr-blue-deep); color: #fff; }
.sihr-page .button-link { border: 0; background: transparent; color: var(--sihr-blue); text-decoration: underline; text-underline-offset: .2em; padding: .4rem .25rem; }
.sihr-page .visually-hidden, .sihr-page .screen-reader-text { position: absolute !important; inline-size: 1px; block-size: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sihr-page .skip-link { position: absolute; inset-block-start: -10rem; inset-inline-start: 1rem; padding: .7rem 1rem; color: #fff; background: var(--sihr-blue-deep); z-index: 1000; }
.sihr-page .skip-link:focus { inset-block-start: .5rem; }
.site-header { width: min(1160px, calc(100% - 3rem)); margin: 0 auto; padding: 1.25rem 0; border-bottom: 1px solid var(--sihr-line); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header .brand { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; flex: 0 1 290px; color: var(--sihr-heading); }
.site-header .brand > img { display: block; width: 270px; max-height: 100px; object-fit: contain; }
.site-header .brand .brand-mark { width: 62px; height: 62px; flex: 0 0 62px; }
.site-header .brand .brand-name { font-size: 1rem; line-height: 1.6; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; column-gap: 1.25rem; row-gap: .3rem; font-size: .9375rem; line-height: 1.6; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem 0; text-decoration: none; color: var(--sihr-muted); }
.site-nav a:hover, .site-nav a[aria-current=page] { color: var(--sihr-blue-deep); }
.site-nav a[aria-current=page] { box-shadow: inset 0 -2px #8db5cd; }
.site-nav .locale-link, .locale-link { font-size: .875rem; white-space: nowrap; color: var(--sihr-blue); }
.site-nav .locale-link { border-inline-start: 1px solid var(--sihr-line); padding-inline-start: 1.1rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.2rem; }
.site-nav .menu { position: relative; display: none; }
.site-nav .menu > summary { display: none; list-style: none; }
.site-nav .menu > summary::-webkit-details-marker { display: none; }
.site-nav .menu > :not(summary) { display: flex; }
.sihr-page main { display: block; }
.sihr-page .page-heading { width: min(1160px, calc(100% - 3rem)); margin: 3.25rem auto 2.3rem; }
.sihr-page .eyebrow { color: var(--sihr-blue); font-size: .875rem; margin: 0 0 .5rem; }
.sihr-page h1, .sihr-page h2, .sihr-page h3 { font-family: var(--font-heading); color: var(--sihr-heading); font-weight: 500; overflow-wrap: anywhere; }
.sihr-page h1 { margin: 0 0 1.3rem; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.55; }
.sihr-page h2 { margin: 2.4rem 0 .85rem; font-size: clamp(1.4rem, 2.1vw, 1.7rem); line-height: 1.6; scroll-margin-top: 1.5rem; }
.sihr-page h3 { margin: 1.6rem 0 .65rem; font-size: 1.15rem; line-height: 1.7; }
.sihr-page p { margin: 0 0 1.15rem; }
.sihr-page .lead { font-size: 1.1rem; line-height: 2; color: #514c60; max-width: 54rem; }
.sihr-page .breadcrumb { margin: 0 0 1.4rem; font-size: .875rem; color: var(--sihr-muted); }
.sihr-page .breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; gap: .55rem; padding: 0; margin: 0; }
.sihr-page .breadcrumb li + li::before { content: "/"; padding-inline-end: .55rem; color: #8d91a0; }
.article-layout { width: min(1160px, calc(100% - 3rem)); margin: 0 auto 4rem; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 4.2rem; align-items: start; }
.article-layout > .prose { min-width: 0; max-width: 52rem; font-size: 1.0625rem; line-height: 2; }
.article-layout > .prose > :first-child { margin-block-start: 0; }
.article-layout > .prose > h1:first-child { border-bottom: 1px solid #bed3e1; padding-bottom: 1rem; margin-bottom: 1.7rem; }
.prose ul, .prose ol { padding-inline-start: 1.5rem; margin: .7rem 0 1.4rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: #5b7d99; }
.prose strong { font-weight: 700; color: #484354; }
.prose blockquote { margin: 1.8rem 0; padding: .8rem 1.2rem; border-inline-start: 3px solid #a7cadd; background: #f5f8fb; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .notice, .prose .medical-note, .prose .callout { margin: 1.8rem 0; padding: 1rem 1.2rem; border-inline-start: 3px solid #94b6cc; background: #f4f7fa; border-radius: .4rem; color: #565264; font-size: .9375rem; line-height: 1.95; }
.prose .notice p:last-child, .prose .medical-note p:last-child, .prose .callout p:last-child { margin-bottom: 0; }
.prose .sources { padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--sihr-line); font-size: .9375rem; line-height: 1.8; }
.prose .sources h2 { font-size: 1.2rem; margin-top: 0; }
.prose .sources li { margin-bottom: .7rem; }
.prose .reviewed, .prose .updated { color: var(--sihr-muted); font-size: .875rem; }
.page-index { border-inline-start: 1px solid var(--sihr-line); padding-inline-start: 1.2rem; font-size: .9375rem; line-height: 1.9; }
.page-index h2, .page-index h3 { font-size: 1rem; margin: 0 0 .8rem; color: var(--sihr-heading); }
.page-index ul { list-style: none; padding: 0; margin: 0; }
.page-index li { margin: 0 0 .4rem; }
.page-index a { display: block; padding: .35rem 0; text-decoration: none; color: var(--sihr-muted); }
.page-index a:hover, .page-index a[aria-current] { color: var(--sihr-blue-deep); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 1.8rem 0; }
.feature { padding: 1.4rem; border: 1px solid var(--sihr-line); border-radius: var(--sihr-radius); background: #fbfcfd; }
.feature h2, .feature h3 { margin-top: 0; }
.feature p:last-child { margin-bottom: 0; }
.sihr-home .site-header { border-bottom: 0; padding-block: .6rem; }
.sihr-home .site-header .brand { visibility: hidden; }
.sihr-home .site-nav { margin-inline-start: auto; }
.sihr-home .site-nav .menu { display: none; }
.sihr-home .hero { max-width: 920px; margin: .5rem auto 0; padding: 1rem 1.5rem .8rem; text-align: center; }
.hero .hero-mark { display: block; width: clamp(150px, 20vw, 230px); aspect-ratio: 1; margin: 0 auto 1rem; }
.hero .hero-wordmark { display: block; width: min(640px, 88vw); margin: 0 auto; object-fit: contain; }
.hero .hero-rule { width: min(620px, 80vw); margin: 1.1rem auto; border: 0; border-top: 1px solid #c9dce7; }
.sihr-home .hero h1 { margin: .75rem 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.sihr-home .hero p { max-width: 44rem; margin: 1rem auto 0; font-size: .95rem; color: var(--sihr-muted); }
.home-grid { width: min(1160px, calc(100% - 2.5rem)); margin: 2.2rem auto 3.25rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.3rem; }
.home-card { --circle-1: #c8eff2; --circle-2: #c3ddef; --circle-3: #b8e5f1; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; aspect-ratio: 1; padding: 1.5rem 1.25rem; isolation: isolate; text-align: center; text-decoration: none; color: #49445a !important; background: var(--card-art, radial-gradient(ellipse at 38% 45%, var(--circle-1) 0%, var(--circle-2) 47%, var(--circle-3) 67%, transparent 71%)); background-size: contain; background-position: center; background-repeat: no-repeat; border-radius: 50%; transition: transform .18s ease, box-shadow .18s ease; }
.home-card:nth-child(2) { --circle-1: #e3dcfb; --circle-2: #ded4f2; --circle-3: #e9e0f8; }
.home-card:nth-child(3) { --circle-1: #e1f2d8; --circle-2: #d6edcb; --circle-3: #e6f2df; }
.home-card:nth-child(4) { --circle-1: #ede0f1; --circle-2: #e6d6ee; --circle-3: #f1e6f1; }
.home-card .card-title, .home-card strong { font-weight: 500; font-size: 1.12rem; line-height: 1.8; }
.home-card .card-description, .home-card small { display: block; margin-top: .5rem; max-width: 12rem; color: #60586a; font-size: .875rem; line-height: 1.8; }
.home-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px -14px #777196; }
.home-card:focus-visible { outline-offset: 0 !important; }
.site-footer { width: min(1160px, calc(100% - 3rem)); margin: 0 auto; border-top: 1px solid var(--sihr-line); padding: 1.1rem 0 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem 1.5rem; color: var(--sihr-muted); font-size: .8125rem; line-height: 1.8; }
.site-footer p { margin: 0; }
.site-footer nav, .site-footer .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.site-footer a, .site-footer button { color: #5e6d7e; font-size: .875rem; }
.site-footer button { min-height: 36px; padding: .25rem .1rem; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .2em; }
.site-footer .updated { display: block; }
.sihr-home .site-footer { width: min(1060px, calc(100% - 3rem)); }
#sihr-consent { position: fixed; inset-inline: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); margin: 0 auto; width: min(900px, calc(100% - 2rem)); z-index: 900; display: flex; align-items: center; gap: .7rem 1.3rem; padding: .75rem 1rem; color: #454253; background: rgba(250,251,254,.98); border: 1px solid #c9d7e5; border-radius: .7rem; box-shadow: 0 5px 28px rgba(58,67,87,.13); font-size: .875rem; line-height: 1.8; }
#sihr-consent p { margin: 0; flex: 1 1 auto; }
#sihr-consent .consent-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: .5rem; align-items: center; }
#sihr-consent button { font-size: .875rem; padding: .35rem .7rem; white-space: nowrap; }
#sihr-consent [data-consent=analytics] { background: #e8edf7; border-color: #c7d4e7; }
#sihr-consent [data-consent=analytics]:hover { background: #dfe8f5; }
#sihr-consent:focus { outline: 0; }
#sihr-language-suggestion { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .8rem; align-items: center; width: max-content; max-width: calc(100% - 2rem); margin: .5rem auto 1rem; padding: .3rem .8rem; background: #f5f7fb; border-radius: .5rem; font-size: .875rem; line-height: 1.8; }
#sihr-language-suggestion button { font-size: .8125rem; min-height: 36px; padding: .1rem .5rem; border: 0; background: transparent; }
#sihr-contact { margin: 1.8rem 0 2.6rem; }
#sihr-contact .form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
#sihr-contact .form-field { margin-bottom: 1.15rem; }
#sihr-contact .form-grid .form-field { margin-bottom: 0; }
#sihr-contact .form-wide { grid-column: 1 / -1; }
#sihr-contact label { display: block; margin-bottom: .4rem; color: #50495e; font-size: .9375rem; }
#sihr-contact input:not([type=checkbox]):not([type=hidden]):not([type=submit]), #sihr-contact textarea, #sihr-contact select { display: block; width: 100%; min-height: 47px; padding: .6rem .75rem; border: 1px solid #bdcad6; border-radius: .4rem; background: #fff; color: var(--sihr-ink); font-size: 1rem; line-height: 1.6; box-shadow: none; }
#sihr-contact textarea { min-height: 180px; resize: vertical; }
#sihr-contact input[type=email] { direction: ltr; text-align: start; }
#sihr-contact .field-hint, #sihr-contact .field-count { margin: .3rem 0 0; color: var(--sihr-muted); font-size: .8125rem; line-height: 1.7; }
#sihr-contact .field-count { text-align: end; }
#sihr-contact .field-count.near-limit { color: #8c4e18; }
#sihr-contact .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.1rem; }
#sihr-contact .form-status { margin-top: 1rem; font-size: .9375rem; color: #355c48; }
#sihr-contact .form-status[data-state=error] { color: #874135; }
#sihr-contact .form-status:not(:empty) { border-inline-start: 3px solid currentColor; padding: .65rem .9rem; background: #f7f9fa; }
#sihr-contact .honeypot { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
#sihr-turnstile { max-width: 100%; margin: .5rem 0; }
#sihr-contact .form-unavailable { padding: .8rem 1rem; background: #f4f7fb; color: var(--sihr-muted); border-radius: .5rem; }
html:lang(en) .sihr-page { line-height: 1.75; }
html:lang(en) .article-layout > .prose { line-height: 1.85; }
html:lang(en) .sihr-page h1 { line-height: 1.25; }
html:lang(en) .sihr-page h2 { line-height: 1.35; }
html:lang(en) .sihr-page .lead { line-height: 1.8; }
@media (min-width: 1000px) { .page-index { position: sticky; top: 2rem; } }
@media (max-width: 1000px) {
  .site-header { align-items: center; gap: 1rem; }
  .site-header .brand { flex-basis: 235px; }
  .site-nav { font-size: .875rem; column-gap: .8rem; }
  .site-nav ul { gap: .2rem .75rem; }
  .article-layout { grid-template-columns: minmax(0,1fr) 190px; gap: 2rem; }
  .home-grid { gap: .5rem; }
  .home-card { padding: 1rem; }
  .home-card .card-title, .home-card strong { font-size: 1rem; }
  .home-card .card-description { font-size: .8125rem; }
}
@media (max-width: 760px) {
  .site-header { width: calc(100% - 2rem); padding: .8rem 0; }
  .site-header .brand { flex: 0 1 230px; }
  .site-header .brand > img { max-height: 74px; }
  .site-nav { flex-wrap: nowrap; gap: .8rem; }
  .site-nav > ul { display: none; }
  .site-nav .menu { display: block; }
  .site-nav .menu > summary { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .35rem .7rem; border: 1px solid var(--sihr-line); border-radius: .4rem; white-space: nowrap; }
  .site-nav .menu > summary::after { content: ""; width: .45rem; height: .45rem; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: rotate(45deg); margin-inline-start: .7rem; margin-block-end: .25rem; }
  .site-nav .menu[open] > summary::after { transform: rotate(225deg); margin-block-end: -.15rem; }
  .site-nav .menu:not([open]) > :not(summary) { display: none; }
  .site-nav .menu[open] > :not(summary) { display: flex; flex-direction: column; align-items: stretch; position: absolute; inset-block-start: calc(100% + .5rem); inset-inline-end: 0; width: min(290px, calc(100vw - 2rem)); padding: .6rem 1rem; z-index: 100; border: 1px solid var(--sihr-line); border-radius: .5rem; background: #fff; box-shadow: 0 8px 22px rgba(50,63,80,.1); }
  .site-nav .locale-link { border-inline-start: 0; padding-inline-start: 0; }
  .sihr-page .page-heading { width: calc(100% - 2.5rem); margin: 2rem auto 1.7rem; }
  .article-layout { width: calc(100% - 2.5rem); display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.7rem; }
  .article-layout > .prose { max-width: 100%; font-size: 1rem; line-height: 2; }
  .page-index { width: 100%; order: -1; border-inline-start: 0; border-block-end: 1px solid var(--sihr-line); padding: 0 0 1rem; }
  .page-index ul { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
  .page-index li { margin: 0; }
  .page-index h2, .page-index h3 { margin-bottom: .3rem; }
  .page-index a { font-size: .875rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .sihr-home .site-header { min-height: 52px; }
  .sihr-home .site-header .brand { display: none; }
  .sihr-home .hero { margin-top: 0; padding-top: .6rem; }
  .hero .hero-mark { width: 165px; margin-bottom: .8rem; }
  .hero .hero-wordmark { width: min(520px, 86vw); }
  .sihr-home .hero p { font-size: .875rem; }
  .home-grid { width: min(580px, calc(100% - 1.5rem)); margin: 1.5rem auto 2rem; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .6rem; }
  .home-card { padding: 1.3rem; }
  .home-card .card-title, .home-card strong { font-size: 1.0625rem; }
  .home-card .card-description { max-width: 11rem; }
  .site-footer, .sihr-home .site-footer { width: calc(100% - 2.5rem); padding: .9rem 0 1rem; gap: .25rem 1.2rem; }
  #sihr-consent { align-items: stretch; flex-direction: column; gap: .45rem; padding: .7rem .85rem; inset-inline: .65rem; bottom: max(.65rem, env(safe-area-inset-bottom)); width: calc(100% - 1.3rem); font-size: .875rem; }
  #sihr-consent .consent-actions { justify-content: flex-end; }
  #sihr-consent button { min-height: 40px; }
}
@media (max-width: 450px) {
  .site-header .brand { flex-basis: 190px; }
  .site-nav { gap: .45rem; }
  .site-nav .menu > summary { font-size: .875rem; padding-inline: .45rem; }
  .site-nav .locale-link { font-size: .875rem; }
  .home-card { padding: 1rem .75rem; }
  .home-card .card-title, .home-card strong { font-size: .9375rem; }
  .home-card .card-description, .home-card small { font-size: .875rem; line-height: 1.7; margin-top: .3rem; }
  #sihr-contact .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sihr-page *, .sihr-page *::before, .sihr-page *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media print {
  .site-nav, .page-index, #sihr-consent, #sihr-language-suggestion, .site-footer button, #sihr-contact, .skip-link { display: none !important; }
  .site-header, .site-footer, .sihr-page .page-heading, .article-layout { width: 100%; }
  .article-layout { display: block; }
  .sihr-page a { color: inherit; }
  .sihr-page h2, .sihr-page h3 { break-after: avoid; }
  .sihr-page .medical-note { break-inside: avoid; }
}
