/*
Theme Name: The Service Desk
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: service-desk
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

:root{--desk-rule:color-mix(in srgb,var(--wp--preset--color--primary) 23%,transparent)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{overflow-wrap:break-word}a{text-underline-offset:.2em}a:focus-visible,summary:focus-visible,button:focus-visible{outline:2px solid currentColor;outline-offset:5px}svg{max-width:100%;height:auto}button,summary{cursor:pointer}h1,h2,h3{overflow-wrap:normal}
.wp-site-blocks{padding:0}.wp-site-blocks main{padding-block:3rem 4rem}.wp-site-blocks main.is-flush{padding:0}.wp-site-blocks>.desk-shell{margin:0}.desk-shell{grid-template-columns:1fr 2fr!important;gap:0!important;align-items:start}.desk-sidebar{position:sticky;top:0;height:100dvh;background:var(--wp--preset--color--primary);color:var(--wp--preset--color--background);padding:clamp(1.6rem,3vw,3rem);overflow:auto}.desk-sidebar a{color:inherit;text-decoration:none}.sidebar-inner{min-height:calc(100dvh - 6rem);display:flex;flex-direction:column;gap:0}.desk-mark{width:32px;height:32px;margin-bottom:1.75rem}.side-brand{font-size:clamp(2.4rem,4.2vw,4.3rem);line-height:1.04;letter-spacing:-.055em;margin:0}.side-tagline{font-size:.93rem;line-height:1.6;margin:1.5rem 0 0;color:color-mix(in srgb,var(--wp--preset--color--background) 78%,transparent)}.desktop-nav{margin-top:clamp(2rem,4vw,4.4rem)}.side-link{font-size:clamp(.85rem,1.3vw,1.1rem);margin:.1rem 0;border-bottom:1px solid color-mix(in srgb,var(--wp--preset--color--background) 18%,transparent)}.side-link a{display:block;padding:.75rem 0}.side-link a:hover,.side-link a[aria-current=page]{color:var(--wp--preset--color--accent)}.sidebar-bottom{margin-top:auto!important;padding-top:2rem}.side-disclosure{font-size:.75rem;line-height:1.6;max-width:29ch}.side-small{font-size:.75rem;line-height:1.6;margin:.85rem 0 0}.mobile-menu{display:none}.desk-content{min-width:0;margin:0!important}.index-label{font-family:var(--wp--preset--font-family--ibm-plex-mono);font-size:var(--wp--preset--font-size--label);font-weight:500;letter-spacing:.07em;text-transform:uppercase;line-height:1.7}.hero-section{padding:clamp(2rem,4.5vw,4.5rem);padding-bottom:2.5rem}.hero-title{font-size:clamp(3.2rem,6.1vw,6.2rem);line-height:1.01;letter-spacing:-.065em;margin:2.5rem 0 1.6rem;max-width:11ch}.hero-deck{font-size:clamp(1rem,1.7vw,1.25rem);max-width:36ch;line-height:1.55}.hero-section .wp-block-buttons{margin-top:2rem}.hero-disclosure{font-size:.75rem;max-width:55ch;margin-top:1.6rem;color:var(--wp--preset--color--muted)}
.desk-section{padding:2.8rem clamp(2rem,4.5vw,4.5rem);border-top:1px solid var(--desk-rule)}.desk-section h2{font-size:clamp(2rem,3vw,3rem);line-height:1.1;max-width:21ch}.station-spread{background:var(--wp--preset--color--surface);padding-bottom:1.8rem}.station-spread .wp-block-html{margin:1rem -1.2rem 0}.diagram-caption{font:var(--wp--preset--font-size--label)/1.6 var(--wp--preset--font-family--ibm-plex-mono);color:var(--wp--preset--color--muted)}.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem}.section-head p{font-size:.875rem;max-width:26ch}.is-style-guide-row{position:relative;padding:1.6rem 2.2rem 1.6rem 0;border-bottom:1px solid var(--desk-rule)}.is-style-guide-row:after{content:'↗';position:absolute;right:0;top:2.4rem;font-size:1.5rem;pointer-events:none}.is-style-guide-row .index-label{color:var(--wp--preset--color--muted);margin:0 0 .45rem}.is-style-guide-row h3{font-size:clamp(1.3rem,2vw,1.7rem);margin:0;line-height:1.25}.is-style-guide-row h3 a{text-decoration:none}.is-style-guide-row h3 a:hover{text-decoration:underline}.is-style-guide-row p:last-child{font-size:.95rem;margin:.5rem 0 0;max-width:54ch}.is-style-note{background:var(--wp--preset--color--surface);border-left:3px solid var(--wp--preset--color--primary);padding:1.4rem 1.6rem;margin-block:2rem}.is-style-note p{margin:.5rem 0}.is-style-note .index-label{margin-top:0}.feature-section{background:var(--wp--preset--color--accent)}.feature-section .wp-block-buttons{margin-top:1.8rem}.feature-section p{max-width:50ch}.publication-footer{border-top:1px solid var(--desk-rule);padding:2.5rem clamp(2rem,4.5vw,4.5rem);font-size:.8rem;color:var(--wp--preset--color--muted)}.publication-footer p{margin:.7rem 0}.publication-footer a{color:var(--wp--preset--color--text)}
.article-page{padding:3rem clamp(2rem,4.5vw,4.5rem) 4rem!important}.article-page>.index-label{color:var(--wp--preset--color--muted)}.article-page h1{font-size:clamp(2.6rem,4.8vw,4.6rem);line-height:1.07;letter-spacing:-.05em;margin:2rem 0 1rem}.page-deck{font-size:.9rem;color:var(--wp--preset--color--muted);padding-bottom:1.6rem;border-bottom:1px solid var(--desk-rule)}.article-page .wp-block-post-content{margin-top:2.5rem}.article-page .wp-block-post-content>h2{font-size:clamp(1.65rem,2.7vw,2.3rem);line-height:1.2;margin-top:2.8rem;scroll-margin-top:2rem}.article-page .wp-block-post-content>h3{font-size:1.35rem;margin-top:2rem}.article-page .wp-block-post-content p{margin-block:1.1rem}.article-page li{padding-left:.2rem;margin:.6rem 0}.article-page .wp-block-list{padding-left:1.5rem}.article-intro{font-size:1.25rem;line-height:1.55}.source-note{font-size:.78rem;color:var(--wp--preset--color--muted);border-top:1px solid var(--desk-rule);padding-top:1.2rem;margin-top:2.8rem!important}.wp-block-details{border-block-end:1px solid var(--desk-rule);padding-block:1.1rem}.wp-block-details summary{font-family:var(--wp--preset--font-family--manrope);font-size:1.07rem;font-weight:600;line-height:1.45;list-style-position:outside;margin-left:1rem}.wp-block-details[open] summary{margin-bottom:1rem}.wp-block-details p,.wp-block-details ul{font-size:.98rem}.is-style-checklist{list-style-type:'□  ';padding-left:1.3rem!important}.is-style-checklist li{padding-left:.4rem;margin:1rem 0}.wp-block-search__input{min-width:0;border:1px solid var(--desk-rule);background:var(--wp--preset--color--white);padding:.8rem;color:var(--wp--preset--color--text);font:inherit}.wp-block-search__button{font-size:.8rem;letter-spacing:0;padding:.8rem 1rem}.search-zone{margin-top:2rem}.privacy-notice{position:fixed;right:20px;bottom:20px;width:min(390px,calc(100vw - 40px));padding:1.3rem;background:var(--wp--preset--color--white);color:var(--wp--preset--color--text);border:1px solid var(--desk-rule);box-shadow:0 8px 40px #123b2b18;z-index:20;margin:0!important}.privacy-notice[hidden]{display:none}.privacy-notice h3{font-size:1.1rem;margin:0}.privacy-notice p{font-size:.8rem;line-height:1.5;margin:.65rem 0 1rem}.privacy-notice .wp-block-buttons{gap:.65rem}.privacy-notice .wp-element-button{padding:.65rem .8rem;font-size:.65rem;letter-spacing:0}.close-notice .wp-element-button{background:var(--wp--preset--color--surface);color:var(--wp--preset--color--primary)}
@media(min-width:1600px){.hero-title{font-size:7rem}.desk-section,.hero-section,.article-page{padding-inline:6vw!important}}
@media(max-width:900px){.desk-shell{grid-template-columns:1fr!important}.desk-sidebar{position:relative;height:auto;padding:1.2rem 1.5rem;overflow:visible}.sidebar-inner{min-height:0;display:block}.desk-mark{display:none}.side-brand{font-size:1.6rem;line-height:1.1}.side-brand br{display:none}.side-brand br:after{content:' '}.side-brand a{display:block}.side-tagline{margin:.55rem 0 0;font-size:.75rem}.desktop-nav,.sidebar-bottom{display:none}.mobile-menu{display:block;margin-top:1rem}.mobile-menu .wp-block-details{padding:0;border:0}.mobile-menu summary{font-family:var(--wp--preset--font-family--ibm-plex-mono);font-size:.75rem;margin-left:1rem}.mobile-menu nav{margin-top:1.1rem}.mobile-links{gap:.65rem!important}.hero-section{padding:2.3rem 1.5rem}.hero-title{font-size:clamp(3.3rem,10vw,5.5rem);max-width:12ch;margin-top:1.8rem}.hero-deck{font-size:1.1rem}.desk-section{padding:2rem 1.5rem}.section-head{display:block}.section-head p{max-width:none}.article-page{padding:2rem 1.5rem 3rem!important}.article-page h1{font-size:clamp(2.5rem,8vw,4rem)}.publication-footer{padding:2rem 1.5rem}.privacy-notice{right:12px;bottom:12px;width:min(390px,calc(100vw - 24px))}.hero-disclosure{max-width:44ch}.station-spread .wp-block-html{margin-inline:-.75rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
@media print{.desk-sidebar,.privacy-notice,.publication-footer,.wp-block-search,.wp-block-buttons{display:none!important}.desk-shell{display:block!important}.desk-content{width:100%}.article-page{padding:0!important}.wp-block-details>*{display:block!important}.wp-block-details{break-inside:avoid}a{text-decoration:none}body{background:white;color:black;font-size:11pt}.article-page h1{font-size:28pt}.is-style-note{border:1px solid;padding:10pt}.source-note{font-size:9pt}}

/* Final layout alignment: keep adjoining bands flush and preserve their own padding. */
.designed-page .wp-block-post-content > * + *, .desk-content > * + *{margin-block-start:0}
.section-head > *{margin-block-start:0;margin-block-end:0}
.article-page .is-style-guide-row p.index-label{margin:0 0 .45rem}
.article-page .is-style-guide-row p:last-child{margin:.5rem 0 0}
.article-page .is-style-note p{margin:.5rem 0}
.article-page .is-style-note .index-label{margin-top:0}
@media(max-width:900px){.privacy-notice .wp-element-button{min-height:44px;font-size:.75rem}.side-brand{letter-spacing:-.04em}.mobile-menu nav{gap:.65rem}}

/* Local editorial photographs complement the original technical diagrams. */
.is-style-editorial-photo{margin-block:2rem}
.is-style-editorial-photo img{width:100%;height:auto;display:block;border-radius:var(--wp--custom--rounded--sm)}
.is-style-editorial-photo figcaption{font-size:.75rem;line-height:1.55;color:var(--wp--preset--color--muted);text-align:left;margin-top:.7rem}
.hero-section .is-style-editorial-photo{margin-top:2rem;margin-bottom:0}
@media print{.is-style-editorial-photo{display:none}}
