.shell.documentation{max-width:1240px;padding-block:2rem 5rem}.documentation h1{margin:.5rem 0 1rem}.documentation h2{margin:1.5rem 0 .65rem}.documentation .lede{max-width:75ch}.doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1rem;margin:2rem 0}.doc-card{padding:1.3rem;border:1px solid var(--border,#cbd5e1);border-radius:12px}.doc-card h2{margin:0 0 .65rem;font-size:1.1rem}.doc-card p{line-height:1.6}.documentation li{margin:.65rem 0}.doc-action{display:inline-block;padding:.85rem 1.2rem;border-radius:8px;background:var(--accent,#2563eb);color:var(--panel,#fff);font-weight:650;text-decoration:none}.doc-action:hover{text-decoration:underline}@media(max-width:640px){.shell.documentation{padding-block:1.2rem 3rem}}
.doc-table-scroll{overflow-x:auto;margin-block:1rem 2rem}
.doc-reference-table{width:100%;min-width:38rem;border-collapse:collapse}
.doc-reference-table th,.doc-reference-table td{padding:.75rem;text-align:left;vertical-align:top;border:1px solid var(--border)}
.doc-reference-table thead th{background:var(--table-heading,var(--panel))}
.doc-reference-table tbody th{width:25%}

/* Registry paths and their checks stay together when the columns stack. */
.registry-checks {
  width: 100%;
  margin-block: 1rem 1.5rem;
  table-layout: fixed;
  border: 1px solid var(--border);
  border-spacing: 0;
  border-radius: .65rem;
  overflow: hidden;
  background: var(--panel);
  color: var(--ink);
}
.registry-checks :is(th, td) {
  padding: .85rem 1.1rem;
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.registry-checks thead th { background: var(--table-heading, var(--soft)); }
.registry-checks thead th:first-child { width: 40%; }
.registry-checks tbody :is(th, td) { border-top: 1px solid var(--border); }
.registry-checks tbody tr:nth-child(even) { background: var(--table-stripe, var(--soft)); }
.registry-checks th[scope="row"] code {
  display: block;
  margin-top: .25rem;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
@media screen and (max-width: 42rem) {
  .registry-checks, .registry-checks tbody, .registry-checks tbody :is(tr, th, td) { display: block; }
  .registry-checks thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .registry-checks tbody tr + tr { border-top: 1px solid var(--border); }
  .registry-checks tbody :is(th, td) { border-top: 0; }
  .registry-checks tbody th { padding-bottom: .45rem; }
  .registry-checks tbody td { padding-top: 0; }
}

/* Article text, including the standalone API reference. */
.documentation,
.api-reference > section {
  font-size: 1.0625rem;
  line-height: 1.65;
}
.documentation .lede,
.api-reference .lede {
  font-size: 1.125rem;
  line-height: 1.6;
}
.documentation details,
.documentation .doc-reference-table,
.documentation .doc-reference-table th,
.api-reference .tool-panel p { font-size: inherit; }
.api-reference p code { overflow-wrap: anywhere; }
.api-reference table { font-size: 1rem; }
.api-reference th { font-size: inherit; }
:is(.documentation, .api-reference) .ps-command :is(pre, code) { font-size: .9375rem; }

/* Keep all six summaries readable while the administrator works through a step. */
.patch-guide { max-width:96ch; }
.patch-step { margin:.55rem 0; border:1px solid var(--border); border-radius:.5rem; background:var(--panel); scroll-margin-block-start:1rem; }
.patch-step > summary { display:block; position:relative; padding:.7rem 2.8rem .7rem 1rem; list-style:none; cursor:pointer; color:var(--ink); }
.patch-step > summary::-webkit-details-marker { display:none; }
.patch-step > summary::after { content:""; position:absolute; right:1.1rem; top:1.15rem; width:.55rem; height:.55rem; border-right:2px solid var(--accent); border-bottom:2px solid var(--accent); transform:rotate(45deg); }
.patch-step[open] > summary::after { transform:rotate(225deg); }
.patch-step > summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:.5rem; }
.patch-step > summary:hover h3 { text-decoration:underline; }
.patch-step > summary h3 { margin:0; font-size:1.125rem; line-height:1.4; color:var(--accent); }
.patch-step-summary { display:block; margin-top:.18rem; color:var(--ink); font-size:inherit; font-weight:400; line-height:1.45; }
.patch-step-body { padding:.1rem 1rem .4rem; border-top:1px solid var(--border); overflow-wrap:anywhere; }
.patch-step-body h4 { margin:1.25rem 0 .35rem; font-size:inherit; }
.patch-step-body pre { max-width:100%; overflow-x:auto; }
@media print { .patch-step { background:transparent; } .patch-step > summary::after { display:none; } }

/* Use the same reading size and line length for the About page and ticket workflow. */
.about-article,
.change-recheck {
  max-inline-size: 72ch;
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.about-article .lede { font-size: inherit; line-height: inherit; }
.about-article h2, .change-recheck h2 { font-size: clamp(1.5rem, 3vw, 1.85rem); line-height: 1.25; }
.change-recheck > ol { padding-inline-start: 1.65em; margin-block: 1.25rem; }
.change-recheck li { padding-inline-start: .25em; margin-block: 1rem; }
.change-recheck li::marker { color: var(--accent); font-weight: 700; }
.change-recheck h3 { font-size: 1.25rem; line-height: 1.35; margin: 0; }
.change-recheck p { margin: .35em 0 .65em; }
.change-recheck code { font-size: 1em; }
#file-server-ticket { scroll-margin-top: 5rem; }
.change-recheck details > summary { font-size: inherit; font-weight: 600; cursor: pointer; }

/* Native fragment links also work before the API examples have loaded. */
.api-contents {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: .65rem;
}
.api-contents h2 { font-size: 1.125rem; }
.api-contents ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: .25rem 1.5rem;
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
}
.api-contents a { display: inline-block; padding: .25rem 0; font-size: 1rem; }
.api-reference > section[id] { scroll-margin-block-start: 1.25rem; }

/* SQL Server deployment sequences. Native radios work before scripts load. */
.documentation:has(.sql-guide) > .eyebrow { display:none; }
.sql-guide > .eyebrow { margin:1.4rem 0 .65rem; }
.sql-guide h1 { max-width:24ch; font-size:clamp(2.35rem,4.4vw,3.65rem); line-height:1.07; }
.sql-guide > .lede { max-width:65ch; margin-bottom:1.7rem; }
.sql-guide fieldset { position:relative; }
.sql-choice,.sql-visually-hidden { position:absolute; width:1px; height:1px; padding:0; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.sql-choice + label,.sql-alternatives label { display:inline-block; background:var(--panel); border:1px solid var(--border); border-radius:.65rem; cursor:pointer; }
.sql-choice + label { padding:.6rem 1rem; margin:0 .45rem .6rem 0; font-weight:650; }
.sql-choice:checked + label { background:var(--accent); color:var(--panel); border-color:var(--accent); }
.sql-choice:focus-visible + label { outline:3px solid var(--accent); outline-offset:3px; }
.sql-choice + label:hover,.sql-alternatives label:hover { border-color:var(--accent); }
.sql-layout { display:grid; grid-template-columns:minmax(0,2.2fr) minmax(15rem,1fr); gap:clamp(1rem,2.3vw,2rem); margin:1rem 0 2rem; align-items:start; }
.sql-layout aside,.sql-alternatives { display:grid; gap:1rem; }
.sql-card { padding:clamp(1rem,2.2vw,1.6rem); background:var(--panel); border:1px solid var(--border); border-radius:.8rem; }
.sql-card h2,.sql-card h3,.sql-card p,.sql-card ul { margin:0; }
.sql-card h2 { font-size:1.55rem; line-height:1.25; }
.sql-card h3,.sql-layout aside h2 { font-size:1.15rem; }
.sql-card p,.sql-card ul,.sql-alternatives span { color:var(--muted); }
.sql-card ul { padding-left:1.45rem; }
.sql-card ol { list-style:decimal; counter-reset:sql-step; padding:0; }
.sql-card ol li { position:relative; list-style:none; counter-increment:sql-step; border-top:1px solid var(--border); padding:1rem 0 1rem 3rem; margin:0; }
.sql-card ol li::before { content:counter(sql-step); position:absolute; left:0; top:1rem; display:grid; place-items:center; width:2rem; height:2rem; border-radius:50%; background:var(--accent); color:var(--panel); font-weight:700; }
.sql-card .sql-warning { padding:.85rem 1rem; margin-top:.8rem; border:1px solid var(--amber); border-radius:.6rem; color:var(--ink); }
.sql-warning strong { color:var(--amber); }
.sql-open { text-align:center; }
.sql-open a { display:block; margin-bottom:.8rem; }
.sql-alternatives { margin-top:1rem; grid-template-columns:repeat(3,minmax(0,1fr)); }
.sql-alternatives label { padding:1rem; font-size:.96rem; }
.sql-alternatives span { display:block; margin-top:.45rem; }
.sql-sequence { display:none; }
#sql-ag:checked ~ .sql-layout [data-sequence="ag"],
#sql-fci:checked ~ .sql-layout [data-sequence="fci"],
#sql-ag-fci:checked ~ .sql-layout [data-sequence="ag-fci"],
#sql-standalone:checked ~ .sql-layout [data-sequence="standalone"] { display:block; }
@media (max-width:760px) { .sql-layout,.sql-alternatives { grid-template-columns:1fr; } }

.documentation .troubleshooting-reference { max-width:78ch; padding:.75rem 1rem; border-inline-start:3px solid var(--accent); background:var(--accent-soft); }
.documentation .troubleshooting-case { min-width:0; margin-block:clamp(1.5rem,3vw,2.5rem); padding:clamp(.9rem,2.2vw,1.65rem); border:1px solid var(--border); border-radius:.8rem; background:var(--panel); }
.documentation .troubleshooting-case > h2 { margin:0 0 1rem; padding-bottom:.65rem; border-bottom:2px solid var(--border); font-size:clamp(1.35rem,2.4vw,1.8rem); line-height:1.25; scroll-margin-top:5rem; }
.troubleshooting-case > :is(p,ol) { max-inline-size:84ch; }
.troubleshooting-case :is(pre,code) { max-inline-size:100%; }
