/* =============================================================
   greek-casinos.net — il tema del sito, famiglia E (tema 2026) con
   un'identità propria. Si carica dopo caratteri.css:
       <link rel="stylesheet" href="/css/caratteri.css?v=20261022">
       <link rel="stylesheet" href="/css/tema-gr.css?v=20261022">

   Le regole che governano il foglio:
   1. il colore porta un significato solo: l'inchiostro blu è la struttura
      e i collegamenti, il rosso del timbro dice «blacklist, vietato», il
      verde dice «con licenza»; il giallo dell'evidenziatore sta soltanto
      sulla cifra che una riquadratura calcola, e su nient'altro;
   2. due caratteri, due lavori: GFS Didot, della Greek Font Society, per i
      titoli; IBM Plex Sans per il testo, le tabelle e le cifre, sempre in
      cifre tabulari dove si confrontano;
   3. niente schede di operatori, perché il sito non ne ha: il registro è
      una tabella, il conto del fisco è un rendiconto, la legge è citata;
   4. tutto quello che si legge sta sopra i 14 px, anche sul telefono.

   Le classi .ed-article, .ed-legal, .ed-faq, .ed-nota e .ed-meta sono
   quelle che gli strumenti del kit riconoscono: la prosa dell'autore sta in
   .ed-article, le citazioni di legge in .ed-legal, le domande in .ed-faq.
   Le classi .gk-* sono del sito; quelle che non sono prosa stanno in SKIP
   di misura_voce.py. Le classi .gr*, .vis e .v-* sono quelle di visivi.py.
   ============================================================= */

:root {
  --paper: #F7F8FA;
  --sheet: #FFFFFF;
  --ink: #18212C;
  --soft: #4A5463;
  --rule: #D6DCE4;
  --band: #EDF1F7;
  --mel: #1F3F8A;          /* μελάνι: l'inchiostro blu del sito */
  --mel-deep: #15306E;
  --stamp: #A11D21;        /* il timbro: blacklist, vietato */
  --stamp-bg: #FBEDEE;
  --lic: #17603F;          /* con licenza */
  --lic-bg: #E8F3ED;
  --marker: #FFE68A;       /* l'evidenziatore, solo sulla cifra calcolata */
  --marker-ink: #18212C;
  --shadow: rgba(24, 33, 44, 0.08);

  --display: 'GFS Didot', Didot, 'Bodoni 72', 'Times New Roman', serif;
  --text: 'IBM Plex Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --col: 40rem;
  --wide: 54rem;
  --gutter: 1rem;

  --t-xs: 0.84rem;
  --t-s: 0.9rem;
  --t-m: 1.15rem;
  --t-l: 1.55rem;
  --t-xl: clamp(1.9rem, 4.6vw, 2.75rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10151C;
    --sheet: #161D27;
    --ink: #E5E9EF;
    --soft: #A9B2BF;
    --rule: #2B3543;
    --band: #1B2430;
    --mel: #9DB5F0;
    --mel-deep: #C2D1F6;
    --stamp: #F0A0A0;
    --stamp-bg: #2D1A1C;
    --lic: #8BCFAE;
    --lic-bg: #13271E;
    --marker: #F2D46A;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}

/* ---------- impianto ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 600px) {
  html { font-size: 17px; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.62;
  font-kerning: normal;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a {
  color: var(--mel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mel);
  outline-offset: 2px;
}

.gk-skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.gk-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  background: var(--mel);
  color: var(--sheet);
}

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h3, h4 {
  font-family: var(--text);
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- testata ---------- */

.gk-top {
  background: var(--sheet);
  border-bottom: 3px solid var(--mel);
}
.gk-top__in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--gutter) 0.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
}
.gk-brand {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.gk-brand__name {
  font-family: var(--display);
  font-size: 1.7rem;
  line-height: 1.05;
}
.gk-brand__tag {
  font-size: var(--t-xs);
  color: var(--soft);
}
.gk-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
}
.gk-nav a {
  display: inline-block;
  padding: 0.3rem 0;
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.gk-nav a:hover { border-bottom-color: var(--rule); }
.gk-nav a[aria-current="page"],
.gk-nav a.gk-nav--in { border-bottom-color: var(--mel); color: var(--mel); }

/* ---------- pagina ---------- */

.gk-main {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.1rem var(--gutter) 3rem;
}
.gk-crumb {
  font-size: var(--t-xs);
  color: var(--soft);
  margin-bottom: 1.4rem;
}
.gk-crumb a { color: var(--soft); }
.gk-crumb span[aria-hidden] { margin: 0 0.35rem; }

.ed-article {
  max-width: var(--col);
}
.ed-article h1 {
  font-size: var(--t-xl);
  margin: 0 0 0.7rem;
  color: var(--ink);
}
.ed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 1rem;
  margin: 0 0 1.6rem;
  font-size: var(--t-xs);
  color: var(--soft);
}
.ed-meta > * { min-width: 0; }
.gk-age {
  font-weight: 600;
  color: var(--stamp);
  border: 1.5px solid var(--stamp);
  border-radius: 3px;
  padding: 0 0.3rem;
  line-height: 1.4;
}
.ed-article .lead {
  font-size: var(--t-m);
  line-height: 1.55;
  margin: 0 0 1.5rem;
}
.ed-article h2 {
  font-size: var(--t-l);
  margin: 2.4rem 0 0.75rem;
  color: var(--mel-deep);
}
.ed-article h3 {
  font-size: 1.05rem;
  margin: 1.8rem 0 0.5rem;
}
.ed-article p,
.ed-article ul,
.ed-article ol { margin: 0 0 1.05rem; }
.ed-article li { margin-bottom: 0.35rem; }
.ed-article strong { font-weight: 600; }

