/* ==========================================================================
   Shelton & Steele shared site components (v22)
   ONE source for every page: the homepage, every biography, Team and Portal.
   build.py copies this file to website/shared/site-components.css.

   1. Site menu: the homepage menu (v20) moved here unchanged. The values are
      the homepage's final cascade, scoped to .site-menu so each page's own
      styles cannot reach into it and it cannot reach out.
   2. Arrows: one thin muted-gold SVG arrow set that replaces the text
      arrows, which iPhones draw as blue emoji.
   ========================================================================== */

/* --- 1. Site menu --------------------------------------------------------- */
body.menu-open{overflow:hidden}
.site-menu{
  --sm-ink:#293a4b;--sm-pearl:#f6f5f1;--sm-line:#dcdcd4;--sm-gold-ink:#7a6139;
  --sm-number:#9b8a6b;--sm-arrow:#9d8b6a;--sm-hover:#9b7c4b;--sm-portal:#8b7049;
  --sm-close:#576572;--sm-contact:#5b6977;--sm-signoff:#576b7c;--sm-signoff-em:#9b8157;
  position:fixed;top:104px;width:min(1060px,89vw);max-height:calc(100svh - 125px);margin:0 auto;
  padding:33px 42px 24px;border:1px solid #ffffff50;border-radius:3px;
  color:var(--sm-ink);background:var(--sm-pearl);box-shadow:0 20px 90px #04101a80;overflow:auto;
  font-family:'DM Sans',Arial,sans-serif;font-size:17px;font-weight:400;font-style:normal;line-height:1.65;
  letter-spacing:normal;text-align:left;text-transform:none;-webkit-font-smoothing:antialiased;
  overscroll-behavior:contain
}
.site-menu::backdrop{background:#06101c9c;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
/* Element resets keep the homepage's low specificity (:where adds none), so
   the class rules below win exactly as they do on the homepage. */
.site-menu,:where(.site-menu) *{box-sizing:border-box}
:where(.site-menu) p{margin:0}
:where(.site-menu) a{color:inherit;text-decoration:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
:where(.site-menu) button{font:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.site-menu a:focus-visible,.site-menu button:focus-visible{outline:2px solid #2f6fa8;outline-offset:4px}
.site-menu .eyebrow{margin:0;font-family:'DM Sans',Arial,sans-serif;font-size:11px;font-weight:500;line-height:1.6;color:var(--sm-gold-ink);text-transform:none}
.menu-topline{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--sm-line);padding-bottom:19px;gap:20px}
.menu-topline .eyebrow{letter-spacing:1.5px}
.menu-close{display:flex;gap:14px;align-items:center;font-size:13px;min-height:44px;border:0;background:none;color:var(--sm-close);padding:5px}
.menu-close span{font-size:26px;line-height:1}
/* 19 October (evening): the same links, consolidated. Smaller serif rows without
   per-link arrows, the two supporting groups side by side, contact on one line,
   so the whole menu fits a phone screen without scrolling. */
.menu-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:56px;padding:22px 0}
.menu-primary{display:flex;flex-direction:column}
.menu-primary a{display:flex;align-items:baseline;gap:16px;padding:6px 0;font-family:'Instrument Serif',Georgia,serif;font-size:28px;font-weight:400;line-height:1.25}
.menu-primary a>span{font:11px 'DM Sans',Arial,sans-serif;color:var(--sm-number);min-width:18px}
.menu-primary a>i{display:none}
.menu-primary>.menu-portal-link{color:var(--sm-portal)}
.menu-primary a:hover,.menu-secondary a:hover{color:var(--sm-hover)}
.menu-secondary{padding-top:6px;display:grid;grid-template-columns:1fr 1fr;column-gap:22px;align-content:start}
.menu-secondary .eyebrow{letter-spacing:1.4px}
.menu-secondary>.eyebrow:nth-of-type(1){grid-area:1/1}
.menu-secondary>nav:nth-of-type(1){grid-area:2/1}
.menu-secondary>.eyebrow:nth-of-type(2){grid-area:1/2}
.menu-secondary>nav:nth-of-type(2){grid-area:2/2}
.site-menu .menu-grid .menu-secondary nav+.eyebrow{margin-top:0}
.menu-secondary nav{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.menu-secondary nav>a{display:block;min-height:0;font-size:14px;line-height:1.35}
.menu-secondary nav>a>span{display:none}
.menu-contact{grid-area:3/1/4/3;display:flex;flex-wrap:wrap;column-gap:18px;row-gap:4px;font-size:14px;color:var(--sm-contact);margin-top:22px}
.menu-signoff{font-family:'Instrument Serif',Georgia,serif;font-size:22px;border-top:1px solid var(--sm-line);padding-top:14px;color:var(--sm-signoff)}
.menu-signoff em{color:var(--sm-signoff-em)}
@media(max-width:760px){
  .site-menu{top:88px;max-height:calc(100svh - 108px);width:90%;padding:20px;font-size:15px}
  .menu-topline{padding-bottom:12px}
  .menu-topline .eyebrow{letter-spacing:1px}
  .menu-grid{grid-template-columns:1fr;gap:16px;padding:12px 0}
  .menu-primary a{font-size:22px;gap:12px;padding:4px 0}
  .menu-secondary{border-top:1px solid var(--sm-line);padding-top:14px;column-gap:16px}
  .menu-secondary nav{gap:7px;margin-top:10px}
  .menu-secondary nav>a{font-size:13px}
  .menu-contact{font-size:13px;margin-top:16px}
  .menu-signoff{font-size:18px;padding-top:12px}
}
@media(max-width:520px){.menu-primary a{font-size:21px}}
@media(max-height:640px){.site-menu{top:85px;max-height:calc(100svh - 100px)}}

/* --- 2. Arrows ------------------------------------------------------------ */
/* One shape set (north-east, east, south), one hairline weight and one muted
   gold everywhere. The stroke stays 1.25px at every size. */
.ss-arrow{display:inline-block;width:.8em;height:.8em;flex:none;vertical-align:-.04em;overflow:visible;
  fill:none;stroke:var(--ss-arrow,#9b8a6b);stroke-width:1.25px;stroke-linecap:round;stroke-linejoin:round}
.ss-arrow path{vector-effect:non-scaling-stroke}
/* On gold-filled buttons the standard shade disappears into the fill; the
   same gold one step deeper keeps the arrow visible. */
.ss-on-gold .ss-arrow,.ss-on-gold.ss-arrow{--ss-arrow:#6f5a35}

/* Back to top (17 Nov; lighter 18 Nov): an ivory medallion with a navy arrow, bottom right on every page. Its gold ring fills as you
   read down the page. It fades in after scrolling (see shared/back-to-top.js) and sits under the header and menu. */
.to-top{--s:52px;position:fixed;right:max(26px,env(safe-area-inset-right));bottom:max(26px,env(safe-area-inset-bottom));z-index:15;
  width:var(--s);height:var(--s);padding:0;border:0;border-radius:50%;background:none;cursor:pointer;color:#0b2848;
  display:grid;place-items:center;-webkit-tap-highlight-color:transparent;
  translate:var(--mx,0px) var(--my,0px);
  visibility:hidden;opacity:0;transform:translateY(16px) scale(.86);
  transition:opacity .35s ease,transform .5s cubic-bezier(.2,.8,.2,1.15),translate .35s cubic-bezier(.2,.7,.2,1),visibility 0s linear .5s}
.to-top.is-shown{visibility:visible;opacity:1;transform:none;
  transition:opacity .35s ease,transform .5s cubic-bezier(.2,.8,.2,1.15),translate .35s cubic-bezier(.2,.7,.2,1),visibility 0s}
/* the reading ring: a faint gold track and a bright gold arc that grows with the page */
.to-top-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible;
  filter:drop-shadow(0 0 2px #e9cf8f59)}
.to-top-track{fill:none;stroke:#c9a35d59;stroke-width:1.4}
.to-top-fill{fill:none;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;transition:stroke-dashoffset .25s linear}
/* the medallion: warm ivory, like the subscribe card, with a fine gold inner line and a soft shadow */
.to-top-core{position:relative;width:calc(var(--s) - 12px);height:calc(var(--s) - 12px);border-radius:50%;overflow:hidden;display:grid;place-items:center;
  background:radial-gradient(95% 95% at 32% 22%,#ffffff 0%,#fdf9f0 40%,#f5ecd8 78%,#ecdfc2 100%);
  box-shadow:inset 0 0 0 1px #c9a35d99,inset 0 1px 0 #fff,inset 0 -5px 10px #b8924f24,0 12px 24px -12px #061c3699,0 2px 6px -2px #061c3659;
  transition:box-shadow .3s}
.to-top-core:after{content:'';position:absolute;top:-30%;bottom:-30%;left:-80%;width:55%;transform:skewX(-18deg);pointer-events:none;
  background:linear-gradient(100deg,#fff0 0%,#ffffffd9 50%,#fff0 100%)}
.to-top.is-gleam .to-top-core:after{animation:ss-top-gleam 1.1s cubic-bezier(.3,.6,.3,1) .25s 1}
@keyframes ss-top-gleam{from{left:-80%}to{left:130%}}
/* two arrows: on hover the first lifts away and the second rises in behind it */
.to-top-arrows{position:relative;width:18px;height:18px;overflow:hidden}
.to-top-arrows svg{position:absolute;inset:0;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
  transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.to-top-arrows svg+svg{transform:translateY(130%)}
.to-top-label{position:absolute;right:calc(100% + 12px);top:50%;white-space:nowrap;pointer-events:none;
  padding:8px 13px;border-radius:999px;background:#fdf9f0f2;border:1px solid #c9a35d;color:#0b2848;box-shadow:0 8px 20px -10px #061c3680;
  font:600 11px/1 var(--sans,Arial,sans-serif);letter-spacing:.14em;text-transform:uppercase;
  opacity:0;transform:translate(8px,-50%);transition:opacity .25s,transform .35s cubic-bezier(.2,.7,.2,1)}
@media (hover:hover) and (pointer:fine){
  .to-top:hover .to-top-core,.to-top:focus-visible .to-top-core{box-shadow:inset 0 0 0 1px #b8924f,inset 0 1px 0 #fff,inset 0 -5px 10px #b8924f2e,0 16px 28px -12px #061c36b3,0 0 22px -4px #e9cf8fb3}
  .to-top:hover .to-top-arrows svg:first-child,.to-top:focus-visible .to-top-arrows svg:first-child{transform:translateY(-130%)}
  .to-top:hover .to-top-arrows svg+svg,.to-top:focus-visible .to-top-arrows svg+svg{transform:none}
  .to-top:hover .to-top-label,.to-top:focus-visible .to-top-label{opacity:1;transform:translate(0,-50%)}
}
/* on click the arrow lifts off, then settles back */
.to-top.is-launch .to-top-arrows svg{animation:ss-top-launch .7s cubic-bezier(.5,0,.2,1) 1}
@keyframes ss-top-launch{0%{transform:none}45%{transform:translateY(-140%)}46%{transform:translateY(140%)}100%{transform:none}}
.to-top.is-launch .to-top-arrows svg+svg{animation:none;transform:translateY(130%)}
.to-top:active .to-top-core{transform:scale(.95)}
.to-top-core{transition:box-shadow .3s,transform .2s}
.to-top:focus-visible{outline:none}
.to-top:focus-visible .to-top-ring{outline:2px solid #d6b879;outline-offset:3px;border-radius:50%}
@media (max-width:760px){.to-top{--s:46px;right:max(14px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom))}.to-top-label{display:none}}
@media (prefers-reduced-motion:reduce){
  .to-top,.to-top.is-shown{transition:none;transform:none;translate:none}
  .to-top-fill,.to-top-arrows svg,.to-top-label,.to-top-core{transition:none}
  .to-top.is-gleam .to-top-core:after,.to-top.is-launch .to-top-arrows svg{animation:none}
}
@media print{.to-top{display:none}}

/* Menu (18 Nov): News & Media is a main item, with Events and the Street Smart Law Blog listed right under it. */
.menu-primary .menu-sub{display:flex;flex-wrap:wrap;gap:4px 18px;margin:-2px 0 6px 34px}
.menu-primary .menu-sub a{display:inline-flex;padding:2px 0;font:500 13.5px/1.4 'DM Sans',Arial,sans-serif;letter-spacing:.01em;color:var(--sm-number);border-bottom:1px solid transparent}
.menu-primary .menu-sub a:hover,.menu-primary .menu-sub a:focus-visible{color:var(--sm-hover);border-bottom-color:currentColor}
@media(max-width:760px){.menu-primary .menu-sub{margin:-2px 0 4px 30px;gap:2px 16px}.menu-primary .menu-sub a{font-size:13px}}
/* "You are here": the link to the page you're on is marked in the header and the menu. */
.header-nav a[aria-current="page"]{color:#e9cf9d}
.menu-primary a[aria-current="page"],.menu-secondary a[aria-current="page"]{text-decoration:underline;text-decoration-color:#c9a35d;text-decoration-thickness:1px;text-underline-offset:7px}
.menu-secondary a[aria-current="page"]{text-underline-offset:4px}
/* Header bar: every link stays on one line; on mid-size screens the spacing tightens and Portal is left to the menu. */
.header-nav a{white-space:nowrap}
@media (min-width:1151px) and (max-width:1365px){.header-nav{gap:20px}}
@media (min-width:1151px) and (max-width:1299px){.header-nav a.portal-link,.header-nav a.nav-portal{display:none}}
/* Shorter laptop screens: the menu's main list is a little more compact so the whole menu fits without scrolling. */
@media (min-width:761px) and (max-height:820px){.menu-primary a{font-size:24px;padding:3px 0}.menu-primary .menu-sub{margin:-1px 0 4px 34px}}

/* 27 Nov: room for the logo name beside the menu on laptop widths (repair to the 25 Nov margins) */
@media (min-width:1366px) and (max-width:1439px){.header-nav{gap:20px}}
@media (min-width:1300px) and (max-width:1349px){.header-nav a.portal-link,.header-nav a.nav-portal{display:none}}
@media (min-width:1151px) and (max-width:1259px){.header-nav a[href$="news-media/"]{display:none}}

/* 30 Nov: small tablets, room for the logo name */
@media (min-width:651px) and (max-width:720px){.header-nav a.portal-link,.header-nav a.nav-portal{display:none}}

/* 30 Nov: Pause motion button on the blog, beside the back-to-top button */
.page-motion{position:fixed;z-index:15;right:calc(max(26px,env(safe-area-inset-right)) + 64px);bottom:calc(max(26px,env(safe-area-inset-bottom)) + 6px);display:flex;align-items:center;gap:10px;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid #e0c89b59;background:#0b1f33e6;color:#eef2f6;font:inherit;font-size:12px;letter-spacing:.02em;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 12px 26px -14px #061c36cc;cursor:pointer}.page-motion .pm-icon{font-size:14px;line-height:1;color:#d9c39e}.page-motion:hover{border-color:#d7bd8e}.page-motion:focus-visible{outline:2px solid #d7bd8e;outline-offset:3px}@media (max-width:760px){.page-motion{right:calc(max(14px,env(safe-area-inset-right)) + 56px);bottom:calc(max(14px,env(safe-area-inset-bottom)) + 3px)}}@media (prefers-reduced-motion:reduce){.page-motion{display:none}}@media print{.page-motion{display:none}}.motion-paused .post-card,.motion-paused .post-card *{translate:none!important;rotate:none!important;scale:none!important}.motion-paused .post-card{opacity:1!important}.motion-paused *,.motion-paused *:before,.motion-paused *:after{animation-play-state:paused!important}
