/* AGIMEG «Estrazioni» hub: the tag's first page. Same palette and type as the odds hub; the numbers as flat navy discs. */
.cqhe{--he-navy:#152D49;--he-red:#C1282A;--he-ground:#F4F5F6;--he-line:#E2E7ED;--he-muted:#6B7884;--he-band:#EDF1F5;--he-gold:#D9A21B;
  --he-font:'CQ Barlow Condensed','Arial Narrow',sans-serif;--he-text:'Source Sans Pro',-apple-system,'Segoe UI',sans-serif;color:#222222;font:400 16px/1.65 var(--he-text);padding:0 0 40px}
.cqhe-wrap .cqhe p,.cqhe-wrap .cqhe li,.cqhe-wrap .cqhe dd,.cqhe-wrap .cqhe td{font-family:var(--he-text)}
.cqhe *,.cqhe *::before,.cqhe *::after{box-sizing:border-box}
.cqhe a{text-decoration:none}
.cqhe p{margin:0 0 14px}
.cqhe-wrap .td-main-content{padding-top:0}
.cqhe .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

.cqhe-crumbs{display:flex;gap:6px;margin:22px 0 6px;color:#A3ADB7;font-size:13px;line-height:1.4}
.cqhe-crumbs a{color:#A3ADB7}
.cqhe-crumbs a:hover{color:var(--he-red)}
.cqhe-head h1{margin:6px 0 10px;padding:0;color:var(--he-navy);font:700 44px/1.04 var(--he-font);letter-spacing:-.003em;text-wrap:balance}
.cqhe-wrap .cqhe .cqhe-lead{max-width:880px;margin:0 0 20px;font-size:18px;line-height:1.55}

/* The board: one card per game, two columns on desktop; Lotto spans both. */
.cqhe-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cqhe-card{display:flex;flex-direction:column;background:#FFFFFF;border:1px solid var(--he-line);border-radius:3px;overflow:hidden}
.cqhe-card--lotto{grid-column:1 / -1}
.cqhe-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px 9px;background:var(--he-navy);color:#FFFFFF}
.cqhe-wrap .cqhe .cqhe-card-head h2{margin:0;padding:0;color:#FFFFFF;font:700 24px/1.1 var(--he-font);letter-spacing:.01em}
.cqhe-wrap .cqhe .cqhe-card-when{margin:0;color:#C9D4E0;font:600 14px/1.2 var(--he-font);letter-spacing:.03em;text-transform:uppercase;white-space:nowrap}
.cqhe-card-body{flex:1;padding:14px 16px 10px}
.cqhe-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px 10px;border-top:1px solid var(--he-line);background:var(--he-ground)}
.cqhe-next{color:var(--he-muted);font:600 14px/1.3 var(--he-font);letter-spacing:.02em}
.cqhe-next b{color:var(--he-navy);font-weight:700;text-transform:uppercase;margin-right:4px}
.cqhe-go{color:var(--he-red);font:700 15px/1.2 var(--he-font);letter-spacing:.02em;white-space:nowrap}
.cqhe-go:hover{color:var(--he-navy)}

/* Numbers. */
.cqhe-balls{display:flex;flex-wrap:wrap;gap:6px}
.cqhe-ball{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--he-navy);color:#FFFFFF;font:700 19px/1 var(--he-font);font-variant-numeric:tabular-nums}
.cqhe-ball--oro{background:var(--he-gold);color:#1F1A0A}
.cqhe-ball--red{background:var(--he-red)}
.cqhe-ball--star{background:#FFFFFF;color:var(--he-red);box-shadow:inset 0 0 0 2px var(--he-red)}
.cqhe-ball--light{background:var(--he-band);color:var(--he-navy);width:30px;height:30px;font-size:15px}
.cqhe-extras{display:flex;flex-wrap:wrap;gap:10px 22px;margin:12px 0 0;padding:10px 0 0;border-top:1px dashed var(--he-line)}
.cqhe-extras div{display:flex;align-items:center;gap:8px;margin:0}
.cqhe-extras-wide{flex:1 0 100%}
.cqhe-extras-wide dt{flex:0 0 48px}
.cqhe-extras dt{color:var(--he-muted);font:700 12px/1 var(--he-font);letter-spacing:.08em;text-transform:uppercase}
.cqhe-extras dd{margin:0}
.cqhe-extras .cqhe-text{color:var(--he-navy);font:700 17px/1 var(--he-font)}
.cqhe-jackpot dd{color:var(--he-red);font:700 20px/1 var(--he-font);font-variant-numeric:tabular-nums}

/* Lotto: the eleven wheels as a tight table. */
.cqhe-ruote{width:100%;border-collapse:collapse;margin:0}
.cqhe-ruote th,.cqhe-ruote td{padding:5px 6px;border-bottom:1px solid var(--he-line);text-align:center;font:700 19px/1.1 var(--he-font);font-variant-numeric:tabular-nums;color:var(--he-navy)}
.cqhe-ruote th{text-align:left;color:var(--he-muted);font-size:15px;letter-spacing:.04em;text-transform:uppercase;width:120px}
.cqhe-ruote tr:last-child th,.cqhe-ruote tr:last-child td{border-bottom:0}
.cqhe-ruote tr:nth-child(odd) td{background:#FAFBFC}
@media (min-width:768px){
  .cqhe-ruote{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:repeat(6,auto);grid-auto-flow:column;column-gap:28px}
  .cqhe-ruote tbody{display:contents}
  .cqhe-ruote tr{display:grid;grid-template-columns:110px repeat(5,1fr)}
  .cqhe-ruote th,.cqhe-ruote td{display:flex;align-items:center;justify-content:center}
  .cqhe-ruote th{justify-content:flex-start}
}

/* Simbolotto: tile per symbol. */
.cqhe-simboli{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.cqhe-simboli li{display:flex;align-items:center;gap:8px;padding:5px 12px 5px 5px;border:1px solid var(--he-line);border-radius:999px;background:#FFFFFF;color:var(--he-navy);font:700 15px/1 var(--he-font);letter-spacing:.02em}

/* MillionDay: two rows, each with its Extra. */
.cqhe-md{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:8px 0}
.cqhe-md + .cqhe-md{border-top:1px dashed var(--he-line)}
.cqhe-md-time{flex:0 0 68px;color:var(--he-navy);font:700 17px/1 var(--he-font)}
.cqhe-md-extra{display:flex;align-items:center;gap:8px}
.cqhe-md-label{color:var(--he-muted);font:700 12px/1 var(--he-font);letter-spacing:.08em;text-transform:uppercase}

/* Sections. */
.cqhe-section{margin-top:40px}
.cqhe-wrap .cqhe .cqhe-section>h2{margin:0 0 10px;padding:9px 30px 8px 14px;display:inline-block;background:var(--he-band);color:var(--he-navy);font:700 28px/1.1 var(--he-font);clip-path:polygon(0 0,100% 0,calc(100% - 14px) 100%,0 100%)}
.cqhe-table{width:100%;border-collapse:collapse;margin:6px 0 0;font-size:15px}
.cqhe-table th,.cqhe-table td{padding:9px 10px;border-bottom:1px solid var(--he-line);text-align:left;vertical-align:middle}
.cqhe-table thead th{background:var(--he-navy);color:#FFFFFF;font:700 13px/1.1 var(--he-font);letter-spacing:.06em;text-transform:uppercase;border-bottom:0}
.cqhe-table tbody th{color:var(--he-navy);font:700 16px/1.2 var(--he-font)}
.cqhe-table tbody th a{color:var(--he-navy)}
.cqhe-table tbody th a:hover{color:var(--he-red)}
.cqhe-table td a{color:var(--he-red);font:700 14px/1 var(--he-font)}
.cqhe-nums{font:700 16px/1.3 var(--he-font);font-variant-numeric:tabular-nums;color:var(--he-navy)}
.cqhe-calendar time{font:700 16px/1.2 var(--he-font);color:var(--he-navy)}
.cqhe-archive{margin-top:12px;border:1px solid var(--he-line);border-radius:3px;background:#FFFFFF}
.cqhe-archive summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:10px 14px;cursor:pointer;color:var(--he-navy);font:700 20px/1.1 var(--he-font);list-style:none}
.cqhe-archive summary::-webkit-details-marker{display:none}
.cqhe-archive summary::after{content:"+";color:var(--he-red);font-size:24px;line-height:1}
.cqhe-archive[open] summary::after{content:"–"}
.cqhe-archive summary small{margin-left:auto;color:var(--he-muted);font-size:14px;font-weight:600}
.cqhe-archive .cqhe-table{margin:0;border-top:1px solid var(--he-line)}
.cqhe-archive .cqhe-table thead th{background:var(--he-band);color:var(--he-navy)}

/* Articles and guides as «rivista» tiles: the cover carries the grid, the title sits under it with the red wedge. */
.cqhe-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px;margin-top:10px}
.cqhe-tile{display:block;color:#222222}
.cqhe-tile-cover{display:block;aspect-ratio:16/9;overflow:hidden;background:var(--he-band)}
.cqhe-tile-cover img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.cqhe-tile:hover .cqhe-tile-cover img{transform:scale(1.04)}
.cqhe-tile-text{display:block;position:relative;padding:11px 0 0 16px}
.cqhe-tile-text::before{content:"";position:absolute;left:0;top:15px;width:8px;height:22px;background:var(--he-red);clip-path:polygon(0 0,100% 0,60% 100%,0 100%)}
.cqhe-kicker{display:block;color:var(--he-red);font:700 12px/1 var(--he-font);letter-spacing:.08em;text-transform:uppercase}
.cqhe-tile-title{display:block;margin-top:4px;color:var(--he-navy);font:700 20px/1.22 var(--he-font)}
.cqhe-tile:hover .cqhe-tile-title{color:var(--he-red)}
.cqhe-tile-meta{display:block;margin-top:3px;color:var(--he-muted);font-size:13px}
.cqhe-archive-link{display:flex;justify-content:space-between;margin-top:12px;padding:12px 16px;background:var(--he-navy);color:#FFFFFF;font:700 17px/1.2 var(--he-font);letter-spacing:.02em}
.cqhe-archive-link:hover{background:var(--he-red);color:#FFFFFF}
.cqhe-faq h3{margin:22px 0 4px;padding:0;color:var(--he-navy);font:700 21px/1.2 var(--he-font)}
.cqhe-legal{margin-top:24px!important;color:var(--he-muted);font-size:12px!important;line-height:1.4}
.cqhe-unavailable{padding:14px 16px;border:1px solid var(--he-line);background:var(--he-ground)}

@media (max-width:767px){
  .cqhe-head h1{font-size:32px}
  .cqhe-wrap .cqhe .cqhe-lead{font-size:16px}
  .cqhe-board{grid-template-columns:1fr}
  .cqhe-tiles{grid-template-columns:1fr 1fr;gap:18px 12px}
  .cqhe-tile-title{font-size:17px}
  .cqhe-tile-text{padding-left:13px}
  .cqhe-tile-text::before{top:14px;width:7px;height:19px}
  .cqhe-card-head{flex-direction:column;align-items:flex-start;gap:2px}
  .cqhe-card-when{white-space:normal}
  .cqhe-ball{width:34px;height:34px;font-size:17px}
  .cqhe-ruote th,.cqhe-ruote td{padding:6px 2px;font-size:17px}
  .cqhe-ruote th{width:auto;font-size:13px}
  .cqhe-card-foot{flex-direction:column;align-items:flex-start;gap:6px}
  .cqhe-extras .cqhe-extras-wide{flex-direction:column;align-items:flex-start;gap:6px}
  .cqhe-extras .cqhe-extras-wide dt{flex:0 0 auto}
  .cqhe-simboli{justify-content:flex-start}
  .cqhe-section>h2{font-size:24px}
  .cqhe-table th,.cqhe-table td{padding:8px 6px;font-size:14px}
  .cqhe-calendar thead th:nth-child(2),.cqhe-calendar td:nth-child(2){display:none}
}
