/* yotta.bot/support (yotta-mono plan 332): what a support page needs that
   Identity's stylesheets, shell/portal.css and shell/styles.css (copied
   from Identity by tools/public-release/render-support.mjs), don't have:
   links in place of Identity's buttons, the stripe, the boxes' text, the app
   cards, and a phone-width panel. Everything else is Identity's. */

/* The left panel's rows, crumbs, tabs and foot are links here. */
a.id-menu-row, a.id-ws-crumb-link, a.tab { text-decoration:none; }
a.id-ws-crumb-link:hover { color:var(--text); text-decoration:underline; text-underline-offset:3px; }
a.tab:hover { color:var(--text); }
.tab[aria-current="page"] { color:var(--text); font-weight:700; border-bottom-color:var(--sc-green); }

/* An app in the panel, as Claude's support site has its products: its name
   folds its Release Notes and its categories, a category its articles, each
   level under a thin line; what holds the page shown is open and bold. */
.sp-fold { font:inherit; font-size:13.5px; }
.sp-fold .id-fold-chev { flex:none; color:var(--text3); }
.sp-fold.is-here { color:var(--htxt); font-weight:600; }
.sp-parent.is-here .id-menu-icon { color:var(--text); }
/* Only the path to the page shown is bold (owner, 2026-11-18: "just
   because something has children doesn't mean it's bold"). */
.sp-cat { font-size:13px; }
.sp-sub { list-style:none; margin:2px 0 4px 17px; padding:0 0 0 8px; border-left:1px solid var(--border); }
.sp-sub .sp-sub { margin-left:10px; }
.sp-sub .id-menu-row { align-items:flex-start; padding:5px 10px; font-size:13px; }
.sp-sub .id-menu-name { white-space:normal; line-height:18px; }
.sp-sub .id-menu-row[aria-current="page"]::before { top:5px; bottom:5px; }
.sp-sub .id-fold-chev { margin-top:3px; }
.sp-articles { list-style:none; padding:0 !important; }
.sp-articles li { padding:6px 0; border-bottom:1px solid var(--border); }
.sp-articles li + li { margin-top:0; }
.sp-articles a { text-decoration:none; }
.sp-articles a:hover { text-decoration:underline; text-underline-offset:2px; }

/* The panel's foot: the logo and the profile circle, Identity's; the menu
   opens above them. Signed out, it is Sign In and Sign Up (owner,
   2026-11-18): Sign In the page's own colour, lighter under the pointer in
   dark and darker in light; Sign Up green, its words --go-ink so they follow
   the theme, brightening under the pointer as the portal's filled buttons do. */
.sp-logo-light { display:none; }
:root[data-theme="light"] .sp-logo-light { display:block; }
:root[data-theme="light"] .sp-logo-dark { display:none; }
.sp-avatar svg { display:block; }
.sp-app .account-menu .menu[hidden] { display:none; }
/* The menu is Desktop's (its styles.css .profile-menu, owner 2026-11-18:
   "look at the control color for the menu"): the page's own colour in both
   themes over the panel's, a strong border, Desktop's type sizes and items. */
.sp-app .id-profile.account-menu .menu { left:8px; right:8px; bottom:calc(100% + 6px); padding:4px; border:1px solid var(--border-strong);
  border-radius:10px; background:var(--bg); box-shadow:0 8px 24px rgba(35,26,21,0.18); z-index:60; }