/* le citazioni di legge */
.ed-legal {
  margin: 1.4rem 0 1.5rem;
  padding: 0.9rem 1.1rem 0.8rem;
  background: var(--sheet);
  border-left: 4px solid var(--mel);
  box-shadow: 0 1px 2px var(--shadow);
}
.ed-legal p {
  margin: 0 0 0.45rem;
  font-size: 0.97rem;
}
.ed-legal cite {
  display: block;
  font-style: normal;
  font-size: var(--t-xs);
  color: var(--soft);
}

/* i riquadri: il colore dice lo stato, l'etichetta lo scrive */
.gk-box {
  margin: 1.5rem 0;
  padding: 0.95rem 1.1rem 0.15rem;
  border: 1px solid var(--rule);
  border-left-width: 4px;
  background: var(--sheet);
}
.gk-box--warn { border-left-color: var(--stamp); background: var(--stamp-bg); }
.gk-box--ok { border-left-color: var(--lic); background: var(--lic-bg); }
.gk-box--info { border-left-color: var(--mel); }
.gk-box p { margin: 0 0 0.8rem; }

.ed-nota {
  font-size: var(--t-s);
  color: var(--soft);
}

/* ---------- tabelle ---------- */

.gk-tablewrap {
  margin: 1.4rem 0 1.6rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
/* sugli schermi larghi una tabella con molte colonne esce dalla misura del testo verso destra,
   dove la colonna lascia spazio, fino alla larghezza del contenitore; le tabelle strette restano
   alla misura del testo */
@media (min-width: 60rem) {
  .ed-article .gk-tablewrap {
    width: max-content;
    min-width: 100%;
    max-width: calc(var(--wide) - 2 * var(--gutter));
  }
}
.gk-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--sheet);
  font-size: var(--t-s);
  font-variant-numeric: tabular-nums;
}
.gk-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding: 0 0 0.45rem;
}
.gk-table th,
.gk-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.gk-table thead th {
  background: var(--band);
  font-weight: 600;
  border-bottom: 2px solid var(--mel);
}
.gk-table td.num,
.gk-table th.num { text-align: right; white-space: nowrap; }
.gk-table td.gk-nw { white-space: nowrap; }
.gk-table tr.gk-off td { color: var(--soft); }
.gk-state {
  display: inline-block;
  font-weight: 600;
  white-space: nowrap;
}
.gk-state--ok { color: var(--lic); }
.gk-state--no { color: var(--stamp); }

/* il rendiconto della sessione: la cosa che il sito ha e gli altri no */
.gk-ledger {
  margin: 1.6rem 0 1.8rem;
  max-width: 34rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--mel);
  box-shadow: 0 2px 6px var(--shadow);
}
.gk-ledger figcaption {
  padding: 0.75rem 1rem 0.2rem;
  font-weight: 600;
}
.gk-ledger figcaption span {
  display: block;
  font-weight: 400;
  font-size: var(--t-xs);
  color: var(--soft);
}
.gk-ledger table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.gk-ledger td {
  padding: 0.42rem 1rem;
  border-bottom: 1px dashed var(--rule);
}
.gk-ledger td + td {
  text-align: right;
  white-space: nowrap;
}
.gk-ledger tr.gk-sub td { color: var(--soft); }
.gk-ledger tr.gk-tax td { font-weight: 600; }
.gk-ledger tr.gk-tax td + td mark {
  background: var(--marker);
  color: var(--marker-ink);
  padding: 0.05rem 0.35rem;
  border-radius: 2px;
}
.gk-ledger tr.gk-net td {
  border-bottom: 0;
  border-top: 2px solid var(--ink);
  font-weight: 600;
}

