/* Patient section: shared theme palette, compact reading layout. */
.ed-patient .ed-pagehero { padding:28px 0; }
.ed-patient-nav { display:flex; flex-wrap:wrap; gap:8px; margin:22px 0; padding:0; }
.ed-patient-nav a { display:block; padding:10px 16px; border:1px solid var(--ed-bleu-pal); border-radius:999px; background:#fff; color:var(--ed-primar); font-size:14px; font-weight:700; text-decoration:none; }
.ed-patient-nav a[aria-current=page] { background:var(--ed-primar); border-color:var(--ed-primar); color:#fff; }
.ed-patient-nav a:hover { border-color:var(--ed-accent); }
.ed-patient a:focus-visible,.ed-patient summary:focus-visible { outline:3px solid var(--ed-bleu); outline-offset:4px; }
.ed-patient-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:24px; align-items:start; margin-bottom:36px; }
.ed-patient .ed-patient-article { padding:28px; border:1px solid var(--ed-bleu-pal); border-radius:20px; background:#fff; min-width:0; box-shadow:none; }
.ed-patient-content { font-size:16px; line-height:1.75; overflow-wrap:anywhere; }
.ed-patient-content p { margin:0 0 16px; }
.ed-patient-content :is(h2,h3) { font-family:inherit; font-size:21px!important; line-height:1.35; color:var(--ed-primar)!important; background:transparent!important; padding:0!important; margin:24px 0 12px; }
.ed-patient-content :is(h2,h3):first-child { margin-top:0; }
.ed-patient-heading,.ed-patient-chapter { scroll-margin-top:130px; }
.ed-patient-content img { max-width:100%; height:auto; border-radius:12px; }
.ed-patient-content iframe { max-width:100%; }
.ed-patient-table { overflow-x:auto; max-width:100%; }
.ed-patient-table table { min-width:500px; }
.ed-patient-content :is(ul,ol) { padding-left:24px; }
.ed-patient-content li { margin-bottom:8px; }
.ed-patient-aside { display:grid; gap:16px; }
.ed-patient-toc,.ed-patient-help { border:1px solid var(--ed-bleu-pal); border-radius:18px; background:#fff; padding:22px; }
.ed-patient-aside h2 { font-size:23px; margin:0 0 14px; }
.ed-patient-toc ol { margin:0; padding-left:20px; }
.ed-patient-toc li { padding:6px 0; font-size:14px; line-height:1.5; color:var(--ed-accent); }
.ed-patient-toc a { color:var(--ed-primar); text-decoration:none; }
.ed-patient-help { background:var(--ed-bleu-pal); }
.ed-patient-kicker { display:block; font-size:10px; letter-spacing:1px; font-weight:800; color:var(--ed-accent); margin-bottom:12px; }
.ed-patient-help p { font-size:14px; line-height:1.6; margin:0 0 16px; }
.ed-patient-help .ed-btn { font-size:13px; padding:12px 16px; }
.ed-patient-book { display:block; margin-top:14px; color:var(--ed-primar); font-size:13px; }
.ed-patient-chapter { border:1px solid var(--ed-bleu-pal); border-radius:12px; padding:0 18px; margin:12px 0; }
.ed-patient-chapter summary { cursor:pointer; padding:16px 0; font-size:16px; font-weight:800; color:var(--ed-primar); }
.ed-patient-chapter[open] { padding-bottom:16px; }
.ed-patient-chapter[open] summary { border-bottom:1px solid var(--ed-bleu-pal); margin-bottom:16px; }
.ed-patient .ed-patient-resources { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding:0!important; margin:0!important; list-style:none; }
.ed-patient .ed-patient-resources > li { float:none!important; width:auto!important; min-width:0; padding:20px!important; margin:0!important; border:1px solid var(--ed-bleu-pal); border-radius:16px; }
.ed-patient-resources .post-content { width:100%!important; margin:0!important; padding:0!important; float:none!important; }
.ed-patient-resources .post-details { font-size:12px; padding:0; }
.ed-patient-resources h2 { font-size:22px!important; }
.ed-patient [hidden] { display:none!important; }
@media(max-width:900px) { .ed-patient-layout { grid-template-columns:minmax(0,1fr) 230px; gap:18px; } .ed-patient .ed-patient-article { padding:22px; } .ed-patient .ed-patient-resources { grid-template-columns:1fr; } }
@media(max-width:700px) { .ed-patient-layout { grid-template-columns:1fr; } .ed-patient-nav { gap:6px; } .ed-patient-nav a { font-size:12px; padding:9px 12px; } .ed-patient .ed-patient-article { padding:20px; } .ed-patient-content { font-size:15px; } }
@media print { .ed-patient-nav,.ed-patient-aside { display:none; } .ed-patient-layout { display:block; } .ed-patient .ed-patient-article { border:0; padding:0; } .ed-patient-chapter > :not(summary) { display:block!important; } }

.ed-patient-content .ed-patient-line { margin-bottom:10px; }
.ed-patient-content .ed-patient-line:has(> strong:only-child) { color:var(--ed-primar); }
.ed-patient-content [class^="tts_content_wrapper"] { padding:0!important; background:transparent!important; border:0!important; }
.ed-patient[data-patient-page="educatie-sanitara"] .wpb_single_image { display:inline-block; vertical-align:top; width:calc(33.333% - 16px); margin:8px!important; padding:12px; border:1px solid var(--ed-bleu-pal); border-radius:14px; box-sizing:border-box; }
.ed-patient[data-patient-page="educatie-sanitara"] .wpb_single_image img { width:100%; object-fit:contain; }
@media(max-width:550px) { .ed-patient[data-patient-page="educatie-sanitara"] .wpb_single_image { width:calc(50% - 16px); } }

/* 1.27: distinct layouts for each Patient page. */
.ed-patient-sections { display:grid; gap:18px; }
.ed-patient-card { padding:22px; border:1px solid var(--ed-bleu-pal); border-radius:16px; background:#fff; min-width:0; }
.ed-patient-card > :last-child { margin-bottom:0; }
.ed-patient[data-patient-page="conditii-internare"] .ed-patient-article,
.ed-patient[data-patient-page="externare"] .ed-patient-article,
.ed-patient[data-patient-page="vizitatori"] .ed-patient-article { border:0; padding:0; background:transparent; }
.ed-patient[data-patient-page="conditii-internare"] .ed-patient-card:first-child { border-top:4px solid var(--ed-bleu); }
.ed-patient .ed-admission-docs { background:#fff8fa; border-color:var(--ed-roz-pudrat); }
.ed-patient[data-patient-page="externare"] .ed-patient-sections { counter-reset:ed-discharge; }
.ed-patient[data-patient-page="externare"] .ed-patient-card { position:relative; padding-left:66px; counter-increment:ed-discharge; }
.ed-patient[data-patient-page="externare"] .ed-patient-card::before { content:counter(ed-discharge,decimal-leading-zero); position:absolute; left:18px; top:22px; color:var(--ed-accent); font-size:22px; font-weight:800; }
.ed-patient[data-patient-page="reguli-pacienti"] .ed-patient-article { border-top:4px solid var(--ed-primar); }
.ed-patient-chapter summary { list-style-position:outside; padding-left:6px; }
.ed-patient-tools { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
.ed-patient-tools button { cursor:pointer; padding:10px 14px; border:1px solid var(--ed-bleu-pal); border-radius:999px; background:#fff; color:var(--ed-primar); font:inherit; font-size:13px; }
.ed-patient[data-patient-page="vizitatori"] .ed-patient-sections { display:flex; flex-direction:column; }
.ed-patient .ed-visit-hours { order:-1; background:var(--ed-primar); color:#fff; }
.ed-patient .ed-visit-hours :is(h2,h3,p,span,strong) { color:#fff!important; }
.ed-patient .ed-visit-hours p { font-size:20px; }
.ed-resource-search { padding:20px; background:var(--ed-bleu-pal); border-radius:14px; margin-bottom:20px; }
.ed-resource-search label { display:block; font-size:16px; font-weight:800; margin-bottom:10px; }
.ed-resource-search input { box-sizing:border-box; width:100%; min-height:46px; border:1px solid #cbd9e5; border-radius:10px; background:#fff; padding:12px; font:inherit; }
.ed-resource-search p { font-size:12px; margin:8px 0 0; }
.ed-patient[data-patient-page="educatie-sanitara"] .ed-patient-resources > li { border-top:4px solid var(--ed-roz-pudrat); }
@media(max-width:700px) { .ed-patient-card { padding:18px; } .ed-patient[data-patient-page="externare"] .ed-patient-card { padding-left:56px; } }
@media print { .ed-patient-tools,.ed-resource-search { display:none; } .ed-patient-resources > li[hidden] { display:block!important; } }

/* 1.28: content-led page layouts and full educational images. */
.ed-patient-card { scroll-margin-top:130px; }
.ed-patient .ed-topic-title { font-family:var(--ed-serif)!important; font-size:25px!important; margin:0 0 18px!important; }
.ed-patient .ed-original-heading { font:inherit!important; font-weight:700!important; font-size:15px!important; margin:0 0 14px!important; }
.ed-patient .ed-check-item { padding:10px 12px; border-radius:8px; background:#f5f8fb; border-left:3px solid var(--ed-bleu); margin:8px 0; }
.ed-patient [data-topic="urgent"] { border-left:4px solid var(--ed-accent); background:#fff8fa; }
.ed-patient[data-patient-page="conditii-internare"] .ed-patient-sections { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ed-patient[data-patient-page="conditii-internare"] [data-topic="documents"] { grid-column:1/-1; }
.ed-patient[data-patient-page="externare"] .ed-patient-card { border-left:3px solid var(--ed-roz-pudrat); }
.ed-patient[data-patient-page="vizitatori"] [data-topic="rules"] .ed-check-item { background:#f9f7f5; border-left-color:var(--ed-accent); }
.ed-patient .ed-visit-hours { padding:24px; }
.ed-patient .ed-visit-hours .ed-original-heading { display:none; }
.ed-patient[data-patient-page="educatie-sanitara"] .ed-patient-layout { display:block; }
.ed-patient[data-patient-page="educatie-sanitara"] .ed-patient-aside { margin-top:20px; }
.ed-patient[data-patient-page="educatie-sanitara"] .ed-patient-toc { display:none; }
.ed-health-gallery { margin:0 0 28px; }
.ed-health-gallery__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
.ed-patient[data-patient-page="educatie-sanitara"] .ed-health-gallery .ed-health-photo { display:block; width:100%!important; min-width:0; margin:0!important; padding:10px!important; background:#f5f8fb; border:1px solid var(--ed-bleu-pal); border-radius:14px; box-sizing:border-box; }
.ed-health-gallery .ed-health-photo :is(figure,.vc_single_image-wrapper,.wpb_wrapper) { display:block!important; width:100%!important; margin:0!important; padding:0!important; }
.ed-health-gallery .ed-health-photo img { display:block!important; width:100%!important; height:auto!important; max-height:none!important; aspect-ratio:auto!important; object-fit:contain!important; border-radius:8px; }
.ed-health-photo__caption { padding:10px 4px 2px; margin:0!important; font-size:12px; color:var(--ed-primar); }
.ed-patient[data-patient-page="educatie-sanitara"] .ed-patient-resources { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:700px) { .ed-patient[data-patient-page="conditii-internare"] .ed-patient-sections,.ed-health-gallery__grid,.ed-patient[data-patient-page="educatie-sanitara"] .ed-patient-resources { grid-template-columns:1fr; } }

/* 1.28.1: legacy clearfix pseudo-elements must not become grid cells. */
.ed-patient .ed-patient-resources::before,
.ed-patient .ed-patient-resources::after { content:none!important; display:none!important; }
.ed-patient .ed-patient-resources { align-items:stretch; grid-auto-flow:row; }
.ed-patient .ed-patient-resources > li { display:flex; flex-direction:column; align-self:stretch; box-sizing:border-box; clear:none!important; height:auto!important; }
.ed-patient .ed-patient-resources > li::before,
.ed-patient .ed-patient-resources > li::after { content:none!important; display:none!important; }
.ed-patient .ed-patient-resources > li > .comment-box { display:block; float:none!important; width:auto!important; margin:0 0 14px!important; padding:0!important; align-self:flex-start; list-style:none; }
.ed-patient .ed-patient-resources .comment-box .date { float:none!important; margin:0!important; padding:0!important; list-style:none; }
.ed-patient .ed-patient-resources .comment-box .arrow-date { display:none; }
.ed-patient .ed-patient-resources > li > .post-content { display:flex; flex-direction:column; flex:1 1 auto; min-width:0; border:0!important; }
.ed-patient .ed-patient-resources .post-content > h2 { margin:0 0 12px!important; min-height:2.7em; line-height:1.35!important; }
.ed-patient .ed-patient-resources .post-content > p { margin:0 0 16px!important; }
.ed-patient .ed-patient-resources .post-content > .more { display:block; float:none!important; align-self:flex-start; margin-top:auto!important; padding-top:10px; }
.ed-patient .ed-patient-resources > li[hidden] { display:none!important; }
@media(max-width:700px) { .ed-patient .ed-patient-resources .post-content > h2 { min-height:0; } }