.sp-app .id-profile .menu-who { gap:2px; margin-bottom:4px; padding:8px 10px 10px; border-bottom:1px solid var(--border); }
.sp-app .id-profile .menu-name { color:var(--text); font-size:13px; font-weight:600; }
.sp-app .id-profile .menu-email { margin-top:0; color:var(--text2); font-size:12px; }
.sp-app .id-profile .menu-facts { gap:8px; margin-bottom:4px; padding:4px 10px 10px; border-top:0; border-bottom:1px solid var(--border); }
.sp-app .id-profile .menu-facts dt { color:var(--text); font-size:11.5px; font-weight:600; letter-spacing:0; }
.sp-app .id-profile .menu-facts dd { display:flex; align-items:center; gap:6px; min-height:20px; color:var(--text2); font-size:12px; }
.sp-app .id-profile .menu-facts dd a.menu-fact-link { font-size:12px; }
/* Sign Out is red, word and icon, as the portal's and Desktop's sign-outs
   are (owner, 2026-11-18: "make sign out red"). */
.sp-signout, .sp-signout:hover { gap:10px; padding:8px 10px; border-radius:6px; color:var(--sc-red); font-size:13px; font-weight:600; letter-spacing:0; text-decoration:none; }
.sp-signout:hover { background:rgba(var(--chrome-rgb),0.04); }
.sp-signout svg { flex:none; color:var(--sc-red); }
.sp-menu-out { display:flex; gap:8px; padding:6px; }
.sp-btn { flex:1; display:inline-flex; align-items:center; justify-content:center; padding:7px 12px; border-radius:6px;
  font-size:12.5px; font-weight:500; text-decoration:none; transition:background 0.15s, filter 0.15s; }
.sp-btn-plain { background:var(--bg); color:var(--text); border:1px solid var(--border-strong); }
.sp-btn-plain:hover { background:rgba(var(--chrome-rgb),0.10); }
.sp-btn-go { background:var(--sc-green); color:var(--go-ink); border:1px solid var(--sc-green); }
.sp-btn-go:hover { filter:brightness(1.08); }
.sp-menu-in .menu-item { text-decoration:none; }

/* Identity's stripe under the header, standing still. */
.sp-stripe { flex:none; height:3px; background:linear-gradient(90deg,
  var(--sc-green) 0 20%, var(--sc-yellow) 20% 40%, var(--sc-orange) 40% 60%, var(--sc-red) 60% 80%, var(--sc-magenta) 80% 100%); }

.id-canvas > .sp-panel { flex:none; width:100%; max-width:860px; margin:0 auto; padding-bottom:var(--scroll-end); }
.sp-card .card-head { align-items:baseline; }
.sp-card h2.acct-title { margin:0; }
.sp-card h2.acct-title a { text-decoration:none; }
.sp-card h2.acct-title a:hover { text-decoration:underline; text-underline-offset:3px; }
.sp-dot { color:var(--text3); }
.sp-date { color:var(--text3); font-size:12px; white-space:nowrap; }
.sp-note { scroll-margin-top:16px; }

/* A box's words. */
.sp-prose { color:var(--text2); font-size:14px; line-height:22px; }
.sp-prose > * + * { margin-top:10px; }
.sp-prose h3 { color:var(--text); font-size:14px; font-weight:600; }
.sp-prose strong { color:var(--text); font-weight:600; }
.sp-prose ul, .sp-prose ol { padding-left:20px; }
.sp-prose li + li { margin-top:4px; }
.sp-prose a { color:var(--text); text-decoration:underline; text-underline-offset:2px; }
.sp-prose code { font-family:'IBM Plex Mono',monospace; font-size:12.5px; padding:1px 5px; border-radius:4px; background:var(--bg); }

/* An article: one Markdown document on the page, as a README reads (owner,
   2026-11-18: "when you get to a page it should be markdown style"), in
   Identity's colours and type. */
