/* Square controls with small uppercase mono labels, and app previews straight on the page (Nov 17).
   Loaded after shared.css and the page CSS on every page, so it wins over the rounded glass styles. */
:root { --r-btn: 0px; --r-win: 0px; --r-nav: 0px; --sq-blue: #2f6fe0; --sq-blue-ink: #1f55ba; }

/* buttons */
.btn, .b { border-radius: 0; border: 1px solid var(--ink); background: #fff; color: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: .07em;
  text-transform: uppercase; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; text-shadow: none; transition: background-color .15s, color .15s; }
.btn:hover, .b:hover { background: var(--ink); color: #fff; transform: none; }
.btn:active, .b:active { transform: translateY(1px); }
.btn-pri, .b-pri { background: var(--sq-blue); border-color: var(--sq-blue); color: #fff; }
.btn-pri::before, .b-pri::before { display: none; }
.btn-pri:hover, .b-pri:hover { background: var(--sq-blue-ink); border-color: var(--sq-blue-ink); color: #fff; }

/* the floating nav strip and its tabs */
.site-head.nav { border-radius: 0; }
.nav-links a, .site-head.nav .menu-btn, .site-head.nav .menu { border-radius: 0; }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }

/* the category switch (Measure / Price / Report, Air / Water / Pilot) */
.ftabs-bar { border-radius: 0; padding: 5px; gap: 4px; background: var(--sq-blue); border-color: var(--sq-blue); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.ftabs-bar [role="tab"] { border-radius: 0; color: #fff; font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.ftabs-bar [role="tab"]:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.ftabs-bar [role="tab"][aria-selected="true"] { background: #fff; color: var(--ink); }

/* small labels, cards, footer */
.hl, .status, .backed-badge, .route-pick, .embed-frame, .cal-panel, .win, .about-card { border-radius: 0; }
.site-foot .foot { border-radius: 0; }

/* app previews and drawings: straight on the page, no card and no torn paper */
.ftabs-vis { padding: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.tear, .tear.tall { aspect-ratio: auto; }
.tear::after { display: none; }
.tear-hole, .tear-hole.deep { position: static; -webkit-mask: none; mask: none; border-radius: 0; background: none; box-shadow: 0 0 0 1px var(--hair); }
.tear-hole img, .tear-hole.deep img { position: static; width: 100%; height: auto; max-width: 100%; object-fit: contain; padding: 0; }
.ftabs-vis figcaption { position: static; display: inline-block; margin-top: 10px; padding: 0; background: none; border-radius: 0; color: var(--ink-3); }
.ftabs-vis.bp .tear-hole, .ftabs-vis.bp img { box-shadow: none; }

/* finishing touches (Nov 17) */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
::selection { background: var(--sq-blue); color: #fff; }
:focus-visible { outline: 2px solid var(--sq-blue); outline-offset: 3px; }
/* primary actions carry a small arrow that moves on hover */
.btn-pri::after, .b-pri::after, .hx-btn.pri::after { content: "\2192"; display: inline-block; margin-left: 10px; transition: transform .2s; }
.btn-pri:hover::after, .b-pri:hover::after, .hx-btn.pri:hover::after { transform: translateX(4px); }
.site-head .btn-pri::after { content: none; }
/* nav strip: a hairline ink frame like the buttons */
.site-head.nav { border: 1px solid var(--ink); }
.nav-links a { font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
/* section labels in the same mono voice */
.label, .hl, .status { letter-spacing: .08em; }

/* figures (Nov 17): framed diagrams on a dot grid, numbered isometric drawings with a readable legend underneath */
.fig { position: relative; margin: clamp(28px, 4vw, 48px) 0 0; padding: clamp(40px, 5vw, 56px) clamp(16px, 3vw, 32px) clamp(18px, 3vw, 28px); border: 1px solid var(--hair-2); background-color: #fff;
  background-image: radial-gradient(rgba(20, 20, 28, .13) 1px, transparent 1.2px); background-size: 18px 18px; }
.fig-tag { position: absolute; left: -1px; top: -1px; padding: 7px 10px; background: var(--ink); color: #fff; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.fig .iso { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; }
.iso-l { stroke: var(--sq-blue); stroke-width: 1.3; stroke-linejoin: round; }
.iso-side { fill: #f4f8ff; } .iso-side2 { fill: #dfe9fb; } .iso-sheet { fill: #fff; } .iso-fill { fill: var(--sq-blue); }
.iso-dash { stroke-dasharray: 5 4; fill: rgba(255, 255, 255, .7); }
.iso-ink, .iso-ghost, .iso-run, .iso-path, .iso-lead { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.iso-ink { stroke: var(--ink); stroke-width: 1.2; } .iso-ghost { stroke: rgba(20, 20, 28, .28); stroke-width: 1; }
.iso-run { stroke: var(--sq-blue-ink); stroke-width: 3.2; } .iso-node { fill: #fff; stroke: var(--sq-blue-ink); stroke-width: 1.6; }
.iso-path { stroke: var(--ink); stroke-width: 2.4; } .iso-under { stroke-dasharray: 2 6; }
.iso-lead { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; }
.iso-num rect { fill: var(--ink); } .iso-num text { fill: #fff; font: 500 12px var(--mono); text-anchor: middle; letter-spacing: .04em; }
.fig-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; margin: clamp(20px, 3vw, 32px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--hair-2); background: #fff; }
.fig-legend li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 16px 16px 16px 0; }
.fig-legend i { display: grid; place-items: center; width: 26px; height: 22px; background: var(--ink); color: #fff; font: 500 12px/1 var(--mono); font-style: normal; letter-spacing: .04em; }
.fig-legend b { display: block; font: 500 15.5px/1.35 var(--f); color: var(--ink); }
.fig-legend span { display: block; margin-top: 3px; font: 400 14px/1.5 var(--f); color: var(--ink-2); }
.fig-cap { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--hair); font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: #fff; }
/* the HX-2 drawing sheet */
.sheet img { display: block; width: 100%; height: auto; }
.sheet-main { max-width: 860px; margin: 0 auto; }
.dim { position: relative; height: 26px; margin: 6px 1% 0; border-top: 1px solid var(--ink); }
.dim::before, .dim::after { content: ""; position: absolute; top: -7px; width: 1px; height: 13px; background: var(--ink); } .dim::before { left: 0; } .dim::after { right: 0; }
.dim span { position: absolute; left: 50%; top: -9px; transform: translateX(-50%); padding: 0 10px; background: #fff; font: 500 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.sheet-views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 32px); margin-top: clamp(20px, 3vw, 36px); align-items: end; }
.sheet-views span { display: block; margin-top: 8px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.sheet-block { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(20px, 3vw, 32px) 0 0; border: 1px solid var(--ink); background: #fff; }
.sheet-block > div { padding: 10px 12px; border-left: 1px solid var(--ink); } .sheet-block > div:first-child { border-left: 0; }
.sheet-block dt { font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sheet-block dd { margin: 4px 0 0; font: 500 17px/1.2 var(--f); letter-spacing: -.02em; color: var(--ink); }
@media (max-width: 620px) { .sheet-views { grid-template-columns: 1fr; } .sheet-block { grid-template-columns: 1fr 1fr; } .sheet-block > div:nth-child(3) { border-left: 0; } .sheet-block > div:nth-child(n+3) { border-top: 1px solid var(--ink); } }

/* skyfin definition (Nov 17): a dictionary entry with a marker-pen highlight, and words that turn into small pictures on hover or focus */
.pen { position: relative; z-index: 0; white-space: nowrap; padding: 0 .12em; margin: 0 -.06em; }
.pen::before { content: ""; position: absolute; z-index: -1; left: -.1em; right: -.1em; top: .12em; bottom: .02em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cfilter id='r' x='-5%25' y='-20%25' width='110%25' height='140%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .5' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='5'/%3E%3C/filter%3E%3Cpath filter='url(%23r)' d='M4 9 L197 5 L195 33 L3 36 Z' fill='%236aa5ff'/%3E%3Cpath filter='url(%23r)' d='M6 12 L190 9 L192 20 L5 23 Z' fill='%234f90f5' opacity='.35'/%3E%3C/svg%3E") 0 50% / 100% 100% no-repeat; opacity: .78;
  transform: rotate(-.7deg); clip-path: inset(0 0 0 0); transition: clip-path .9s cubic-bezier(.3, .7, .2, 1) .15s; }
.js-mark .pen:not(.seen)::before { clip-path: inset(0 100% 0 0); }
@media (prefers-reduced-motion: reduce) { .pen::before { transition: none; } }
.defn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; }
.defn-head b { font: 500 clamp(52px, 9vw, 128px)/1 var(--f); letter-spacing: -.055em; color: var(--ink); }
.defn-ph { font: 400 clamp(18px, 2vw, 26px)/1 var(--mono); color: var(--ink-3); }
.defn-head i { font: 400 clamp(18px, 2vw, 26px)/1 var(--f); font-style: italic; color: var(--ink-3); }
.defn-body { margin-top: clamp(22px, 3vw, 36px); max-width: 22em; font: 400 clamp(26px, 3.6vw, 48px)/1.28 var(--f); letter-spacing: -.035em; color: var(--ink); }
.defn-note { margin-top: clamp(18px, 2.4vw, 28px); font: 500 12px/1.6 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.wp { position: relative; display: inline-block; cursor: pointer; text-decoration: underline; text-decoration-color: var(--sq-blue); text-decoration-thickness: 2px; text-underline-offset: .14em; outline: 0; transition: color .18s; }
.wp::after { content: ""; position: absolute; left: -.28em; right: -.28em; top: .04em; bottom: -.04em; border-radius: 999px; background: var(--img) 50% 50% / cover no-repeat, #dfe9fb;
  box-shadow: 0 0 0 1.5px var(--ink), 0 10px 22px -10px rgba(20, 30, 60, .5); opacity: 0; transform: scale(.55) rotate(-4deg); transition: opacity .2s, transform .35s cubic-bezier(.175, .885, .32, 1.6); pointer-events: none; }
.wp:hover, .wp:focus { color: transparent; text-decoration-color: transparent; }
.wp:hover::after, .wp:focus::after { opacity: 1; transform: scale(1) rotate(0deg); }
@media (prefers-reduced-motion: reduce) { .wp::after { transition: opacity .2s; transform: none; } }