/* il calcolatore */
.gk-calc {
  margin: 1.6rem 0 1.8rem;
  padding: 1rem 1.1rem 0.6rem;
  background: var(--band);
  border: 1px solid var(--rule);
}
.gk-calc h3 { margin-top: 0; }
.gk-calc label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.gk-calc input {
  font: inherit;
  font-variant-numeric: tabular-nums;
  width: 100%;
  max-width: 12rem;
  padding: 0.5rem 0.6rem;
  border: 1.5px solid var(--soft);
  border-radius: 3px;
  background: var(--sheet);
  color: var(--ink);
  min-height: 44px;
}
.gk-calc output {
  display: block;
  margin: 0.8rem 0 0.4rem;
  font-variant-numeric: tabular-nums;
}
.gk-calc output strong {
  background: var(--marker);
  color: var(--marker-ink);
  padding: 0 0.3rem;
}

/* ---------- figure (visivi.py) ---------- */

figure.vis {
  margin: 1.6rem 0 1.8rem;
  padding: 0.9rem 1rem 0.5rem;
  background: var(--sheet);
  border: 1px solid var(--rule);
}
figure.vis figcaption { margin-top: 0.6rem; }
.gr { font-size: var(--t-s); }
.gr__asse {
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.gr__riga {
  display: grid;
  grid-template-columns: minmax(7rem, 13rem) 1fr auto;
  align-items: center;
  gap: 0.3rem 0.75rem;
  margin-bottom: 0.45rem;
}
.gr__nome { color: var(--ink); }
.gr__pista {
  display: block;
  height: 0.85rem;
  background: var(--band);
}
.gr__barra {
  display: block;
  height: 100%;
  background: var(--mel);
}
.gr__barra--debole { background: var(--rule); }
.gr--no .gr__barra { background: var(--stamp); }
.gr--ok .gr__barra { background: var(--lic); }
.gr__cifra {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .gr__riga { grid-template-columns: 1fr auto; }
  .gr__nome { grid-column: 1 / -1; }
}
.vis__disegno { display: block; width: 100%; height: auto; }
.v-testo { font-family: var(--text); font-size: 13px; fill: var(--ink); }
.v-testo--muted { fill: var(--soft); }
.v-cifra { font-family: var(--text); font-size: 20px; font-weight: 600; fill: var(--ink); }
.v-cifra--debole { fill: var(--soft); font-weight: 400; }
.v-ruota { fill: none; stroke: var(--mel); stroke-width: 2; }
.v-ruota--debole { stroke: var(--soft); }
.v-tacca { stroke: var(--mel); stroke-width: 1.4; }
.v-tacca--debole { stroke: var(--rule); }
.v-zero { stroke: var(--lic); stroke-width: 4; }
.v-asse { stroke: var(--soft); stroke-width: 1.5; }
.v-punto { fill: var(--mel); }
.v-testo--num { font-variant-numeric: tabular-nums; }
.v-barra { fill: var(--mel); }
.v-barra--debole { fill: var(--rule); }
.v-box { fill: var(--sheet); stroke: var(--rule); stroke-width: 1.2; }
.v-box--ok { fill: var(--lic-bg); stroke: var(--lic); }
.v-box--net { fill: var(--stamp-bg); stroke: var(--stamp); }
.v-strelka { fill: none; stroke: var(--soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gr-w-0{width:0%}.gr-w-1{width:1%}.gr-w-2{width:2%}.gr-w-3{width:3%}.gr-w-4{width:4%}.gr-w-5{width:5%}.gr-w-6{width:6%}.gr-w-7{width:7%}.gr-w-8{width:8%}.gr-w-9{width:9%}
.gr-w-10{width:10%}.gr-w-11{width:11%}.gr-w-12{width:12%}.gr-w-13{width:13%}.gr-w-14{width:14%}.gr-w-15{width:15%}.gr-w-16{width:16%}.gr-w-17{width:17%}.gr-w-18{width:18%}.gr-w-19{width:19%}
.gr-w-20{width:20%}.gr-w-21{width:21%}.gr-w-22{width:22%}.gr-w-23{width:23%}.gr-w-24{width:24%}.gr-w-25{width:25%}.gr-w-26{width:26%}.gr-w-27{width:27%}.gr-w-28{width:28%}.gr-w-29{width:29%}
.gr-w-30{width:30%}.gr-w-31{width:31%}.gr-w-32{width:32%}.gr-w-33{width:33%}.gr-w-34{width:34%}.gr-w-35{width:35%}.gr-w-36{width:36%}.gr-w-37{width:37%}.gr-w-38{width:38%}.gr-w-39{width:39%}
.gr-w-40{width:40%}.gr-w-41{width:41%}.gr-w-42{width:42%}.gr-w-43{width:43%}.gr-w-44{width:44%}.gr-w-45{width:45%}.gr-w-46{width:46%}.gr-w-47{width:47%}.gr-w-48{width:48%}.gr-w-49{width:49%}
.gr-w-50{width:50%}.gr-w-51{width:51%}.gr-w-52{width:52%}.gr-w-53{width:53%}.gr-w-54{width:54%}.gr-w-55{width:55%}.gr-w-56{width:56%}.gr-w-57{width:57%}.gr-w-58{width:58%}.gr-w-59{width:59%}
.gr-w-60{width:60%}.gr-w-61{width:61%}.gr-w-62{width:62%}.gr-w-63{width:63%}.gr-w-64{width:64%}.gr-w-65{width:65%}.gr-w-66{width:66%}.gr-w-67{width:67%}.gr-w-68{width:68%}.gr-w-69{width:69%}
.gr-w-70{width:70%}.gr-w-71{width:71%}.gr-w-72{width:72%}.gr-w-73{width:73%}.gr-w-74{width:74%}.gr-w-75{width:75%}.gr-w-76{width:76%}.gr-w-77{width:77%}.gr-w-78{width:78%}.gr-w-79{width:79%}
.gr-w-80{width:80%}.gr-w-81{width:81%}.gr-w-82{width:82%}.gr-w-83{width:83%}.gr-w-84{width:84%}.gr-w-85{width:85%}.gr-w-86{width:86%}.gr-w-87{width:87%}.gr-w-88{width:88%}.gr-w-89{width:89%}
.gr-w-90{width:90%}.gr-w-91{width:91%}.gr-w-92{width:92%}.gr-w-93{width:93%}.gr-w-94{width:94%}.gr-w-95{width:95%}.gr-w-96{width:96%}.gr-w-97{width:97%}.gr-w-98{width:98%}.gr-w-99{width:99%}.gr-w-100{width:100%}

/* ---------- domande frequenti ---------- */

.gk-faqs { margin-top: 2.4rem; }
.ed-faq {
  border-top: 1px solid var(--rule);
  padding: 0.2rem 0;
}
.ed-faq:last-of-type { border-bottom: 1px solid var(--rule); }
.ed-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 2rem 0.7rem 0;
  position: relative;
  font-weight: 600;
  font-size: 1rem;
}
.ed-faq summary::-webkit-details-marker { display: none; }
.ed-faq summary::after {
  content: "+";
  position: absolute;
  right: 0.3rem;
  top: 0.55rem;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--mel);
}
.ed-faq[open] summary::after { content: "\2212"; }
.ed-faq-a p { margin: 0 0 0.8rem; }

/* ---------- fonti, correlati, piede ---------- */

.gk-sources {
  margin: 2.2rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  font-size: var(--t-xs);
  color: var(--soft);
}
.gk-sources a { color: var(--soft); }

.gk-related {
  max-width: var(--col);
  margin-top: 2.6rem;
  padding: 1rem 1.1rem 0.4rem;
  background: var(--band);
}
.gk-related h2 {
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}
.gk-related ul {
  margin: 0 0 0.6rem;
  padding-left: 1.1rem;
}
.gk-related li { margin-bottom: 0.4rem; }

.gk-foot {
  background: var(--sheet);
  border-top: 3px solid var(--mel);
  font-size: var(--t-s);
}
.gk-foot__in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.6rem var(--gutter) 1.4rem;
}
.gk-foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.6rem 1.6rem;
}
.gk-foot h2 {
  font-family: var(--text);
  font-weight: 600;
  font-size: var(--t-s);
  margin: 0 0 0.4rem;
}
.gk-foot ul {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
}
.gk-foot li { margin-bottom: 0.25rem; }
.gk-foot a { color: var(--ink); }
.gk-legal {
  margin: 1.2rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  font-size: var(--t-s);
  color: var(--ink);
}
.gk-legal p { margin: 0 0 0.45rem; }
.gk-legal strong { color: var(--stamp); }

/* ---------- la home ---------- */

.gk-home .ed-article { max-width: var(--wide); }
.gk-home .ed-article > p,
.gk-home .ed-article > h2,
.gk-home .ed-article > ul { max-width: var(--col); }
.gk-paths {
  list-style: none;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.gk-paths li {
  margin: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.gk-paths a {
  font-family: var(--display);
  font-size: 1.3rem;
  text-decoration: none;
}
.gk-paths a:hover { text-decoration: underline; }
.gk-paths p {
  margin: 0.2rem 0 0;
  color: var(--soft);
  font-size: var(--t-s);
}

/* ---------- la 404 ---------- */

.gk-404 h1 { font-size: var(--t-xl); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .gk-top, .gk-foot, .gk-related, .gk-calc { display: none; }
  body { background: #fff; color: #000; }
}