.sp-doc { color:var(--text2); font-size:15px; line-height:1.65; overflow-wrap:anywhere; }
.sp-doc > * + * { margin-top:14px; }
.sp-doc h1, .sp-doc h2, .sp-doc h3, .sp-doc h4 { color:var(--text); line-height:1.3; scroll-margin-top:16px; }
.sp-doc h1 { font-size:28px; font-weight:600; margin-bottom:6px; }
.sp-doc h2 { font-size:20px; font-weight:600; margin-top:28px; padding-bottom:6px; border-bottom:1px solid var(--border); }
.sp-doc h3 { font-size:16px; font-weight:600; margin-top:22px; }
.sp-doc h4 { font-size:14px; font-weight:600; margin-top:18px; }
.sp-doc strong { color:var(--text); font-weight:600; }
.sp-doc a { color:var(--text); text-decoration:underline; text-underline-offset:2px; }
.sp-doc ul, .sp-doc ol { padding-left:24px; }
.sp-doc li + li, .sp-doc li > ul, .sp-doc li > ol { margin-top:6px; }
.sp-doc code { font-family:'IBM Plex Mono',monospace; font-size:13px; padding:1px 5px; border-radius:4px; background:var(--surface); color:var(--text); }
.sp-doc pre { padding:12px 14px; border:1px solid var(--border); border-radius:8px; background:var(--surface); overflow-x:auto; }
.sp-doc pre code { padding:0; background:none; font-size:13px; line-height:1.55; }
.sp-doc blockquote { padding:2px 0 2px 14px; border-left:3px solid var(--sc-green); color:var(--text2); }
.sp-doc table { width:100%; border-collapse:collapse; font-size:14px; display:block; overflow-x:auto; }
.sp-doc th, .sp-doc td { overflow-wrap:normal; padding:8px 10px; border:1px solid var(--border); text-align:left; vertical-align:top; }
.sp-doc th { color:var(--text); font-weight:600; background:var(--surface); }
.sp-doc img { display:block; max-width:100%; height:auto; border:1px solid var(--border); border-radius:8px; }
.sp-doc hr { border:0; border-top:1px solid var(--border); margin:24px 0; }

/* An article's head: its title, and Copy for LLM at the right, as Claude's
   support and API pages have it. */
.sp-doc .sp-doc-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.sp-doc .sp-doc-head h1 { margin-bottom:0; }
.sp-copy-md { flex:none; margin-top:6px; padding:5px 10px; border:1px solid var(--border-strong); border-radius:6px; background:var(--bg);
  color:var(--text); font:inherit; font-size:12.5px; font-weight:500; cursor:pointer; }
.sp-copy-md:hover { background:rgba(var(--chrome-rgb),0.10); }
.sp-copy-md.is-copied { color:var(--sc-green); border-color:var(--sc-green); }

/* A code box: coloured when rendered (render-support.mjs highlight), and a
   copy button at its top right, the account menu's mark (owner, 2026-11-19:
   "for all the code boxes, make sure they have the copy icon and also the
   code coloring"). The stripe's colours, darker in light mode to read. */
