/* Stone / slate material skin. Layout and behaviour stay identical to CanadaPC28. */
body.stone {
  --stone-wall: #d6d0c4;
  --stone-card: #eae5da;
  --stone-soft: #e0dace;
  --stone-edge: #b6ad9e;
  --stone-edge-dark: #938a7c;
  --stone-ink: #252722;
  --stone-muted: #6e6a60;
  --stone-accent: #8f4b33;
  --stone-slate: #303530;
  --stone-slate-edge: #1e221e;
  background-color: var(--stone-wall);
  background-image:
    radial-gradient(ellipse at 18% 16%, rgba(255,255,255,.20), transparent 54%),
    radial-gradient(ellipse at 82% 78%, rgba(74,68,56,.08), transparent 62%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  color: var(--stone-ink);
}
body.stone .theme-curtain,
body.stone .tank-reflection,
body.stone .map-glass-optics { display: none !important; }
body.stone .draw-core::before,
body.stone .recent-draws::before { display: none !important; }

/* Slate header */
body.stone header { background: transparent; }
body.stone .mast {
  background-color: var(--stone-slate);
  background-image:
    radial-gradient(ellipse at 16% 20%, rgba(255,255,255,.12), transparent 48%),
    radial-gradient(ellipse at 84% 82%, rgba(0,0,0,.18), transparent 58%),
    repeating-linear-gradient(112deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px),
    linear-gradient(112deg, #3a403a, #292d29 46%, #323730);
  border: 1px solid var(--stone-slate-edge);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -2px 0 rgba(0,0,0,.28), 0 3px 0 rgba(43,42,36,.18);
  color: #f0ebdf;
}
body.stone .mast .brand, body.stone .brand-wolf, body.stone .wordmark { color: #f0ebdf; }
body.stone .brand-letters { color: #f0ebdf; }
body.stone .brand-digits { color: #d77958; }
body.stone .mast nav { background: transparent; box-shadow: none; border: 0; }
body.stone .mast nav a { color: #cfc9bb; }
body.stone .mast nav a:hover, body.stone .mast nav a[aria-current="page"] { color: #fff8ea; border-color: #d77958; }
body.stone .wordmark .mark { background: url("wolf-mark.png") center/contain no-repeat; clip-path: none; }

/* Stone cards */
body.stone :is(.draw-core, .forecast, .recent-draws, .tool-case, .archive-chart, .edition-focus) {
  background-color: var(--stone-card);
  background-image:
    radial-gradient(ellipse at 20% 14%, rgba(255,255,255,.30), transparent 55%),
    radial-gradient(ellipse at 78% 82%, rgba(75,68,56,.07), transparent 62%),
    repeating-linear-gradient(118deg, rgba(255,255,255,.022) 0 1px, transparent 1px 5px);
  border: 1px solid var(--stone-edge);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 0 rgba(102,94,80,.12), 0 2px 0 rgba(95,86,70,.10);
}
body.stone .draw-core { border-top: 3px solid var(--stone-accent); }
body.stone .forecast { border-color: var(--stone-edge); }
body.stone .recent-draws { background-color: #e5dfd2; }

/* Matte granite balls */
body.stone .draw-balls b {
  background-color: #4a4b44;
  background-image:
    radial-gradient(circle at 27% 22%, rgba(255,255,255,.28) 0 1px, transparent 1.5px),
    radial-gradient(circle at 68% 69%, rgba(0,0,0,.35) 0 1px, transparent 1.6px),
    radial-gradient(circle at 42% 34%, #66675e, #44453f 62%, #30312c);
  background-size: 7px 7px, 11px 11px, 100% 100%;
  color: #f6f0e3 !important;
  box-shadow: inset 0 2px 1px rgba(255,255,255,.16), inset 0 -3px 2px rgba(0,0,0,.28), 0 2px 1px rgba(52,50,42,.25);
}
body.stone .draw-balls .ball-meridian { display: none; }
body.stone .draw-balls .ball-digit { color: #f6f0e3 !important; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
body.stone #numbers #total { color: var(--stone-accent); }
body.stone .draw-sum { border-left-color: var(--stone-edge); }

/* Table as carved stone ledger */
body.stone .recent-table thead { background: #d8d1c3; }
body.stone .recent-table thead th { color: #5d594f; border-bottom-color: var(--stone-edge); }
body.stone .recent-table tbody tr { border-bottom-color: #c9c1b2; }
body.stone .recent-table tbody tr:hover { background: #f0ebdf; }
body.stone .recent-balls i { background: #d3ccbf; color: #34362f; }
body.stone .recent-sum { color: var(--stone-accent); }

/* Stone tool cards */
body.stone .tool-case { box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(102,94,80,.10); }
body.stone .case-calendar { background-color: #e6dfd0; }
body.stone .case-share { background-color: #dedbd2; }
body.stone .case-scan { background-color: #dcd6cd; }
body.stone .case-lid { border-bottom-color: var(--stone-edge); }
body.stone .case-tools a { border-top-color: #c9c1b2; }
body.stone .case-tools a:hover { color: var(--stone-accent); }

/* Buttons and capsules */
body.stone .quiet-link { color: var(--stone-accent); }
body.stone .seq-all, body.stone .prediction-board-link, body.stone .peel {
  background: #d5cebf;
  border-color: var(--stone-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
body.stone .seq-all:hover { background: #c9c1b1; }
body.stone .archive-chart .seq-field { background: #ded8cc; border-radius: 8px; }

/* Prediction page surfaces */
body.stone .pick-ticket,
body.stone .pick-votes,
body.stone .pick-history,
body.stone .pick-current {
  background-color: var(--stone-card);
  background-image:
    radial-gradient(ellipse at 20% 16%, rgba(255,255,255,.24), transparent 56%),
    linear-gradient(120deg, rgba(255,255,255,.10), rgba(70,65,55,.035));
  border-color: var(--stone-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(102,94,80,.12);
}
body.stone .pick-face, body.stone .pick-publication { background: transparent !important; }
body.stone .pick-publication { background-color: #ddd6c8 !important; border-left: 1px solid var(--stone-edge); }
body.stone .pick-votes, body.stone .pick-history { background-image: none !important; }
body.stone .pick-votes { background-color: #e7e1d5 !important; }
body.stone .pick-history { background-color: #e7e1d5 !important; }
body.stone .pick-page .pick-table tbody tr > :is(td, th) { background-color: #e7e1d5; }
body.stone .pick-page .pick-table thead th { background-color: #d8d1c3 !important; border-bottom-color: var(--stone-edge); }
body.stone .pick-table tr:is(:hover,:focus-within) td, body.stone .pick-table tr:is(:hover,:focus-within) th[scope="row"] { background-color: #f0ebdf !important; }
body.stone .pick-ticket { border-top: 3px solid var(--stone-accent); }
body.stone .pick-table tr { border-bottom-color: #c9c1b2; }
body.stone .pick-table th { background: #d8d1c3; }

/* Footer / navigation */
body.stone footer { background: transparent; border-top-color: var(--stone-edge); color: var(--stone-muted); }
body.stone .footer-links a, body.stone .interlinks a { color: var(--stone-muted); }
body.stone .footer-links a:hover, body.stone .interlinks a:hover { color: var(--stone-accent); }

@media (max-width: 720px) {
  body.stone .mast { border-radius: 10px; }
  body.stone .draw-balls b { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 2px rgba(0,0,0,.28); }
}

/* Internal report pages keep the stone system instead of falling back to glass. */
body.stone .inner-main, body.stone .report-main, body.stone .directory-main { color: var(--stone-ink); }
body.stone .report-heading h1, body.stone .directory-heading h1 { color: var(--stone-ink); font-family: "Songti SC", "Noto Serif SC", serif; }
body.stone .filter-bar,
body.stone .report-shell,
body.stone .report-card,
body.stone .chart-card,
body.stone .ledger-card,
body.stone .records-ledger,
body.stone .calendar-matrix,
body.stone .tool-chooser,
body.stone .tools-grid {
  background-color: var(--stone-card);
  background-image: radial-gradient(ellipse at 20% 14%, rgba(255,255,255,.25), transparent 58%);
  border: 1px solid var(--stone-edge);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 1px 0 rgba(95,86,70,.08);
}
body.stone .filter-bar { padding: 10px 12px; margin-bottom: 12px; }
body.stone .fast-ranges, body.stone .fast-ranges a, body.stone .more-filters,
body.stone #period-filter, body.stone .advanced-filters select,
body.stone .advanced-filters input, body.stone .tool-chooser summary {
  background: #e2dccf;
  border-color: var(--stone-edge);
  color: var(--stone-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
body.stone .fast-ranges a[aria-current="true"], body.stone .more-filters[data-active="true"] {
  background: var(--stone-slate);
  color: #f4eee1;
  border-color: var(--stone-slate-edge);
}
body.stone .tool-menu, body.stone .advanced-filters { background: var(--stone-card); border-color: var(--stone-edge); }
body.stone .tool-menu a { border-bottom-color: var(--stone-edge); }
body.stone .report-table, body.stone .records-ledger table, body.stone .calendar-matrix { background: var(--stone-card); }
body.stone .report-table thead th, body.stone .records-ledger thead th, body.stone .calendar-matrix thead th {
  background: #d8d1c3;
  color: var(--stone-muted);
  border-bottom-color: var(--stone-edge);
}
body.stone .report-table tbody tr, body.stone .records-ledger tbody tr, body.stone .calendar-matrix tbody tr { border-bottom-color: #c9c1b2; }
body.stone .report-table tbody tr:hover, body.stone .records-ledger tbody tr:hover { background: #f0ebdf; }
body.stone .tools-page, body.stone .tools-grid { background: transparent; box-shadow: none; border: 0; }
body.stone .tools-grid a, body.stone .tool-tile { background: var(--stone-card); border: 1px solid var(--stone-edge); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
body.stone .report-note, body.stone .empty { color: var(--stone-muted); }

body.stone .seo-notes { margin-top: 28px; padding: 22px 24px; background: var(--stone-card); border: 1px solid var(--stone-edge); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.65); }
body.stone .seo-notes-head { display:flex; align-items:baseline; justify-content:space-between; gap:20px; border-bottom:1px solid var(--stone-edge); padding-bottom:12px; margin-bottom:16px; }
body.stone .seo-notes-head .eyebrow { margin:0; font-size:11px; letter-spacing:.14em; color:var(--stone-accent); white-space:nowrap; }
body.stone .seo-notes h2 { margin:0; font:700 21px/1.4 "Songti SC","Noto Serif SC",serif; color:var(--stone-ink); }
body.stone .seo-notes-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
body.stone .seo-notes-grid h3 { margin:0 0 6px; font:700 14px/1.5 var(--sans); }
body.stone .seo-notes-grid p { margin:0; font-size:12px; line-height:1.8; color:var(--stone-muted); }
body.stone .seo-notes-links { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; margin-top:18px; padding-top:14px; border-top:1px solid var(--stone-edge); font-size:12px; }
body.stone .seo-notes-links a { color:var(--stone-accent); text-decoration:none; }
body.stone .seo-notes-links a:hover { text-decoration:underline; }
body.stone .seo-notes details { margin-top:10px; padding-top:10px; border-top:1px solid var(--stone-edge); color:var(--stone-muted); font-size:12px; }
body.stone .seo-notes summary { cursor:pointer; font-weight:600; }
body.stone .seo-notes details p { margin:8px 0 0; line-height:1.8; }
@media (max-width:720px){ body.stone .seo-notes { padding:18px; } body.stone .seo-notes-head { display:block; } body.stone .seo-notes-head .eyebrow { margin-bottom:6px; } body.stone .seo-notes-grid { grid-template-columns:1fr; gap:14px; } }

body.stone .zl-context { margin-top: 24px; padding: 20px 22px; background: var(--stone-card); border: 1px solid var(--stone-edge); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.65); }
body.stone .zl-kicker { margin:0 0 7px; color:var(--stone-accent); font-size:10px; font-weight:700; letter-spacing:.12em; }
body.stone .zl-context h2 { margin:0 0 10px; font:700 20px/1.45 "Songti SC","Noto Serif SC",serif; }
body.stone .zl-context p { margin:0 0 8px; color:var(--stone-muted); font-size:12px; line-height:1.85; }
body.stone .zl-context .zl-lead { color:#49534b; }
body.stone .zl-faq { border-top:1px solid var(--stone-edge); padding-top:10px; margin-top:12px; font-size:12px; color:var(--stone-muted); }
body.stone .zl-faq summary { cursor:pointer; font-weight:600; color:#3f4b44; }
body.stone .zl-faq p { margin:8px 0 0; }
body.stone .zl-links { display:flex; flex-wrap:wrap; gap:8px 15px; margin-top:12px; padding-top:10px; border-top:1px solid var(--stone-edge); font-size:12px; }
body.stone .zl-links a { color:var(--stone-accent); text-decoration:none; }
body.stone .zl-links a:hover { text-decoration:underline; }
@media (max-width:720px){ body.stone .zl-context{padding:16px;} }
