/* PROBIAS home: tablet / PC sizes for the approved card UI (same design language as the smartphone cards).
   Smartphone (<=740px) rules in home-mobile-ui.css are untouched. Selectors are one step more specific than home-mobile-ui.css, which is injected later at runtime, so load order does not matter.
   PC (>=1024px): "全国24場" (left, always 4 columns x 6 rows) and "締切順" (right, one column) side by side; home-ready.js keeps both lists visible there. */
@media (min-width:741px){
 html:root{--vc-h:112px}
 body #homeView .venue-grid{grid-template-columns:repeat(4,minmax(0,1fr));column-gap:8px;row-gap:8px;grid-auto-rows:var(--vc-h)}
 body #homeView .venue-item{height:var(--vc-h);grid-template-rows:38px minmax(0,1fr) 26px;padding:0;border-radius:9px}
 body #homeView .v41-area-a{padding-top:6px;padding-bottom:2px}
 body #homeView .venue-card-head strong,body #homeView .venue-card-head[data-name-length="3"] strong{font-size:27px;line-height:30px;letter-spacing:-.02em}
 body #homeView .v431-info-group,body #homeView .v431-info-group:has(.v3-badge:nth-child(2)){grid-template-rows:16px minmax(0,1fr);row-gap:0;align-content:stretch}
 body #homeView .venue-info .venue-grade{font-size:11px;line-height:13px;padding:0 4px;border-width:1px;border-radius:4px}
 body #homeView .venue-day-label{font-size:11px;line-height:14px}
 body #homeView .v3-grade-day{gap:5px}
 body #homeView .venue-info-badges.v41-area-c,body #homeView .venue-info-badges.v41-area-c:has(.v3-badge:nth-child(2)){flex-direction:row;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:2px 4px;padding:0 4px}   /* two long badges may wrap to two lines on 135px cards: centred so they keep a gap above the status line */
 body #homeView .venue-info-badges.v41-area-c .v3-badge,body #homeView .venue-info-badges.v41-area-c:has(.v3-badge:nth-child(2)) .v3-badge{font-size:10.5px;line-height:11px;padding:0 4px;gap:3px;border-width:1px;border-radius:4px}
 body #homeView .venue-info-badges.v41-area-c .v3-badge svg,body #homeView .venue-info-badges.v41-area-c:has(.v3-badge:nth-child(2)) .v3-badge svg{width:10px;height:10px}
 body #homeView .venue-clock.v41-area-d{gap:6px;padding:0;border-top:1px solid #3c5267}
 body #homeView .venue-clock time{font-size:17px;line-height:20px;font-weight:800}
 body #homeView .venue-clock-key b{font-size:10px;line-height:11px}
 body #homeView .venue-clock-key small{font-size:8px;line-height:9px}
 body #homeView .v3-status{font-size:11px;line-height:16px}
}
@media (min-width:1024px){
 body #homeView .venue-directory{display:grid;grid-template-columns:minmax(0,62fr) minmax(320px,38fr);column-gap:16px;align-items:stretch}
 body #homeView .venue-directory>*{grid-column:1/-1;order:5}
 body #homeView .venue-directory>.home-tabs{display:none}
 body #homeView .venue-directory>#readyStrip{order:1}
 body #homeView .venue-directory>#homeConnection{order:2}
 body #homeView .venue-directory>.pbl-banner{order:3}
 body #homeView .venue-directory>.split-head{display:block;order:4;margin:2px 0 6px;font-size:14px;font-weight:850;letter-spacing:.04em;color:#cfe6f7}
 body #homeView .venue-directory>.split-head[data-split="venues"],body #homeView .venue-directory>#venueGrid{grid-column:1}
 body #homeView .venue-directory>.split-head[data-split="deadlines"],body #homeView .venue-directory>#deadlineGrid{grid-column:2}
 body #homeView .venue-directory>#venueGrid,body #homeView .venue-directory>#deadlineGrid{order:4}
 body #homeView .venue-directory>.ad-space,body #homeView .venue-directory>.home-legends{order:6}
 body #homeView .venue-directory>#deadlineGrid{height:0;min-height:100%;overflow-y:auto;overscroll-behavior:contain;align-content:start;grid-template-columns:minmax(0,1fr);gap:6px}
}
/* Three or more labels on tablet / PC (the data allows up to six): when the badges need a third line the card grows instead of running into the
   status band. Cards have a min-height (112px) and stretch to their grid row, and the name (38px) and status (26px) rows are fixed, so every card in
   that row gets the same height and the same status line, and the extra space goes to the grade/badge area (badges stay centred there).
   The 1px gap above and below the badges is the same as the approved two-line case, so cards that fit in two lines do not grow.
   Rows whose cards fit in 112px keep exactly the v6.2 sizes. */
@media (min-width:741px){
 html body #homeView #venueGrid{grid-auto-rows:minmax(var(--vc-h),auto)}
 html body #homeView #venueGrid .venue-item{height:auto;min-height:var(--vc-h)}
 html body #homeView #venueGrid .venue-item:has(.v3-badge:nth-child(3)) .venue-info-badges.v41-area-c{padding:1px 4px}
}
