/* Consultation layout: the existing Pelison surfaces, typography and route labels. */
.gw-detail.gr-detail{max-width:100%;}
.gr-reader{margin-top:14px;min-width:0;}
.gr-prescription-title{margin:0;padding:12px 15px 9px;font-size:calc(var(--content-font) * 1.18);font-weight:700;line-height:1.35;color:var(--text);overflow-wrap:anywhere;}
.gr-prescription-link-title{font-size:calc(var(--content-font) * 1.1);font-weight:700;}
.gw-filters.gw-prescription-search{grid-template-columns:minmax(0,1fr);}
.gw-prescription-library .pc-groups{padding:0 12px 12px;}
.gw-prescription-specialty>summary:focus-visible{outline:2px solid var(--blue);outline-offset:-3px;}
@media(min-width:1100px) and (hover:hover) and (pointer:fine){.gr-prescription{--content-font:calc(15.12px * var(--pelison-type-scale,1));--content-leading:1.7;}.gr-prescription .gr-category-body{font-size:var(--content-font);line-height:var(--content-leading);}}
.gr-search{display:flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:9px;background:var(--surface);padding:3px 8px;margin-bottom:12px;min-width:0;}
.gr-search label{flex:1;min-width:0;}.gr-search input{width:100%;border:0;background:transparent;padding:7px 4px;color:var(--text);font:inherit;outline-offset:0;min-width:0;}
.gr-search-count{font-size:calc(12px * var(--pelison-type-scale, 1));color:var(--muted);white-space:nowrap;}.gr-search-count:empty,.gr-search-count:empty~button{display:none;}
.gr-search-step{border:0;border-radius:6px;background:transparent;color:var(--muted);min-width:32px;min-height:32px;}
.gr-sections{display:grid;gap:8px;min-width:0;}
.gr-category,.gr-definition{border:1px solid var(--border);border-radius:11px;background:var(--surface);min-width:0;overflow:clip;}
.gr-category>summary,.gr-subcategory>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:8px 13px;min-height:40px;line-height:1.4;}
.gr-category>summary::-webkit-details-marker,.gr-subcategory>summary::-webkit-details-marker{display:none;}
.gr-category>summary:focus-visible,.gr-subcategory>summary:focus-visible{outline:2px solid var(--blue);outline-offset:-3px;border-radius:8px;}
.gr-chevron{width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);margin:0 3px 3px auto;flex-shrink:0;transition:transform .15s ease;}
[open]>.gr-chevron,details[open]>summary>.gr-chevron{transform:rotate(225deg);margin-bottom:-2px;}
.gr-category-body{padding:2px 15px 12px;min-width:0;}
.gr-subcategory{border:1px solid var(--border);border-radius:6px;min-width:0;background:var(--surface-soft);margin:3px 0;}
.gr-subcategory>summary{font-size:calc(13px * var(--pelison-type-scale, 1));font-weight:600;padding:7px 11px;min-height:36px;}
.gr-subcategory>.gr-category-body{padding:4px 12px 10px;}
.gr-definition{padding:13px 16px;}.gr-definition>h2{color:var(--blue);font-size:calc(13px * var(--pelison-type-scale, 1));font-weight:600;margin:0 0 5px;}
.gr-intro{margin:0 0 2px;}.gr-intro p{margin:0;}
.gr-fragment+.gr-fragment{margin-top:12px;}.gr-fragment h4{font-size:var(--content-font);font-weight:600;color:var(--blue);background:var(--surface-soft);border-bottom:1px solid var(--border);padding:4px 7px;border-radius:4px;margin:8px 0 6px;}
.gr-fragment p{margin:0 0 7px;}.gr-fragment li{margin-bottom:3px;}.gr-fragment ul,.gr-fragment ol{margin:6px 0 9px;}
.gr-related-link{display:flex;align-items:center;gap:10px;padding:8px 13px;min-height:40px;text-decoration:none;color:var(--text);}.gr-related-link:hover{border-color:var(--blue);}.gr-related-title{font-size:calc(12px * var(--pelison-type-scale, 1));overflow-wrap:anywhere;}.gr-link-arrow{margin-left:auto;color:var(--muted);}.gr-linked{display:grid;gap:6px;min-width:0;}
.gr-flow-link{display:block;margin:8px 0;font-size:calc(13px * var(--pelison-type-scale, 1));}.gr-diagram{margin-top:12px;min-width:0;}.gr-diagram h4{font-size:calc(14px * var(--pelison-type-scale, 1));font-weight:600;}
@media(prefers-reduced-motion:no-preference){.gr-category[open]>.gr-category-body,.gr-subcategory[open]>.gr-category-body{animation:gr-open .15s ease-out;}@keyframes gr-open{from{opacity:.5;transform:translateY(-3px)}to{opacity:1;transform:none}}}
@media(prefers-reduced-motion:reduce){.gr-chevron{transition:none;}}
@media(max-width:600px){.gr-search input{font-size:calc(16px * var(--pelison-type-scale, 1));}.gr-category>summary{min-height:44px;padding:8px 10px;}.gr-category-body{padding:2px 10px 10px;}.gr-subcategory>summary{min-height:44px;}.gr-definition{padding:12px;}.gr-related-title{font-size:calc(11px * var(--pelison-type-scale, 1));}.gr-related-link{flex-wrap:wrap;}.gr-related-link .gr-related-title{flex-basis:100%;order:2;}}
@media print{.gr-search{display:none;}.gr-category,.gr-subcategory{overflow:visible;}.gr-category>summary,.gr-subcategory>summary{break-after:avoid;}.gr-category-body{display:block!important;}}