:root { --tok-key:#2f6fb3; --tok-str:#3f7d1c; --tok-num:#b5541c; --tok-kw:#86347c; --tok-cmd:#b0303c; --tok-flag:#8a6d00; --tok-var:#b5541c; --tok-comment:#8f887d; --tok-punct:#5f574f; }
[data-theme="dark"] { --tok-key:#7fb2ec; --tok-str:#a3d977; --tok-num:#f0a46b; --tok-kw:#d58bd0; --tok-cmd:#f07a84; --tok-flag:#f2c840; --tok-var:#f0a46b; --tok-comment:#837c71; --tok-punct:#cbc5b6; }
.sp-tok-key { color:var(--tok-key); }
.sp-tok-str { color:var(--tok-str); }
.sp-tok-num { color:var(--tok-num); }
.sp-tok-kw { color:var(--tok-kw); font-weight:500; }
.sp-tok-cmd { color:var(--tok-cmd); font-weight:500; }
.sp-tok-flag { color:var(--tok-flag); }
.sp-tok-var { color:var(--tok-var); }
.sp-tok-comment { color:var(--tok-comment); font-style:italic; }
.sp-tok-punct { color:var(--tok-punct); }
.sp-code { position:relative; }
.sp-doc > .sp-code + * { margin-top:14px; }
/* A long line wraps rather than scroll under the copy button. */
.sp-code pre { padding-right:44px; white-space:pre-wrap; overflow-wrap:anywhere; }
.sp-copy-code { position:absolute; top:8px; right:8px; display:inline-grid; place-items:center; width:26px; height:26px; padding:0;
  border:1px solid var(--border); border-radius:6px; background:var(--bg); color:var(--text3); cursor:pointer; }
.sp-copy-code:hover { color:var(--text); border-color:var(--border-strong); }
.sp-copy-code.is-copied, .sp-copy-code.is-copied:hover { color:var(--sc-green); border-color:var(--sc-green); }

/* An endpoint: its method as a coloured tag, then its path (Platform, plan
   333; platform.claude.com's reference draws them so). */
.sp-endpoint { display:flex; align-items:center; gap:10px; }
.sp-endpoint code { font-size:14px; padding:3px 8px; }
.sp-method { display:inline-block; min-width:52px; padding:2px 7px; border-radius:5px; font-family:'IBM Plex Mono',monospace;
  font-size:11.5px; font-weight:600; letter-spacing:0.02em; text-align:center; color:var(--go-ink); }
.sp-method-get { background:var(--sc-green); }
.sp-method-post { background:var(--sc-blue); color:#fbf6e4; }
.sp-method-put, .sp-method-patch { background:var(--sc-orange); color:#231a15; }
.sp-method-delete { background:var(--sc-red); color:#fbf6e4; }
.sp-prose .sp-endpoints a { display:flex; align-items:center; gap:10px; text-decoration:none; }
.sp-prose .sp-endpoints a:hover span:last-child { text-decoration:underline; text-underline-offset:2px; }

/* Get Help's apps: one card each, the Access Portal's tile colours. */
.sp-app-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.sp-app-card { display:flex; flex-direction:column; gap:6px; padding:14px; border:1px solid var(--border); border-radius:10px;
  background:var(--lift); color:var(--text); text-decoration:none; }
.sp-prose .sp-app-card { text-decoration:none; }
.sp-app-card:hover { border-color:var(--border-strong); }
.sp-app-icon { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:8px; background:var(--bg); color:var(--sc-green); }
.sp-app-name { color:var(--text); font-size:14px; font-weight:600; }
.sp-app-line { color:var(--text2); font-size:12.5px; line-height:18px; }
.sp-latest { list-style:none; padding:0 !important; }
.sp-latest li { display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid var(--border); }
.sp-latest li + li { margin-top:0; }

/* A phone: the page alone, the panel over it when opened. */
@media (max-width: 760px) {
  .sp-app { height:100dvh; grid-template-columns:minmax(0,1fr); }
  .sp-app .id-sidebar { position:fixed; z-index:50; top:0; bottom:0; left:0; width:min(300px, 85vw); box-shadow:0 0 0 100vmax rgba(0,0,0,0.35); }
  .sp-app .id-ws-header { padding-left:112px; }
  .id-canvas { padding:16px 16px 20px; }
  .sp-latest li { flex-direction:column; gap:2px; }
  .sp-app-grid { grid-template-columns:minmax(0, 1fr); }
}
.sp-app.sidebar-collapsed .id-sidebar { display:none; }

/* yotta.bot/terms and /privacy (owner, 2026-11-19: "format terms and privacy
   like how we did support"): tools/public-release/render-legal-page.mjs puts
   each legal document in this shell, its numbered sections as the page's
   Markdown, with its date under the headline. */
.sp-doc .legal-updated, .sp-doc .legal-status { margin-top:6px; color:var(--text3); font-size:13px; }
.sp-doc .legal-status { color:var(--text); font-weight:600; }
.sp-doc .legal-intro > * + *, .sp-doc .legal-section > * + * { margin-top:14px; }
.sp-doc .legal-section > h2 { margin-top:28px; }
