/* Brand and tool identity. Keep operational fields and numerical output still. */
body.storefront { --order-gold:#936619; }
body.storefront header.has-account-controls[data-account-header]:has(.order-menu-toggle) .brand-motto {
 display:block; color:var(--order-gold); font-size:12px; font-weight:800; line-height:1.3;
 letter-spacing:.015em; white-space:normal; margin:3px 0 0; text-wrap:balance;
}
.ordrel-follow-links { display:flex; flex-wrap:wrap; gap:10px; }
body.storefront .ordrel-follow-links a { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:8px 14px; border:1px solid #ffffff38; border-radius:8px; font-size:14px; font-weight:700; line-height:1.3; text-decoration:none; }
.ordrel-follow-links img { display:block; width:24px; height:24px; object-fit:contain; flex:none; }
.ordrel-follow-links a:first-child img { width:28px; }
body.storefront .ordrel-follow-links a:hover { background:#ffffff12; text-decoration:none; }
.ordrel-nav-follow { display:flex; align-items:center; border-left:1px solid var(--order-line); padding-left:12px; }
.ordrel-nav-follow>span,.ordrel-follow-compact a>span { display:none; }
body.storefront header.has-account-controls[data-account-header]>nav#order-main-nav .ordrel-follow-links a { width:40px; min-height:44px; padding:8px; border:0; }
.ordrel-nav-follow .ordrel-follow-links { gap:0; }
body.storefront .ordrel-nav-follow .ordrel-follow-links a:hover { background:#eef3f8; }

/* Compact footer: identity + follow first, useful links next, disclosures last. */
body.storefront .site-footer.ordrel-footer { display:grid!important; grid-template-columns:minmax(260px,1fr) minmax(0,2fr)!important; gap:24px 40px!important; padding:32px max(28px,calc((100vw - 1280px)/2)) 20px!important; background:var(--order-ink); color:#e4ebf0; }
.ordrel-footer-top { display:block; min-width:0; }
.ordrel-footer-follow { margin-top:16px; }
body.storefront .ordrel-footer .footer-brand img { display:block; width:180px; max-width:100%; height:auto; padding:4px 8px; background:white; border-radius:5px; }
body.storefront .ordrel-footer .footer-brand .ordrel-footer-slogan { margin:10px 0 6px; color:#e5b764; font-size:22px; font-weight:800; line-height:1.25; letter-spacing:-.02em; max-width:none; }
body.storefront .ordrel-footer .footer-brand .ordrel-footer-intro { margin:0; color:#cad8e0; font-size:16px; line-height:1.45; max-width:470px; }
body.storefront .ordrel-footer h2 { margin:0 0 10px; padding:0; font-size:14px; font-weight:750; line-height:1.4; letter-spacing:.02em; }
.ordrel-footer-links { display:grid; grid-template-columns:1fr 1fr 1.15fr; align-items:start; gap:24px; }
body.storefront .ordrel-footer-links nav,body.storefront .ordrel-footer-contact { display:flex; align-items:flex-start; justify-content:flex-start; flex-direction:column; flex-wrap:nowrap; gap:0; min-width:0; width:100%; }
body.storefront .ordrel-footer-links a { display:flex; align-items:center; min-height:36px; margin:0; padding:4px 0; font-size:14px; line-height:1.4; overflow-wrap:anywhere; }
.ordrel-footer details { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; margin:0; }
.ordrel-footer summary { cursor:pointer; min-height:36px; padding:8px 0; font-size:14px; font-weight:500; line-height:1.4; color:#cad8e0; }
.ordrel-footer .ordrel-footer-group>summary { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:36px; padding:0 0 10px; font-weight:750; color:white; list-style:none; }
.ordrel-footer-group>summary::-webkit-details-marker { display:none; }
.ordrel-footer-group>summary::after { content:'+'; font-size:20px; font-weight:400; }
.ordrel-footer-group[open]>summary::after { content:'−'; }
@media(min-width:701px) { .ordrel-footer-group>summary::after { display:none; } }
body.storefront .ordrel-footer details p { margin:8px 0 0; font-size:14px; line-height:1.5; max-width:65ch; }
.ordrel-footer-bottom { grid-column:1/-1; display:flex; align-items:flex-start; flex-wrap:wrap; gap:8px 24px; border-top:1px solid #ffffff26; padding-top:12px; font-size:12px; line-height:1.5; }
.ordrel-footer-bottom>span,.ordrel-footer-bottom>a { padding-block:8px; }
.ordrel-footer-bottom>details { flex:1; min-width:170px; }
.ordrel-footer-bottom summary { font-size:12px; }
body.storefront .ordrel-footer a:focus-visible,body.storefront .ordrel-footer summary:focus-visible { outline:2px solid #e5b764; outline-offset:4px; }

/* Reuse the established brand colors, with dark ink on orange for contrast. */
[data-tool-tone] { --tool-tone:#2454d6; --tool-title:#fff; }
[data-tool-tone=teal] { --tool-tone:#126b66; }
[data-tool-tone=orange] { --tool-tone:#e98432; --tool-title:#132d3d; }
[data-tool-tone=ink] { --tool-tone:#132d3d; }
body.storefront .ordrel-tool-scene { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; background:#fafaf7; border:0; border-radius:8px; margin:0; }
body.storefront .ordrel-tool-card { gap:14px; padding:0 20px 20px; }
body.storefront .ordrel-tool-card-heading { display:grid; grid-template-columns:32px minmax(0,1fr) 100px; align-items:center; gap:10px; margin:0 -20px; padding:16px; min-height:120px; border:0; background:var(--tool-tone); }
body.storefront .ordrel-tool-card .ordrel-tool-icon { width:32px; height:36px; color:var(--tool-title); background:transparent; border:0; }
body.storefront .ordrel-tool-card h3 { color:var(--tool-title); font-size:18px; line-height:1.25; letter-spacing:-.02em; margin:0; }
body.storefront .ordrel-tool-card .ordrel-tool-scene { width:100px; height:84px; object-fit:cover; }
body.storefront .ordrel-tool-card>p { font-size:16px; line-height:1.45; }
body.storefront .ordrel-tool-card .ordrel-example-chip { font-size:14px; }
body.storefront .ordrel-tool-card .ordrel-tool-open { background:var(--tool-tone); color:var(--tool-title); border-color:var(--tool-tone); font-size:14px; font-weight:700; }
body.storefront .ordrel-tool-card:hover { border-color:var(--tool-tone); }
body.storefront .ordrel-tool-card .ordrel-tool-open:hover { filter:brightness(.95); }

body.storefront.tool-workspace .workspace-heading:has(.ordrel-tool-title) { max-width:none; padding:0; margin-bottom:20px; }
body.storefront.tool-workspace .ordrel-tool-title { display:grid; grid-template-columns:44px minmax(0,1fr) 140px; gap:16px; align-items:center; padding:16px 20px; margin:0 0 12px; border-radius:12px; background:var(--tool-tone); }
body.storefront.tool-workspace .ordrel-tool-title h1 { color:var(--tool-title); font-size:clamp(24px,2.5vw,32px)!important; line-height:1.16; letter-spacing:-.025em; margin:0!important; padding:0; }
.ordrel-title-icon { display:flex; align-items:center; justify-content:center; width:44px; height:44px; color:var(--tool-title); border:1px solid currentColor; border-radius:10px; }
.ordrel-title-icon svg { width:26px; height:26px; }
body.storefront.tool-workspace .ordrel-tool-title .ordrel-tool-scene { width:140px; height:94px; object-fit:cover; }
body.storefront.tool-workspace .workspace-heading:has(.ordrel-tool-title)>p:not(.eyebrow) { margin:0; max-width:85ch; font-size:16px; line-height:1.45; }

/* The analog hand uses the same elapsed seconds as the digital timer. */
.ordrel-clock-row { display:grid; grid-template-columns:minmax(0,1fr) 104px; gap:16px; align-items:center; margin-bottom:22px; }
body.tool-workspace #timing-lab .ordrel-clock-row .time-clock { margin:0; min-height:0; font-size:clamp(34px,4.5vw,60px); text-align:left; overflow-wrap:normal; }
.ordrel-stopwatch { width:104px; height:104px; color:#e5b764; }
.ordrel-stopwatch .clock-face { fill:#ffffff0d; stroke:#b7cbdc; stroke-width:2; }
.ordrel-stopwatch .clock-tick { stroke:#b7cbdc; stroke-width:2; }
.ordrel-stopwatch .clock-hand { stroke:#e5b764; stroke-width:3; stroke-linecap:round; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
 .ordrel-tool-card .ordrel-tool-icon svg,.ordrel-title-icon svg { transition:transform 180ms ease; }
 .ordrel-tool-card:is(:hover,:focus-within) .ordrel-tool-icon svg,.ordrel-tool-title:hover .ordrel-title-icon svg { transform:translateY(-2px); }
 .ordrel-tool-card .ordrel-tool-scene,.ordrel-tool-title .ordrel-tool-scene { transition:object-position 500ms ease; }
 .ordrel-tool-card:is(:hover,:focus-within) .ordrel-tool-scene,.ordrel-tool-title:hover .ordrel-tool-scene { object-position:55% 50%; }
}
@media(max-width:1250px) and (min-width:1001px) {
 body.storefront header.has-account-controls[data-account-header]:has(.order-menu-toggle)>nav#order-main-nav { gap:12px; }
 .ordrel-nav-follow { padding-left:6px; }
 body.storefront header.has-account-controls[data-account-header]>nav#order-main-nav .ordrel-follow-links a { width:32px; padding:4px; }
}
@media(max-width:1000px) {
 body.storefront .site-footer.ordrel-footer { grid-template-columns:1fr!important; }
 .ordrel-footer-top { display:flex; align-items:center; justify-content:space-between; gap:24px; }
 .ordrel-footer-top .footer-brand { max-width:400px; }
 .ordrel-footer-links { border-top:1px solid #ffffff26; padding-top:20px; }
 .ordrel-nav-follow { flex-basis:100%; border-left:0; border-top:1px solid var(--order-line); padding:12px 0 0; margin-top:10px; gap:16px; }
 .ordrel-nav-follow>span { display:block; font-size:14px; font-weight:700; }
 .ordrel-follow-compact a>span { display:inline; }
 body.storefront header.has-account-controls[data-account-header]>nav#order-main-nav .ordrel-follow-links a { width:auto; padding:8px; font-size:14px; }
}
@media(max-width:700px) {
 body.storefront .site-footer.ordrel-footer { padding:24px 20px 16px!important; gap:20px!important; }
 .ordrel-footer-top { display:block; padding-bottom:0; }
 body.storefront .ordrel-footer .footer-brand img { width:160px; }
 body.storefront .ordrel-footer .footer-brand .ordrel-footer-slogan { font-size:21px; }
 body.storefront .ordrel-footer .footer-brand .ordrel-footer-intro { max-width:360px; font-size:15px; }
 .ordrel-footer-follow { margin-top:18px; }
 .ordrel-footer-follow h2 { margin-bottom:8px; }
 .ordrel-footer-links { grid-template-columns:1fr 1fr; gap:16px; padding:20px 0 0; }
 .ordrel-footer .ordrel-footer-group>summary { min-height:44px; padding:0; }
 .ordrel-footer-contact { grid-column:1/-1; }
 body.storefront .ordrel-footer-links a,.ordrel-footer summary { min-height:40px; }
 body.storefront .ordrel-footer-contact { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; }
 .ordrel-footer-contact h2,.ordrel-footer-contact details { grid-column:1/-1; }
 .ordrel-footer-bottom { gap:0 16px; padding-top:10px; }
 .ordrel-footer-bottom>details { flex-basis:100%; }
 body.storefront.tool-workspace .ordrel-tool-title { grid-template-columns:32px minmax(0,1fr) 90px; gap:10px; padding:12px; border-radius:10px; }
 body.storefront.tool-workspace .ordrel-tool-title h1 { font-size:23px!important; }
 .ordrel-title-icon { width:32px; height:36px; border:0; }
 .ordrel-title-icon svg { width:26px; height:26px; }
 body.storefront.tool-workspace .ordrel-tool-title .ordrel-tool-scene { width:90px; height:78px; }
}
@media(max-width:640px) {
 body.storefront header.has-account-controls[data-account-header]:has(.order-menu-toggle) .brand-motto { font-size:12px; line-height:1.2; margin-top:3px; }
 body.storefront .ordrel-nav-follow { align-items:flex-start; flex-wrap:wrap; gap:4px 12px; }
 body.storefront .ordrel-tool-card-heading { min-height:114px; }
 .ordrel-clock-row { grid-template-columns:minmax(0,1fr) 80px; gap:10px; }
 .ordrel-stopwatch { width:80px; height:80px; }
}
@media(max-width:380px) {
 body.storefront .ordrel-tool-card-heading { grid-template-columns:26px minmax(0,1fr) 84px; gap:8px; padding:14px; }
 body.storefront .ordrel-tool-card .ordrel-tool-scene { width:84px; height:78px; }
 body.storefront .ordrel-tool-card h3 { font-size:17px; }
 body.storefront.tool-workspace .ordrel-tool-title { grid-template-columns:26px minmax(0,1fr) 78px; gap:8px; padding:12px 10px; }
 body.storefront.tool-workspace .ordrel-tool-title .ordrel-tool-scene { width:78px; height:72px; }
 body.storefront.tool-workspace .ordrel-tool-title h1 { font-size:22px!important; }
}
@media(prefers-reduced-motion:reduce) { .ordrel-stopwatch .clock-hand { display:none; } }
@media print {
 body.storefront .site-footer.ordrel-footer { display:none!important; }
 .ordrel-footer,.ordrel-nav-follow,.ordrel-tool-title .ordrel-tool-scene,.ordrel-title-icon,.ordrel-stopwatch { display:none!important; }
 body.storefront.tool-workspace .ordrel-tool-title { display:block; background:none; padding:0; }
 body.storefront.tool-workspace .ordrel-tool-title h1 { color:#132d3d; }
}
