/* 實驗場固定 data-score-design="c"，保留前輪 A/B 規則供原始設計存查。 */
body#top .bottle-article .rating-dimensions{grid-template-columns:repeat(4,minmax(0,1fr))}
body#top .rating>.rating-total small{font-size:var(--type-ui)}
body#top .bottle-overview{grid-template-columns:minmax(0,1fr) max-content 224px minmax(0,1fr);column-gap:0}
body#top .bottle-overview .bottle-title{grid-column:2;grid-row:1}
body#top .bottle-overview .bottle-hero-photo{grid-column:3;grid-row:1/span 2;width:160px;justify-self:end}
body#top .bottle-overview>.bottle-basics{grid-column:2;grid-row:2;align-self:start}
body#top .bottle-overview>.bottle-basics[open]{grid-column:1/-1;grid-row:3;margin-top:var(--space-5)}
body#top .bottle-overview>.score-design-target{grid-column:1/-1;grid-row:3;min-width:0;margin-top:var(--space-6)}
body#top .bottle-overview:has(>.bottle-basics[open])>.score-design-target{grid-row:4}
body#top .score-design-target .rating{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(0,2fr);align-items:center;gap:var(--space-7);padding:var(--space-5) 0;border:0;border-block:1px solid var(--line);border-radius:0;background:transparent}
body#top .score-design-target .rating>.rating-total{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2);min-width:0;padding:0;border:0}
body#top .score-design-target .rating-total>.score-total-label{font-size:var(--type-ui);font-weight:400;line-height:1.5;white-space:nowrap}
body#top .score-design-target .rating-total>.score-total-value{display:inline-flex;align-items:baseline;gap:var(--space-2);color:var(--ink);line-height:1.1}
body#top .score-design-target .rating-total strong{color:var(--ink);font-size:var(--type-main-score);font-weight:500;line-height:1.1}
body#top .score-design-target .score-denominator{color:var(--muted);font-size:var(--type-caption);font-weight:400;line-height:1.5;white-space:nowrap}
body#top .score-design-target .rating-dimensions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-5);min-width:0;width:100%}
body#top .score-design-target .rating-dimensions>div{min-width:0;padding:0;border:0}
body#top .score-design-target .rating-dimensions dt{font-size:var(--type-ui);font-weight:400;line-height:1.5;white-space:nowrap}
body#top .score-design-target .rating-dimensions dd{margin:var(--space-2) 0 0;font-size:var(--type-item);font-weight:500;line-height:1.4}
/* B：標題、核心資料、照片三欄，完整資料仍是原本的一份。 */
:root[data-score-design="b"] body#top .bottle-overview{grid-template-columns:minmax(200px,1fr) minmax(180px,1fr) 160px;column-gap:var(--space-6)}
:root[data-score-design="b"] body#top .bottle-overview .bottle-title{grid-column:1;grid-row:1/span 2}
:root[data-score-design="b"] body#top .bottle-overview .bottle-hero-photo{grid-column:3}
:root[data-score-design="b"] body#top .bottle-overview>.bottle-highlights{display:grid;grid-column:2;grid-row:1;gap:var(--space-3);align-self:start}
:root[data-score-design="b"] body#top .bottle-overview>.bottle-basics:not([open]){grid-column:2;grid-row:2;margin-top:var(--space-2)}
:root[data-score-design="b"] body#top .score-design-target .rating{grid-template-columns:minmax(220px,.85fr) minmax(0,2fr);gap:var(--space-6)}
:root[data-score-design="b"] body#top .score-design-target .rating>.rating-total{flex-direction:row;align-items:center;gap:var(--space-4);padding-right:var(--space-6);border-right:1px solid var(--line)}
/* C：左側酒名與評分，右側照片，細窄資料列接在評分下方。 */
:root[data-score-design="c"] body#top .bottle-overview{--overview-photo-width:216px;grid-template-columns:minmax(0,1fr) var(--overview-photo-width);column-gap:var(--space-7);row-gap:var(--space-5)}
:root[data-score-design="c"] body#top .bottle-overview .bottle-title{grid-column:1;grid-row:1}
:root[data-score-design="c"] body#top .bottle-overview .bottle-hero-photo{grid-column:2;grid-row:1/span 2;width:var(--overview-photo-width)}
/* 瓶照跨酒名與評分靠底，和資料列之間只保留一個窄間距。 */
:root[data-score-design="c"] body#top .bottle-article:not(.restaurant-article) .bottle-overview{--overview-photo-width:260px;row-gap:var(--space-4)}
/* 內頁延續封面的酒標近景，以容器裁切原圖，桌機及手機寬度維持既定值。 */
:root[data-score-design="c"] body#top .bottle-article:not(.restaurant-article) .bottle-overview .bottle-hero-photo{position:relative;width:var(--overview-photo-width);max-width:100%;aspect-ratio:4/5;overflow:hidden;border-radius:var(--radius-media);align-self:end}
:root[data-score-design="c"] body#top .bottle-article:not(.restaurant-article) .bottle-overview .bottle-hero-photo img{position:absolute;left:50%;top:50%;width:270%;max-width:none;height:auto;border-radius:0;transform:translate(-48%,-74%)}
:root[data-score-design="c"] body#top .bottle-article:not(.restaurant-article) .bottle-overview .bottle-hero-photo img[src$="/raifuku/raifuku-front.jpg"]{transform:translate(-49%,-74%)}
:root[data-score-design="c"] body#top .bottle-article:not(.restaurant-article) .bottle-overview>.score-design-target{align-self:end}
:root[data-score-design="c"] body#top .bottle-overview>.score-design-target,
:root[data-score-design="c"] body#top .bottle-overview:has(>.bottle-basics[open])>.score-design-target{grid-column:1;grid-row:2;margin:0}
:root[data-score-design="c"] body#top .bottle-overview>.bottle-basics,
:root[data-score-design="c"] body#top .bottle-overview>.bottle-basics[open]{grid-column:1/-1;grid-row:3;align-self:start;margin:0;border-block:1px solid var(--line)}
:root[data-score-design="c"] body#top .bottle-overview>.bottle-basics>summary{min-height:36px}
:root[data-score-design="c"] body#top .bottle-overview .bottle-basics .info-symbol{width:18px;height:18px;font-size:var(--type-caption)}
:root[data-score-design="c"] body#top .bottle-overview .bottle-basics .details-chevron{margin-left:auto}
:root[data-score-design="c"] body#top .bottle-overview .bottle-spec-layout{margin:0;padding:var(--space-2) 0 var(--space-3);border-top:0}
:root[data-score-design="c"] body#top .score-design-target .rating{display:block;padding:0;border:0}
:root[data-score-design="c"] body#top .score-design-target .rating>.rating-total{flex-direction:row-reverse;justify-content:flex-end;align-items:baseline;gap:var(--space-3);margin-bottom:var(--space-5)}
:root[data-score-design="c"] body#top .score-design-target .rating-dimensions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:100%}
:root[data-score-design="c"] body#top .score-design-target .rating-dimensions>div{width:auto;padding:0;text-align:left}
:root[data-score-design="c"] body#top .score-design-target .rating-dimensions>div+div{padding-left:var(--space-4);border-left:1px solid var(--line)}
/* 手機改為標題與右上照片，下方依序為資料與評分。 */
@media(max-width:700px){
 body#top .bottle-overview,
 :root[data-score-design="b"] body#top .bottle-overview,
 :root[data-score-design="c"] body#top .bottle-overview{grid-template-columns:minmax(0,1fr) 104px;column-gap:var(--space-4);row-gap:0}
 body#top .bottle-overview .bottle-title,
 :root[data-score-design="b"] body#top .bottle-overview .bottle-title,
 :root[data-score-design="c"] body#top .bottle-overview .bottle-title{grid-column:1;grid-row:1}
 body#top .bottle-overview .bottle-hero-photo,
 :root[data-score-design="b"] body#top .bottle-overview .bottle-hero-photo,
 :root[data-score-design="c"] body#top .bottle-overview .bottle-hero-photo{grid-column:2;grid-row:1;width:104px}
 body#top .bottle-overview>.bottle-highlights,
 :root[data-score-design="b"] body#top .bottle-overview>.bottle-highlights{grid-column:1/-1;grid-row:2;margin-top:var(--space-5)}
 body#top .bottle-overview>.bottle-basics,
 body#top .bottle-overview>.bottle-basics[open],
 :root[data-score-design="b"] body#top .bottle-overview>.bottle-basics:not([open]),
 :root[data-score-design="c"] body#top .bottle-overview>.bottle-basics:not([open]),
 :root[data-score-design="c"] body#top .bottle-overview>.bottle-basics[open]{grid-column:1/-1;grid-row:3;margin-top:var(--space-4)}
 body#top .bottle-overview>.score-design-target,
 body#top .bottle-overview:has(>.bottle-basics[open])>.score-design-target,
 :root[data-score-design="c"] body#top .bottle-overview>.score-design-target,
 :root[data-score-design="c"] body#top .bottle-overview:has(>.bottle-basics[open])>.score-design-target{grid-column:1/-1;grid-row:4;margin-top:var(--space-5)}
 body#top .score-design-target .rating,
 :root[data-score-design="b"] body#top .score-design-target .rating{grid-template-columns:minmax(0,1fr);gap:var(--space-5)}
 body#top .score-design-target .rating-dimensions{gap:var(--space-3)}
 :root[data-score-design="c"] body#top .score-design-target .rating-dimensions{gap:0}
 :root[data-score-design="b"] body#top .score-design-target .rating>.rating-total{padding-right:0;padding-bottom:var(--space-4);border-right:0;border-bottom:1px solid var(--line)}
 :root[data-score-design="c"] body#top .score-design-target .rating-dimensions>div+div{padding-left:var(--space-3)}
 :root[data-score-design="c"] body#top .bottle-overview>.score-design-target,
 :root[data-score-design="c"] body#top .bottle-overview:has(>.bottle-basics[open])>.score-design-target{grid-row:2}
 :root[data-score-design="c"] body#top .bottle-article:not(.restaurant-article) .bottle-overview{--overview-photo-width:116px;grid-template-columns:minmax(0,1fr) var(--overview-photo-width);row-gap:0}
}
@media(max-width:370px){
 body#top .bottle-overview,
 :root[data-score-design="b"] body#top .bottle-overview,
 :root[data-score-design="c"] body#top .bottle-overview{grid-template-columns:minmax(0,1fr) 64px;column-gap:var(--space-2)}
 body#top .bottle-overview .bottle-hero-photo,
 :root[data-score-design="b"] body#top .bottle-overview .bottle-hero-photo,
 :root[data-score-design="c"] body#top .bottle-overview .bottle-hero-photo{width:64px}
 body#top .score-design-target .rating-dimensions{gap:var(--space-2)}
 :root[data-score-design="c"] body#top .score-design-target .rating-dimensions{gap:0}
 :root[data-score-design="c"] body#top .score-design-target .rating-dimensions>div+div{padding-left:var(--space-2)}
 :root[data-score-design="c"] body#top .bottle-article:not(.restaurant-article) .bottle-overview{--overview-photo-width:76px}
}