.gr-search label{margin:0;display:block;font-weight:400;}.gr-search input{margin:0;height:32px;font-weight:400;}.gr-search>.icon{width:16px;height:16px;color:var(--muted);}.gr-search input::placeholder{font-weight:400;}
/* Administrative controls reuse existing fields and editor surfaces. */
.gs-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0;}.gs-node{min-width:0;}.gs-node>.gs-node{margin-left:10px;}.gs-node>input,.gs-actions>select{max-width:100%;}.gs-actions>.guide-action{min-height:36px;}@media(max-width:600px){.gs-actions>.guide-action{min-height:44px;}.gs-node>.gs-node{margin-left:5px;}}

/* Reviewed medicine text uses the same open prescription sections. */
.md-reader .md-fragment p{margin:5px 0;}
.md-reader .md-fragment .content-markdown>:first-child{margin-top:0;}
.md-reader .md-fragment .content-markdown>:last-child{margin-bottom:0;}
.md-reader .md-presentations,.md-reader .md-indications{padding-left:20px;margin:6px 0;}
.md-reader .md-presentations li,.md-reader .md-indications li{margin:5px 0;line-height:var(--content-leading,1.6);}
.md-reader .md-indications a{color:var(--blue);text-decoration:none;}
.md-reader .md-indications a:hover{text-decoration:underline;}
.md-reader .md-presentation-brands{color:var(--muted);}
.md-reader .md-population{font:inherit;font-weight:700;margin:10px 0 9px;}
.md-reader .md-route{font:inherit;font-weight:600;color:var(--blue);margin:11px 0 7px;}
.md-reader .md-indication,.md-reader .md-block-title{font:inherit;font-weight:600;margin:8px 0 5px;}
.md-reader .md-population-group+.md-population-group{border-top:1px solid var(--border);padding-top:10px;margin-top:16px;}
.md-reader .md-route-group+.md-route-group{margin-top:15px;}
.md-reader .md-regimen+.md-regimen{margin-top:10px;}
.md-reader .md-regimen .md-fragment+.md-fragment{border:0;padding-top:0;margin-top:5px;}

/* Medicine navigation: quiet text tabs on the shared Pelison theme. */
.md-reader .md-tabs{gap:20px;margin:8px 0 14px;padding:0;border:0;border-bottom:1px solid var(--border);}
.md-reader .md-tabs [role="tab"]{flex:0 1 auto;min-height:36px;margin:0;padding:8px 2px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-family:inherit;font-size:calc(13px * var(--pelison-type-scale,1));font-weight:500;line-height:1.4;box-shadow:none;}
.md-reader .md-tabs [role="tab"][aria-selected="true"]{background:transparent;color:var(--text);border-bottom-color:var(--blue);font-weight:600;}
.md-reader .md-tabs [role="tab"]:hover{background:transparent;color:var(--text);}
.md-reader .md-tabs [role="tab"]:focus-visible{outline:2px solid var(--blue);outline-offset:3px;}
@media(max-width:600px){.md-reader .md-tabs{gap:18px;}.md-reader .md-tabs [role="tab"]{min-height:44px;padding:11px 2px;}}

/* Nested specialties reuse the exact Prescription directory surfaces. */
.specialty-subgroups{padding:10px;gap:8px}.specialty-subgroup{box-shadow:none;border-radius:9px}.specialty-subgroup>summary{padding:12px 14px}.specialty-directory>.pc-group{min-width:0}.specialty-directory summary>span:first-child{min-width:0;overflow-wrap:anywhere}
