/* Scots labels on the plan cards, owner briefs 28 November 2026, with a voice clip per speaker (round 2: founder pulse).
   Loaded on the plans page only, after plans.css, which is unchanged. */

/* A Scots label is a plain button that looks like the text it replaces. Not a link. */
.scots{appearance:none;background:none;border:0;border-radius:2px;margin:0;padding:0;font:inherit;color:inherit;letter-spacing:inherit;text-align:inherit;cursor:help;position:relative;display:inline-flex;align-items:baseline;justify-content:flex-end;flex-wrap:wrap;gap:0 5px;-webkit-tap-highlight-color:transparent}
.scots:focus-visible{outline:2px solid var(--amber);outline-offset:3px}
.scots-keep{white-space:nowrap;display:inline-flex;align-items:baseline;gap:5px}
/* The small gold speaker: the same gold as the highlighted plan and the Ask Work Covered button. */
.scots-icon{flex:none;width:12px;height:12px;color:var(--amber);align-self:center}

/* In the rows the label fills the height of its row, so it is easy to tap on a phone. */
.plan-rows li>b .scots{padding:8px 0 8px 12px;margin:-8px 0}
.plan-rows li.is-extra>span{flex:none}
.plan-rows li.is-extra>b{flex:0 1 auto;max-width:none}
.plan-lead .scots{padding:10px 14px 10px 0;margin:-10px 0;justify-content:flex-start}

/* "Nae homers": a small tag beside the invoices row. */
.scots-tag{margin:-3px 0 -3px 4px;padding:3px 7px;border:1px solid #e9aa4973;border-radius:3px;font-size:11px;font-weight:600;line-height:1.3;color:var(--amber-light);vertical-align:baseline;white-space:nowrap}
.scots-tag .scots-icon{width:11px;height:11px}
/* A larger tap area than the tag itself, with no change to how it looks. */
.scots-tag:after{content:'';position:absolute;inset:-10px -8px}

/* The line under the cards, above the footnotes. */
.scots-hint{margin:26px 0 0;font-size:13px;line-height:1.6;color:var(--ink);max-width:none}
.scots-hint .scots-icon{display:inline-block;vertical-align:-1px;margin:0 2px}
.scots-keep .scots-icon{align-self:center}
.scots-hint+.plans-footnotes{margin-top:12px}

/* The pop-up with the plain English. One element, placed by scots.js. */
.scots-pop{position:fixed;z-index:1000;left:0;top:0;max-width:min(270px,calc(100vw - 24px));padding:9px 12px 10px;border:1px solid var(--amber);border-radius:5px;background:#171e1a;color:var(--ink);font:500 13px/1.45 var(--body);box-shadow:0 12px 32px #0b0f0db3;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .12s}
.scots-pop.is-open{opacity:1;visibility:visible}
.scots-pop>span{display:block}
/* Second line: the voice name and region of the clip. */
.scots-pop-voice{margin-top:3px;font-size:11px;font-weight:500;line-height:1.4;color:var(--muted)}
/* While its clip plays, the speaker shows as a filled gold disc. No change to the layout. */
.scots.is-playing .scots-icon{border-radius:50%;background:var(--amber);color:#171e1a;box-shadow:0 0 0 3px var(--amber)}
/* The founder's speaker (Ben Nevis header) breathes a soft gold ring until it has been played once
   this visit. Shadow only, so nothing moves; none under reduced motion. */
.scots[data-founder]:not(.is-heard):not(.is-playing) .scots-icon{border-radius:50%;animation:scots-founder 2.5s ease-in-out infinite}
@keyframes scots-founder{0%,100%{box-shadow:0 0 0 0 #e9aa4900}50%{box-shadow:0 0 0 4px #e9aa4966}}
@media(prefers-reduced-motion:reduce){.scots[data-founder] .scots-icon{animation:none!important}}
@media(max-width:700px){.scots-hint{font-size:12px;margin-top:22px}.scots-pop{font-size:14px}.scots-pop-voice{font-size:12px}}
@media(prefers-reduced-motion:reduce){.scots-pop{transition:none}}
