/* ------------------------------------------------------------------
   Home page (HTML) — europatipsetresultat.se
   Loaded after site.css, scoped to body.home.
   Breakpoints: ≥1101 two columns · 761–1100 stacked · ≤760 mobile
   ------------------------------------------------------------------ */

body.home .main-stack{padding-block:28px 12px}
body.home .result-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(320px,1fr);gap:20px;align-items:start}
body.home .card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:22px 24px;box-shadow:var(--shadow);min-width:0}

/* Section headings with icon */
body.home .card h2,body.home .lower-grid h2{display:flex;align-items:center;gap:10px;margin:0;font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
body.home h2 .icon{flex:none;width:22px;height:22px;color:var(--teal)}
body.home .icon{flex:none}

/* Card head: title + round tools */
body.home .card-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 16px;margin-bottom:16px}
body.home .round-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px;margin:0}
body.home .date-select{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 12px;border:1px solid #c9d8e4;border-radius:8px;background:#fff;font-size:14px;font-weight:600;color:var(--navy);white-space:nowrap;transition:border-color .2s,background .2s}
body.home .date-select:hover{border-color:var(--teal);background:#f3faf9;color:var(--navy)}
body.home .date-select .icon{width:16px;height:16px;color:var(--teal)}
body.home .pill{display:inline-flex;align-items:center;min-height:40px;padding:0 12px;border-radius:8px;background:#e8f0f7;color:#33536f;font-size:13px;font-weight:700;white-space:nowrap}
body.home .pill--green{background:#def4ef;color:#0a6b62}

/* Round band: title + correct row */
body.home .round-band{background:#eef4f9;border-radius:10px;padding:14px 16px;margin-bottom:16px}
body.home .round-band__head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin-bottom:12px}
body.home .round-band__head strong{font-size:16px}
body.home .round-band__head span{font-size:13px;font-weight:600;color:var(--slate)}
body.home .correct-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:end}
body.home .correct-row__label{font-size:14px;font-weight:700;white-space:nowrap;padding-bottom:9px}
body.home .sign-row{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:6px;margin:0}
body.home .sign-row>span{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
body.home .sign-row small{display:block;font-size:11px;line-height:1;min-height:0;color:var(--slate)}
body.home .sign-row strong{width:100%;min-height:34px;display:grid;place-items:center;background:#fff;border:1px solid #cddbe6;border-radius:6px;font-size:16px;font-weight:800;color:var(--navy)}

/* Results table */
body.home .results-table{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;font-weight:400;line-height:1.3}
body.home .results-table thead th{background:#e6eff6;color:#33536f;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:9px 10px;text-align:left;border-bottom:0}
body.home .results-table thead th:first-child{border-radius:8px 0 0 8px}
body.home .results-table thead th:last-child{border-radius:0 8px 8px 0}
body.home .results-table td,body.home .results-table tbody th{padding:7px 10px;border-bottom:1px solid #e3ecf3;vertical-align:middle;line-height:1.3}
body.home .results-table tbody tr:last-child td,body.home .results-table tbody tr:last-child th{border-bottom:0}
body.home .results-table tbody th{width:34px;font-weight:600;color:var(--slate);text-align:left}
body.home .results-table .match-name{font-weight:500}
body.home .results-table .dash{color:#8aa3b8}
body.home .results-table thead th:nth-child(3),body.home .results-table .score{width:84px;text-align:center!important;font-weight:600}
body.home .results-table thead th:last-child,body.home .results-table td:last-child{width:72px;text-align:center}
body.home .results-table .outcome{display:inline-grid;place-items:center;min-width:30px;height:26px;padding:0 6px;border-radius:6px;background:#e0f4f0;color:#07665d;font-weight:800}
body.home .results-table tbody tr:hover td,body.home .results-table tbody tr:hover th{background:#f7fafd}
body.home .source-line{display:block;margin:12px 0 0;font-size:13px;color:var(--slate)}
body.home .source-line a{color:var(--teal);font-weight:600;text-decoration:none}
body.home .source-line a:hover{text-decoration:underline}

/* Payout card */
body.home .payout-card h2{margin-bottom:16px}
body.home .payout-table{width:100%;border-collapse:separate;border-spacing:0;font-size:15px;margin:0}
body.home .payout-table thead th{background:#e6eff6;color:#33536f;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:9px 8px;text-align:left;border-bottom:0;white-space:nowrap}
body.home .payout-table thead th:first-child{border-radius:8px 0 0 8px}
body.home .payout-table thead th:last-child{border-radius:0 8px 8px 0}
body.home .payout-table tbody th,body.home .payout-table td{padding:10px;border-bottom:1px solid #e3ecf3;text-align:left}
body.home .payout-table tbody tr:last-child th,body.home .payout-table tbody tr:last-child td{border-bottom:0}
body.home .payout-table tbody th{font-weight:700;white-space:nowrap}
body.home .payout-table th:nth-child(2),body.home .payout-table td:nth-child(2){text-align:right}
body.home .payout-table td:nth-child(2) strong{font-size:16px;font-weight:800;color:var(--navy)}
body.home .payout-table .payout-count{display:table-cell;text-align:right;color:var(--slate)}
body.home .payout-actions{display:grid;gap:10px;margin-top:18px}
body.home .payout-actions .button{margin:0;min-height:46px;border-radius:8px;font-size:16px;gap:10px}
body.home .button .icon{width:18px;height:18px}

/* Quick links */
body.home .quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
body.home .quick-links a{display:grid;justify-items:center;text-align:center;gap:6px;padding:4px 8px;border-right:1px solid var(--line);font-size:13px;font-weight:700;line-height:1.25;color:var(--navy)}
body.home .quick-links a:last-child{border-right:0}
body.home .quick-links a>.icon{width:26px;height:26px;color:var(--navy);transition:color .2s}
body.home .quick-links a:hover>.icon,body.home .quick-links a:hover strong{color:var(--teal)}
body.home .quick-links strong{display:inline-flex;align-items:center;gap:2px}
body.home .quick-links strong .icon{width:14px;height:14px;color:var(--teal)}
body.home .quick-links span{display:block;margin:0;font-size:12px;font-weight:400;color:var(--slate)}

/* Banner spacing */
body.home .stadium-banner{margin:16px 0 0}

/* Guides + FAQ */
body.home .lower-grid{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(300px,.9fr);gap:20px;padding-block:28px 40px;align-items:start}
body.home .lower-grid h2{margin-bottom:14px}
body.home .guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.home .guide-card{display:grid;grid-template-columns:96px minmax(0,1fr) 22px;align-items:start;gap:14px;padding:12px;min-height:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);color:var(--navy);transition:border-color .2s,box-shadow .2s}
body.home .guide-card:hover{border-color:#9fd3cc;box-shadow:0 8px 24px rgba(16,36,58,.1);color:var(--navy)}
body.home .guide-card:last-child{display:grid}
body.home .guide-card img{display:block;width:96px;height:84px;min-height:0;object-fit:cover;border-radius:8px;align-self:start}
body.home .guide-card>span{display:block;position:static;padding:0;min-width:0;align-self:start}
body.home .guide-card strong{display:block;font-size:15px;line-height:1.25;font-weight:700;margin-top:2px}
body.home .guide-card small{display:block;margin-top:4px;font-size:13px;line-height:1.35;color:var(--slate)}
body.home .guide-card>.icon{width:22px;height:22px;color:var(--teal)}
body.home .faq-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);overflow:hidden}
body.home .faq-card h2{background:#e6eff6;padding:14px 18px;margin:0;font-size:19px}
body.home .faq{padding:4px 18px}
body.home .faq details{border-bottom:1px solid var(--line)}
body.home .faq details:last-child{border-bottom:0}
body.home .faq summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 0;font-size:15px;font-weight:600;position:static}
body.home .faq summary::-webkit-details-marker{display:none}
body.home .faq summary::after{content:'';position:static;flex:none;width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23087f72' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .2s}
body.home .faq details[open] summary::after{transform:rotate(180deg)}
body.home .faq p{margin:0;padding:0 0 14px;font-size:14px;line-height:1.5;color:var(--slate)}

/* Payout header labels: shorter wording once the column gets narrow */
@media(max-width:1400px){
  body.home .payout-table .th-long{display:none}
  body.home .payout-table .th-short{display:inline}
}

/* Stacked layout (tablet / small laptop) */
@media(max-width:1100px){
  body.home .result-layout,body.home .lower-grid{grid-template-columns:1fr}
}
@media(min-width:901px) and (max-width:1100px){
  body.home .payout-card{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr);column-gap:28px;align-items:center}
  body.home .payout-card h2,body.home .payout-card .quick-links{grid-column:1/-1}
  body.home .payout-actions{margin-top:0}
}
@media(max-width:900px){
  body.home .guide-grid{grid-template-columns:1fr;gap:10px}
}

/* Mobile */
@media(max-width:760px){
  body.home .main-stack{padding-block:16px 8px}
  body.home .card{padding:16px;border-radius:10px}
  body.home .card h2,body.home .lower-grid h2{font-size:21px}
  body.home .card-head{margin-bottom:12px}
  body.home .round-tools{width:100%;display:flex;flex-wrap:wrap;gap:8px}
  body.home .round-tools .date-select{flex:1 1 100%;width:100%;justify-content:space-between;min-height:44px;font-size:14px;letter-spacing:0;padding:0 12px;white-space:nowrap}
  body.home .date-select span{flex:1}
  body.home .round-tools .pill{flex:1 1 0;width:auto;justify-content:center;min-height:40px;font-size:13px;font-family:inherit;letter-spacing:0;padding:0 10px;overflow:visible}
  body.home .round-band{padding:12px}
  body.home .round-band__head{margin-bottom:10px}
  body.home .round-band__head strong{font-size:15px}
  body.home .correct-row{grid-template-columns:1fr;gap:8px}
  body.home .correct-row__label{padding:0;font-size:13px}
  body.home .sign-row{display:grid;gap:3px}
  body.home .sign-row small{display:none}
  body.home .sign-row strong{min-height:30px;font-size:14px;border-radius:5px}
  body.home .results-desktop{display:none}
  body.home .results-mobile{display:block}
  body.home .mobile-result{display:grid;grid-template-columns:26px minmax(0,1fr) 56px 36px;gap:8px;align-items:center;min-height:52px;padding:8px 10px;border:1px solid #dde8f1;border-bottom:0;font-size:14px;line-height:1.2;background:#fff}
  body.home .mobile-result:nth-child(even){background:#f8fbfd}
  body.home .mobile-result:first-child{border-radius:8px 8px 0 0}
  body.home .mobile-result:last-child{border-bottom:1px solid #dde8f1;border-radius:0 0 8px 8px}
  body.home .mobile-result__number{color:var(--slate);font-weight:600;text-align:center;font-size:14px}
  body.home .mobile-result__teams{display:grid;font-size:14px;line-height:1.2;font-weight:500;overflow-wrap:anywhere}
  body.home .mobile-result__score{text-align:center;white-space:nowrap;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
  body.home .mobile-result .outcome{display:grid;place-items:center;width:34px;height:28px;min-height:0;padding:0;border-radius:6px;background:#e0f4f0;color:#07665d;font-size:14px;font-weight:800}
  body.home .source-line{font-size:12px}
  body.home .payout-card{display:block}
  body.home .payout-table{font-size:14px}
  body.home .payout-table thead th{padding:8px;letter-spacing:.02em;font-size:11px}
  body.home .payout-table tbody th,body.home .payout-table td{padding:9px 8px}
  body.home .payout-table td:nth-child(2) strong{font-size:15px}
  body.home .payout-actions{margin-top:16px}
  body.home .quick-links{display:grid;grid-template-columns:1fr;gap:0;margin-top:16px;padding-top:6px}
  body.home .quick-links a{grid-template-columns:28px minmax(0,1fr);justify-items:start;text-align:left;column-gap:12px;row-gap:2px;padding:10px 0;border-right:0;border-bottom:1px solid var(--line)}
  body.home .quick-links a:last-child{border-bottom:0}
  body.home .quick-links a>.icon{grid-row:1/3;width:24px;height:24px}
  body.home .stadium-banner{margin:8px 0 0}
  body.home .lower-grid{padding-block:20px 28px;gap:16px}
  body.home .guide-card{grid-template-columns:72px minmax(0,1fr) 20px;gap:12px;padding:10px}
  body.home .guide-card img{width:72px;height:64px}
  body.home .guide-card strong{font-size:14px}
  body.home .guide-card small{font-size:12px}
  body.home .faq-card h2{padding:12px 14px;font-size:18px}
  body.home .faq{padding:2px 14px}
  body.home .faq summary{font-size:14px}
}

/* Keep the original results-first composition, with live data available below. */
body.home .home-live{padding-bottom:28px}
body.home .home-live__details{border:1px solid var(--line);border-radius:12px;background:var(--paper)}
body.home .home-live__details>summary{padding:16px 20px;cursor:pointer;font-weight:700;color:var(--navy)}
body.home .home-live__details>summary>span{font-weight:400;color:var(--slate);margin-left:12px;font-size:14px}
body.home .home-live__details>.live-round{margin:0;border:0;border-top:1px solid var(--line);box-shadow:none}
@media(max-width:760px){body.home .home-live__details>summary>span{display:block;margin:4px 0 0 18px}}
