:root {
  --terracotta: #b84225;
  --terracotta-dark: #8d2d1c;
  --wine: #4b100d;
  --gold: #edae47;
  --ivory: #fffaf3;
  --cream: #f8efe4;
  --ink: #292732;
  --muted: #666473;
  --green: #23623e;
  --line: #e9ddd1;
  --shadow: 0 16px 50px rgba(82, 37, 26, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: "DM Sans", sans-serif; }
a { color: inherit; }
h1, h2, h3, .footer-brand { color: var(--wine); font-family: "Libre Caslon Display", Georgia, serif; }
h1, h2, h3, p { margin-top: 0; }
.container { max-width: 1180px; }
.skip-link { position: fixed; z-index: 1000; top: -80px; left: 1rem; padding: .8rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }

.site-header { position: relative; z-index: 20; background: rgba(255, 252, 247, .97); border-bottom: 1px solid rgba(87, 25, 17, .08); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; width: 275px; height: 70px; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 2.1rem; font-size: .94rem; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--terracotta); }
.btn-primary-custom, .card-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; color: #fff !important; background: var(--terracotta); padding: .82rem 1.35rem; font-weight: 700; text-decoration: none; }
.btn-primary-custom:hover, .card-button:hover { background: var(--terracotta-dark); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: .55rem .8rem; }
.menu-toggle { flex-shrink: 0; color: var(--wine); min-width: 44px; min-height: 44px; }
.menu-toggle svg { display: block; }
.menu-toggle:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.hero { overflow: hidden; color: #fff; background: radial-gradient(circle at 75% 28%, rgba(237,174,71,.35), transparent 22%), linear-gradient(125deg, #731f15 0%, #b54226 58%, #8b2a1a 100%); }
.hero-grid { min-height: 500px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; }
.hero-copy { padding: 4.7rem 0 6.7rem; }
.eyebrow, .section-label { letter-spacing: .15em; text-transform: uppercase; font-size: .76rem; font-weight: 700; }
.eyebrow { color: #fff4df; }
.hero h1 { max-width: 700px; margin-bottom: 1.1rem; color: #fff; font-size: clamp(3rem, 5.5vw, 5.2rem); line-height: .98; }
.hero h1 em, .page-hero h1 em { color: #f5c568; font-style: normal; }
.hero-lead { max-width: 610px; font-size: 1.2rem; line-height: 1.55; }
.button-outline-light, .button-light { display: inline-flex; gap: 1rem; border: 2px solid rgba(255,255,255,.9); border-radius: 999px; padding: .68rem 1.35rem; color: #fff; font-weight: 700; text-decoration: none; }
.hero-art { position: relative; min-height: 420px; overflow: visible; border: 1px solid rgba(255,255,255,.18); border-radius: 55% 45% 30% 70% / 46% 30% 70% 54%; box-shadow: inset 0 0 0 12px rgba(255,255,255,.05); }
.hero-art > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border: 2px solid var(--gold); border-radius: 50%; }
.hero-art::before { inset: -35px -120px 65px 45px; transform: rotate(-18deg); }
.hero-art::after { width: 18px; height: 18px; right: 5%; top: 16%; background: var(--gold); }
.hero-art span { position: absolute; right: -10px; bottom: 35px; padding: 1rem 1.35rem; border-radius: 14px; color: var(--wine); background: #fff; box-shadow: var(--shadow); }

.search-shell { position: relative; z-index: 5; margin-top: -74px; }
.search-card { padding: 1.6rem 1.8rem 1rem; border: 1px solid rgba(95,48,33,.10); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.search-card h2 { margin-bottom: 1rem; font-size: 2rem; }
.search-fields { display: grid; grid-template-columns: 1.3fr 1fr 1.15fr auto; gap: .75rem; }
.search-fields label { margin: 0; }
.search-fields input, .search-fields select, .filters select { width: 100%; min-height: 52px; border: 1px solid #dcdde3; border-radius: 8px; padding: 0 1rem; color: var(--ink); background: #fff; }
.search-fields button { min-height: 52px; border: 0; border-radius: 8px; padding: 0 2rem; color: #fff; background: var(--terracotta); font-weight: 700; }
.location-search { position: relative; min-width: 0; }
.location-input { position: relative; }
.search-fields .location-input input { padding-right: 46px; }
.search-fields .location-near { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 40px; min-height: 42px; padding: 0; color: var(--terracotta); background: var(--cream); }
.location-options { position: absolute; top: 58px; left: 0; z-index: 30; width: max(100%, 280px); max-width: min(360px, calc(100vw - 48px)); max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: .4rem; background: #fff; box-shadow: var(--shadow); }
.search-fields .location-options button { display: block; width: 100%; min-height: 44px; padding: .65rem .75rem; color: var(--ink); background: #fff; text-align: left; font-size: .9rem; font-weight: 400; }
.search-fields .location-options button:first-child { color: var(--terracotta); font-weight: 700; }
.location-options button small { display: block; margin-top: .2rem; color: var(--muted); font-size: .75rem; }
.search-fields .location-options button:hover, .search-fields .location-options button[aria-selected="true"], .search-fields .location-options button:focus-visible { background: var(--cream); }
.location-options p, .location-status, .location-note { display: block; margin: .6rem 0 0; color: var(--muted); font-size: .82rem; }
.location-options p { padding: .5rem; }
.catalog-search { position: relative; min-width: 0; }
.catalog-search [hidden] { display: none !important; }
.catalog-search .catalog-query { display: block; width: 100%; min-width: 0; min-height: 52px; border: 1px solid #dcdde3; border-radius: 8px; padding: 0 1rem; color: var(--ink); background: #fff; }
.catalog-options { position: absolute; z-index: 30; top: 58px; left: 0; width: 100%; min-width: min(280px,calc(100vw - 48px)); max-width: calc(100vw - 48px); max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: .4rem; background: #fff; box-shadow: var(--shadow); }
.catalog-search .catalog-option { display: block; width: 100%; min-height: 44px; border: 0; border-radius: 6px; padding: .65rem .75rem; color: var(--ink); background: #fff; text-align: left; font-size: .92rem; font-weight: 400; overflow-wrap: anywhere; }
.catalog-option small { display: block; margin-top: .2rem; color: var(--muted); font-size: .75rem; }
.catalog-option:hover, .catalog-option:focus-visible, .catalog-option[aria-selected="true"] { background: var(--cream) !important; }
.catalog-options p { margin: .5rem; color: var(--muted); font-size: .8rem; }
.catalog-selected { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.catalog-selected:empty { display: none; }
.catalog-search .catalog-chip { max-width: 100%; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .75rem; color: var(--wine); background: var(--cream); text-align: left; overflow-wrap: anywhere; }
.popular-searches { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; padding: .9rem 0; font-size: .85rem; }
.popular-searches a { border-radius: 999px; padding: .38rem .85rem; background: var(--cream); text-decoration: none; }
.direct-contact { margin: 0; border-radius: 8px; padding: .75rem 1rem; color: var(--green); background: #f0f4e9; text-align: center; font-weight: 600; }
.direct-contact small { margin-left: 1rem; color: var(--muted); font-weight: 400; }

.trust-strip { padding: 2.25rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid > div { padding: .4rem 2rem; border-right: 1px solid var(--line); }
.trust-grid > div:last-child { border: 0; }
.trust-grid b, .trust-grid span { display: block; }
.trust-grid b { margin-bottom: .25rem; color: var(--wine); font-family: Georgia, serif; font-size: 1.2rem; }
.trust-grid span { color: var(--muted); font-size: .9rem; }

.section { padding: 4.5rem 0; }
.section-label { position: relative; margin-bottom: .6rem; color: #89776f; text-align: center; }
.section h2 { margin-bottom: 2rem; text-align: center; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.profile-card, .result-card, .empty-state, .filters { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 30px rgba(61,31,22,.06); }
.profile-card { padding: .75rem; }
.profile-photo { height: 210px; border-radius: 10px; background: linear-gradient(145deg, #eed6c4, #b86b50); }
.profile-card h3 { margin: .8rem 0 .1rem; font-size: 1.55rem; }
.profile-card p { margin-bottom: .35rem; color: var(--muted); }
.badge-community, .badge-condition { display: inline-block; margin: .3rem .2rem .3rem 0; border-radius: 999px; padding: .38rem .68rem; font-size: .76rem; }
.badge-community { color: var(--green); background: #e8f3e7; }
.badge-condition { color: #73533f; background: #fbefe4; }
.profile-card .card-button { width: 100%; margin-top: .6rem; }
.empty-state { max-width: 760px; margin: 1rem auto; padding: 2.6rem; text-align: center; }
.empty-state h3 { font-size: 1.8rem; }
.text-link { color: var(--terracotta); font-weight: 700; }
.clinical-note { margin: 1rem 0 0; color: #817d82; font-size: .82rem; font-style: italic; text-align: center; }

.steps { background: #fff; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.steps-grid article { padding: 1rem 2.2rem; border-right: 1px solid var(--line); }
.steps-grid article:last-child { border: 0; }
.steps-grid strong { color: var(--terracotta); font: 2.4rem Georgia, serif; }
.steps-grid h3 { font-size: 1.4rem; }
.steps-grid p { color: var(--muted); }
.cta-band { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 2rem; overflow: hidden; margin-top: 1rem; margin-bottom: 1rem; border-radius: 22px; padding: 3rem 5rem; color: #fff; background: linear-gradient(110deg, #a33220, #bf4e2e); }
.cta-band h2 { color: #fff; font-size: 3rem; }
.cta-band .button-light { width: 100%; justify-content: center; border-radius: 8px; color: var(--terracotta); background: #fff; }
.cta-band small { display: block; margin-top: .65rem; text-align: center; }
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
.about-grid h2 { text-align: left; }
.about-grid p { color: var(--muted); font-size: 1.02rem; }
.about-art { position: relative; min-height: 390px; display: flex; align-items: end; overflow: hidden; border-radius: 16px; padding: 2rem; color: #fff; }
.about-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-art span { position: relative; z-index: 1; font: 2rem Georgia, serif; text-shadow: 0 2px 15px rgba(0,0,0,.55); }
.section-label.left { text-align: left; }
.left-note { text-align: left; }
.faq-section { background: #fcf7f0; }
.faq-list { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq-list details { padding: 0 1.5rem; border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border: 0; }
.faq-list summary { cursor: pointer; padding: 1.1rem 0; color: var(--wine); font: 1.2rem Georgia, serif; }
.faq-list p { color: var(--muted); }
.professional-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; margin-bottom: 2rem; border-radius: 14px; padding: 2rem 3rem; background: var(--cream); }
.professional-cta h2, .professional-cta p { margin-bottom: .25rem; }

.site-footer { padding: 3rem 0 1.2rem; color: #fff6ed; background: linear-gradient(120deg, #51130e, #8e2d1c); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid > div { display: flex; flex-direction: column; gap: .45rem; }
.footer-grid a { color: #fff6ed; text-decoration: none; font-size: .88rem; }
.footer-brand { color: #fff; font-size: 2rem; }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.28); padding-top: 1rem; font-size: .8rem; }
.footer-legal a { color: #fff6ed; font-weight: 700; text-underline-offset: 3px; }

.page-hero { padding: 3rem 0 1.5rem; }
.page-hero h1 { font-size: clamp(2.5rem, 4.5vw, 4.5rem); }
.page-hero h1 em { color: var(--terracotta); }
.breadcrumb { color: var(--muted); font-size: .85rem; }
.search-card-page { margin-bottom: 1.5rem; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.active-filters-label { color: var(--muted); font-size: .9rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .6rem; max-width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: .6rem .85rem; color: var(--wine); background: var(--cream); font-size: .9rem; text-decoration: none; overflow-wrap: anywhere; }
.filter-chip span { font-size: 1.2rem; line-height: 1; }
.filter-chip:hover { color: var(--terracotta); border-color: var(--terracotta); }
.clear-filters { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem; color: var(--terracotta); font-weight: 700; text-underline-offset: 3px; }
.filter-chip:focus-visible, .clear-filters:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.results-layout { padding-bottom: 4rem; }
.results-grid { display: grid; grid-template-columns: 240px 1fr; gap: 1.25rem; }
.filters { align-self: start; padding: 1.25rem; }
.filters h2 { font-size: 1.5rem; }
.filters label { display: grid; gap: .5rem; }
.results-heading h2 { font: 1.2rem "DM Sans", sans-serif; }
.result-card { display: grid; grid-template-columns: 145px 1fr auto; align-items: center; gap: 1.25rem; margin-bottom: 1rem; padding: 1rem; }
.result-avatar { height: 145px; border-radius: 10px; background: linear-gradient(145deg, #eed6c4, #b86b50); }
.result-card h3 { margin-bottom: .2rem; font-size: 1.7rem; }
.result-card p { margin-bottom: .25rem; color: var(--muted); }
.inline-button { width: auto; }

.account-card, .indication-form { max-width: 720px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; padding: 2rem; background: #fff; box-shadow: var(--shadow); }
.account-card.wide, .indication-form { max-width: 980px; }
.account-card h1, .form-heading h1, .article-page h1 { color: var(--wine); font-size: clamp(2.4rem,5vw,4rem); }
.account-card form, .indication-form { display: grid; gap: 1rem; }
.account-card label, .indication-form label { display: grid; gap: .4rem; font-weight: 600; }
.account-card input, .indication-form input, .indication-form select, .indication-form textarea { width: 100%; border: 1px solid #d7d4d2; border-radius: 8px; padding: .75rem; background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.check-label { display: flex !important; grid-auto-flow: column; justify-content: start; align-items: center; gap: .6rem !important; }
.check-label input { width: auto; }
.account-actions { display: flex; align-items: center; gap: 1rem; }
.button-secondary { border: 1px solid var(--terracotta); border-radius: 8px; padding: .75rem 1.2rem; color: var(--terracotta); background: #fff; }
.form-alert, .form-success, .privacy-box { border-radius: 8px; padding: .9rem 1rem; }
.form-alert { color: #842029; background: #f8d7da; }
.form-success { color: #0f5132; background: #d1e7dd; }
.privacy-box { color: var(--green); background: #edf5ec; }
.form-heading { max-width: 980px; margin: 0 auto 1.5rem; }
.indication-form fieldset { border: 0; border-bottom: 1px solid var(--line); padding: 0 0 1.5rem; }
.indication-form legend { margin-bottom: 1rem; color: var(--wine); font: 1.7rem Georgia,serif; }
.form-help { color: var(--muted); font-size: .85rem; }
.auth-section { padding: 3.5rem 0; }
.auth-shell { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); grid-template-areas: "aside card"; gap: 2rem; max-width: 1080px; align-items: start; }
.auth-shell [hidden] { display: none !important; }
.auth-card { grid-area: card; width: 100%; min-width: 0; margin: 0; padding: 2.25rem; }
.auth-card h1 { margin-bottom: .75rem; font-size: clamp(2.4rem,4vw,3.3rem); line-height: 1.1; }
.auth-intro { margin-bottom: 1.5rem; color: var(--muted); line-height: 1.6; }
.auth-required-note { margin: -0.5rem 0 1.25rem; color: var(--muted); font-size: .82rem; }
.auth-feedback, .auth-card .form-success { margin-bottom: 1.25rem; }
.auth-field { display: grid; gap: .4rem; min-width: 0; }
.auth-card label { display: block; margin: 0; font-size: .92rem; }
.auth-card input:not([type="checkbox"]) { min-height: 50px; font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
.auth-card input::placeholder { color: #807b83; opacity: 1; }
.auth-card input:focus { outline: 0; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(184,66,37,.14); }
.auth-card input[aria-invalid="true"] { border-color: #a42936; }
.auth-optional { color: var(--muted); font-size: .82rem; font-weight: 400; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.auth-label-row a { color: var(--terracotta); font-size: .82rem; text-underline-offset: 3px; }
.password-control { position: relative; }
.auth-card .password-control input { padding-right: 6rem; }
.password-toggle { position: absolute; top: 3px; right: 3px; min-height: 44px; min-width: 80px; border: 0; border-radius: 6px; padding: .4rem .65rem; color: var(--terracotta); background: var(--cream); font-size: .82rem; font-weight: 700; }
.password-toggle:hover { background: var(--line); }
.auth-card .auth-consent { align-items: flex-start; line-height: 1.5; font-size: .85rem; font-weight: 400; }
.auth-card .auth-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--terracotta); }
.field-error { color: #a42936; font-size: .82rem; line-height: 1.45; }
.password-ready { color: var(--green); }
.auth-submit { min-height: 52px; gap: 1rem; margin-top: .25rem; }
.auth-submit:disabled { opacity: .7; cursor: wait; }
.auth-switch { margin: 1.5rem 0 0; border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: .9rem; text-align: center; line-height: 1.7; }
.auth-card a:focus-visible, .auth-card button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.auth-aside { grid-area: aside; min-width: 0; border: 1px solid var(--line); border-radius: 24px; padding: 2.5rem; background: radial-gradient(ellipse at top left,#ffe1b7,transparent 65%),var(--cream); }
.auth-emblem { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 2rem; border: 1px solid #e5cbb3; border-radius: 20px; color: var(--terracotta); background: rgba(255,255,255,.6); font-size: 2.5rem; }
.auth-aside .section-label { color: var(--terracotta-dark); line-height: 1.7; }
.auth-aside h2 { font-size: clamp(2rem,3vw,2.8rem); line-height: 1.15; }
.auth-aside p:not(.section-label) { line-height: 1.7; }
.auth-benefits { display: grid; gap: 1rem; margin: 1.75rem 0; padding: 0; list-style: none; font-size: .92rem; }
.auth-benefits li { display: flex; align-items: baseline; gap: .7rem; }
.auth-benefits li::before { content: "✓"; color: var(--terracotta); font-weight: 700; }
.auth-aside .auth-privacy { margin-bottom: 0; border-top: 1px solid #e5cbb3; padding-top: 1.25rem; color: var(--muted); font-size: .82rem; }
.condition-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .6rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.blog-card { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; background: #fff; }
.blog-card img { width: 100%; aspect-ratio: 16/10; border-radius: 9px; object-fit: cover; }
.blog-card h2 { margin: .5rem 0; font-size: 1.65rem; }
.narrow { max-width: 820px; }
.article-lead { color: var(--muted); font-size: 1.2rem; }
.article-image { width: 100%; max-height: 480px; margin: 1.5rem 0; border-radius: 14px; object-fit: cover; }
.article-content { line-height: 1.8; }
.demo-notice { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border: 1px solid #ecd4a5; border-radius: 12px; color: #6b4918; background: #fff4dc; }
.professional-heading { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
.professional-heading h1 { font-size: clamp(2.2rem,4vw,3.6rem); }
.professional-avatar { display: grid; place-items: center; flex: 0 0 130px; height: 130px; overflow: hidden; border-radius: 24px; color: var(--terracotta); background: var(--cream); }
.professional-avatar svg { width: 72px; height: 72px; }
.professional-avatar img { width: 100%; height: 100%; object-fit: cover; }
.professional-details { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 1.5rem; }
.professional-panel { margin-bottom: 1.5rem; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; background: #fff; }
.professional-panel h2 { margin-bottom: 1rem; font-size: 1.8rem; text-align: left; }
.professional-panel h3 { font-size: 1.4rem; }
.professional-panel p { overflow-wrap: anywhere; }
.professional-location + .professional-location { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.rich-text img { display: block; max-width: 100%; height: auto; margin: 1.25rem auto; border-radius: 12px; }
.rich-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.rich-text th, .rich-text td { padding: .65rem; border: 1px solid var(--line); }
.rich-text blockquote { margin: 1.25rem 0; padding: .8rem 1rem; border-left: 4px solid var(--gold); background: #fff8ed; }

@media (min-width: 901px) {
  .hero-grid { width: calc(100% - 64px); max-width: 1440px; min-height: 700px; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: stretch; }
  .hero-copy { position: relative; z-index: 1; align-self: center; padding: 5rem 0 11rem; }
  .hero-art { align-self: end; min-height: 610px; margin-top: 2rem; margin-bottom: -1rem; }
  .hero-art span { top: 45px; bottom: auto; }
  .hero + .search-shell { margin-top: -140px; }
}

@media (max-width: 900px) {
  .auth-shell { max-width: 620px; grid-template-columns: minmax(0,1fr); grid-template-areas: "card" "aside"; gap: 1.5rem; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 88px; right: 1rem; left: 1rem; display: none; flex-direction: column; align-items: stretch; gap: .3rem; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: .7rem; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 1rem; }
  .hero-art { min-height: 300px; margin-bottom: 6rem; }
  .hero-art::before { inset: -20px 24px 35px; transform: rotate(-8deg); }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid, .steps-grid { grid-template-columns: 1fr; }
  .trust-grid > div, .steps-grid article { border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem; }
  .cta-band { padding: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .auth-section.section { padding: 1.75rem 0; }
  .auth-card, .auth-aside { padding: 1.5rem; }
  .auth-card h1 { font-size: 2.5rem; }
  .auth-emblem { margin-bottom: 1.25rem; }
  .professional-heading { align-items: flex-start; flex-direction: column; }
  .professional-avatar { flex-basis: auto; width: 100px; height: 100px; }
  .professional-details { grid-template-columns: minmax(0,1fr); }
  .header-inner { min-height: 72px; }
  .brand { width: 210px; height: 58px; }
  .main-nav { top: 72px; }
  .hero h1 { font-size: 3rem; }
  .hero-art { min-height: 240px; }
  .search-shell { margin-top: -45px; }
  .search-card { padding: 1.1rem; }
  .search-fields, .profile-grid, .cta-band, .footer-grid { grid-template-columns: 1fr; }
  .direct-contact small { display: block; margin: .35rem 0 0; }
  .section { padding: 3.25rem 0; }
  .cta-band { width: calc(100% - 1.5rem); margin-right: auto; margin-left: auto; padding: 2rem; grid-template-columns: minmax(0, 1fr); }
  .cta-band > div { min-width: 0; overflow-wrap: anywhere; }
  .cta-band h2 { font-size: 2.3rem; }
  .professional-cta { width: calc(100% - 1.5rem); align-items: stretch; flex-direction: column; margin-right: auto; margin-left: auto; padding: 1.5rem; }
  .result-card { grid-template-columns: 85px 1fr; }
  .result-avatar { height: 85px; }
  .result-card .card-button { grid-column: 1 / -1; }
  .form-grid, .condition-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-legal { align-items: flex-start; flex-direction: column; text-align: left; }
}


/* Área do paciente e envio de indicações. */
.member-section, .recommendation-section { padding: 3rem 0 4rem; }
.member-container { max-width: 1180px; }
.member-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.member-heading h1, .recommendation-heading h1 { margin-bottom: .65rem; font-size: clamp(2.5rem,4vw,3.8rem); line-height: 1.12; overflow-wrap: anywhere; }
.member-heading p:last-child { margin: 0; color: var(--muted); }
.member-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; flex-shrink: 0; max-width: 100%; }
.member-heading-actions a { min-height: 48px; gap: .5rem; text-decoration: none; }
.member-feedback { margin-bottom: 1.5rem; }
.member-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.member-stat { display: grid; gap: .5rem; border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; background: #fff; }
.member-stat > span { font-size: .9rem; font-weight: 600; }
.member-stat strong { color: var(--wine); font-size: 2.2rem; line-height: 1; }
.member-stat small { color: var(--muted); font-size: .78rem; }
.member-stat.needs-attention { border-color: #dcaa54; background: #fff5df; }
.member-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 1.5rem; }
.member-main, .member-sidebar { display: grid; gap: 1.25rem; min-width: 0; }
.member-panel { min-width: 0; border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; background: #fff; }
.member-panel h2, .member-privacy h2 { margin-bottom: .6rem; font-size: 1.6rem; text-align: left; }
.member-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.member-panel-heading p, .member-help p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.member-help p { margin-bottom: 1rem; }
.member-filter { display: grid; gap: .3rem; color: var(--muted); font-size: .78rem; }
.member-filter select { max-width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: .5rem .65rem; color: var(--ink); background: #fff; font-size: .85rem; }
.member-notice { display: flex; align-items: center; gap: 1rem; justify-content: space-between; border: 1px solid #e6d3ae; border-radius: 14px; padding: 1.25rem; background: #fff5df; }
.member-notice h2 { text-align: left; margin: 0 0 .4rem; font: 700 1rem "DM Sans",sans-serif; }
.member-notice p { margin: 0; font-size: .85rem; line-height: 1.6; }
.member-notice form { flex-shrink: 0; }
.member-notice button { font-size: .82rem; }
.member-empty { padding: 1.5rem .5rem; text-align: center; }
.member-empty-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 22px; color: var(--terracotta); background: var(--cream); font-size: 2.5rem; }
.member-empty h3 { font-size: 1.8rem; }
.member-empty p { max-width: 480px; margin: 0 auto 1.5rem; color: var(--muted); line-height: 1.7; }
.member-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.member-indication-list { display: grid; gap: 1rem; }
.member-indication { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; }
.member-indication-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.member-indication-heading h3 { margin: 0; font-size: 1.5rem; overflow-wrap: anywhere; }
.member-item-meta, .member-item-date { margin-bottom: .45rem; color: var(--muted); font-size: .78rem; }
.member-item-date { margin-top: .65rem; }
.member-status { display: inline-flex; width: fit-content; flex-shrink: 0; border-radius: 999px; padding: .35rem .7rem; font-size: .74rem; font-weight: 700; line-height: 1.5; }
.status-pending { color: #765014; background: #fff0d2; }
.status-approved { color: #205b37; background: #e7f3e9; }
.status-rejected { color: #872f38; background: #fbe9ec; }
.status-adjustment { color: #8a390e; background: #ffead3; }
.status-neutral { color: #565262; background: #efedf1; }
.member-review { margin: 1rem 0; border-radius: 8px; padding: .9rem; background: #faf7f3; font-size: .85rem; line-height: 1.65; overflow-wrap: anywhere; }
.member-review strong { font-size: .8rem; }
.member-review p { margin: .3rem 0 0; }
.member-indication > a { min-height: 44px; font-size: .85rem; gap: .6rem; }
.member-avatar { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1rem; border-radius: 18px; color: var(--terracotta); background: var(--cream); font-size: 1.5rem; font-weight: 700; }
.member-profile h2 { font-size: 1.5rem; overflow-wrap: anywhere; }
.member-email { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.member-profile > a.button-secondary { display: flex; justify-content: center; margin-top: 1.25rem; text-decoration: none; font-size: .85rem; }
.member-profile form { margin-top: .6rem; }
.member-logout { width: 100%; min-height: 44px; border: 0; color: var(--muted); background: none; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.member-privacy { border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem; background: var(--cream); }
.member-privacy h2 { font-size: 1.4rem; }
.member-privacy p { color: var(--muted); font-size: .85rem; line-height: 1.7; }
.member-privacy a { color: var(--terracotta-dark); font-size: .82rem; font-weight: 600; text-underline-offset: 3px; }
.member-filter-empty { margin: 1rem 0 0; padding: 1.25rem; color: var(--muted); background: var(--cream); border-radius: 10px; line-height: 1.6; }
.member-section [hidden], .recommendation-section [hidden] { display: none !important; }
.member-section a:focus-visible, .member-section button:focus-visible, .member-section select:focus-visible, .recommendation-section a:focus-visible, .recommendation-section button:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.recommendation-heading { max-width: 850px; margin-bottom: 2rem; }
.recommendation-heading > p:not(.section-label) { max-width: 750px; color: var(--muted); line-height: 1.7; }
.recommendation-back { display: inline-block; margin-bottom: 1.5rem; font-size: .85rem; }
.recommendation-switch { display: inline-flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; border: 1px solid var(--line); border-radius: 12px; padding: .3rem; background: #fff; }
.recommendation-switch a { display: flex; align-items: center; justify-content: center; min-width: 140px; min-height: 44px; border-radius: 8px; padding: .6rem 1rem; text-decoration: none; font-size: .9rem; font-weight: 600; }
.recommendation-switch [aria-current="page"] { color: #fff; background: var(--terracotta); }
.recommendation-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 1.5rem; }
.recommendation-form { width: 100%; min-width: 0; max-width: none; margin: 0; border: 0; padding: 0; background: transparent; box-shadow: none; gap: 1.5rem; }
.recommendation-form fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; background: #fff; }
.recommendation-form legend { float: none; width: auto; max-width: 100%; margin: 0 0 .75rem; padding: 0 .3rem; font: 700 1.1rem/1.6 "DM Sans",sans-serif; }
.recommendation-number { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: .4rem; border-radius: 50%; color: var(--terracotta); background: var(--cream); font-size: .85rem; }
.recommendation-form label { display: block; margin: 0; font-size: .86rem; line-height: 1.6; }
.recommendation-form label small { color: var(--muted); font-size: .76rem; font-weight: 400; }
.recommendation-form input, .recommendation-form select, .recommendation-form textarea { display: block; min-height: 48px; margin-top: .35rem; font-size: 1rem; }
.recommendation-form input:focus, .recommendation-form select:focus, .recommendation-form textarea:focus { outline: 0; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(184,66,37,.12); }
.recommendation-form input[readonly] { color: var(--muted); background: #f7f4f0; }
.recommendation-form [aria-invalid="true"] { border-color: #a42936; }
.recommendation-form .field-error { display: block; margin-top: .4rem; }
.recommendation-form .form-grid { gap: 1.2rem 1rem; }
.recommendation-form .form-help { font-size: .8rem; line-height: 1.65; }
.recommendation-field-note { margin: 1rem 0 0; }
.required-mark { color: var(--terracotta); }
.recommendation-form .recommendation-online { align-self: end; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: .7rem; background: var(--ivory); font-weight: 400; }
.recommendation-form .check-label input { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: .15rem 0 0; padding: 0; accent-color: var(--terracotta); }
.recommendation-duplicates { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; font-size: .85rem; }
.recommendation-duplicates > p { margin-bottom: 0; }
.recommendation-duplicates [data-duplicate-results]:not(:empty) { margin-top: .8rem; border-radius: 10px; padding: 1rem; background: var(--cream); }
.recommendation-duplicates button { min-height: 44px; text-align: left; font-size: .82rem; }
.recommendation-story { margin-top: 1.5rem !important; }
.recommendation-story-help { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: .5rem; }
.recommendation-story-help p { margin: 0; }
.recommendation-story-help > span { flex-shrink: 0; }
.recommendation-sidebar { display: grid; align-self: start; gap: 1.25rem; }
.recommendation-sidebar h2 { font-size: 1.5rem; text-align: left; }
.recommendation-steps { display: grid; gap: 1.3rem; margin: 1.5rem 0; padding-left: 1.2rem; }
.recommendation-steps li { padding-left: .25rem; font-size: .88rem; }
.recommendation-steps li::marker { color: var(--terracotta); font-weight: 700; }
.recommendation-steps strong, .recommendation-steps span { display: block; }
.recommendation-steps span { margin-top: .3rem; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.recommendation-submit .privacy-box { padding: 1.25rem; font-size: .85rem; line-height: 1.7; }
.recommendation-submit .privacy-box p { margin: .5rem 0 0; }
.recommendation-submit .privacy-box a { font-weight: 600; text-underline-offset: 3px; }
.recommendation-submit-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.recommendation-submit-actions > a { font-size: .85rem; }
.recommendation-submit-actions button { gap: .6rem; min-height: 50px; }
.recommendation-submit-actions button:disabled { opacity: .7; cursor: wait; }
.legal-document { max-width: 900px; }
.legal-document h1 { font-size: clamp(2.5rem,4vw,3.7rem); }
.legal-document .article-content h2 { margin-top: 2rem; font-size: 1.8rem; text-align: left; }
.legal-document .article-content { overflow-wrap: anywhere; }
.legal-updated { color: var(--muted); font-size: .85rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: 1.5rem; }
.legal-nav a { min-height: 44px; padding: .6rem 0; color: var(--terracotta); text-underline-offset: 3px; font-size: .9rem; }
.legal-nav [aria-current="page"] { font-weight: 700; }
@media (max-width: 1000px) {
  .member-layout, .recommendation-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 1rem; }
  .member-notice, .member-panel-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 800px) {
  .member-layout, .recommendation-layout { grid-template-columns: minmax(0,1fr); }
  .member-heading { align-items: flex-start; flex-direction: column; }
  .member-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .member-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .member-sidebar .member-profile { grid-row: span 2; }
  .recommendation-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .member-section.section, .recommendation-section.section { padding: 1.75rem 0 2.5rem; }
  .member-stats { gap: .65rem; }
  .member-stat { padding: 1rem; }
  .member-stat > span { font-size: .8rem; }
  .member-stat small { font-size: .72rem; }
  .member-panel, .member-privacy, .recommendation-form fieldset { padding: 1.15rem; }
  .member-sidebar, .recommendation-sidebar { grid-template-columns: minmax(0,1fr); }
  .member-indication { padding: 1rem; }
  .member-indication-heading { flex-direction: column; gap: .75rem; }
  .member-filter { width: 100%; }
  .member-notice button, .member-notice form { width: 100%; }
  .member-buttons { align-items: stretch; flex-direction: column; }
  .recommendation-heading h1 { font-size: 2.6rem; }
  .recommendation-switch { display: flex; }
  .recommendation-switch a { flex: 1; min-width: 0; }
  .recommendation-form legend { font-size: 1rem; }
  .recommendation-story-help { align-items: flex-start; flex-direction: column; gap: .3rem; }
  .recommendation-submit-actions { align-items: stretch; flex-direction: column-reverse; }
  .recommendation-submit-actions > a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}
