/* Recommended by Readers: library grid, filters and coffee pages.
   Builds on the tokens in dial.css. #2131CF is the signature blue used only for
   coffees that have been featured in an issue. */

:root { --signature:#2131CF; --tile:#F2EFE7; }

/* Header */
.rl-head { padding:clamp(56px,8vw,110px) var(--dedge) clamp(28px,4vw,48px); display:flex; flex-direction:column; gap:14px; }
.rl-head .d-label { color:var(--cobalt); }
.rl-head h1 { font-family:'Cormorant Garamond',serif; font-weight:500; font-size:clamp(46px,6.6vw,92px); line-height:0.94; color:var(--navy); }
.rl-head h1 em { color:var(--cobalt); }
.rl-head p { font-size:17px; line-height:1.6; color:var(--body); max-width:52ch; text-wrap:pretty; }

/* Search and filters */
.rf { padding:0 var(--dedge) clamp(24px,3vw,36px); }
.rf-top { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; }
.rf-search { flex:1 1 280px; display:flex; flex-direction:column; gap:8px; }
.rf-label { font-size:11px; letter-spacing:0.26em; text-transform:uppercase; color:var(--muted); }
.rf-search input { width:100%; border:1px solid var(--navy); border-radius:0; background:transparent; outline:none; font-family:'EB Garamond',Georgia,serif; font-size:18px; color:var(--navy); padding:14px 16px; -webkit-appearance:none; appearance:none; }
.rf-search input:focus { border-color:var(--cobalt); }
.rf-toggle { display:inline-flex; align-items:center; gap:10px; border:1px solid var(--navy); background:transparent; color:var(--navy); font-size:13px; letter-spacing:0.24em; text-transform:uppercase; padding:15px 20px; cursor:pointer; }
.rf-toggle:hover { background:var(--navy); color:var(--cream); }
.rf-toggle::after { content:"+"; font-size:18px; letter-spacing:0; line-height:1; }
.rf-toggle[aria-expanded="true"]::after { content:"\2212"; }
.rf-panel[data-collapsed="true"] { display:none; }
.rf-toggle #active-count:not(:empty)::before { content:" · "; }

.rf-panel { margin-top:22px; padding-top:22px; border-top:1px solid var(--hair); display:flex; flex-direction:column; gap:22px; }
.rf-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; }
.rf-title { font-family:'Cormorant Garamond',serif; font-weight:600; font-size:24px; line-height:1.1; color:var(--navy); }
.rf-sub { font-size:14px; color:var(--muted); margin-top:3px; }
.rf-clear, .rl-reset { border:0; background:transparent; padding:0 0 3px; font-family:'Cormorant Garamond',serif; font-style:italic; font-size:20px; color:var(--cobalt); border-bottom:1px solid var(--cobalt); cursor:pointer; }
.rf-clear:hover, .rl-reset:hover { color:var(--navy); border-color:var(--navy); }
.rf-clear:disabled { opacity:0.35; cursor:default; }
.rf-group { display:flex; flex-direction:column; gap:10px; }
.rf-chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { border:1px solid var(--navy); background:transparent; color:var(--navy); font-family:'EB Garamond',Georgia,serif; font-size:16px; padding:9px 15px; cursor:pointer; transition:background 0.15s, color 0.15s; }
.chip:hover { background:var(--tile); }
.chip[aria-pressed="true"] { background:var(--cobalt); border-color:var(--cobalt); color:var(--cream); }

@media (max-width:720px) {
  .rf-toggle { display:flex; justify-content:space-between; width:100%; }
}

/* Grid */
.rl-wrap { padding:0 var(--dedge) clamp(80px,10vw,140px); }
.rl-count { font-size:11px; letter-spacing:0.26em; text-transform:uppercase; color:var(--muted); margin-bottom:20px; }
.rl-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr)); gap:28px 20px; }
.rl-empty { font-size:19px; color:var(--body); padding:32px 0; }

/* Same grey as the Print Room tiles. The photos are shot on this grey, so the
   image and the text area read as one card against the cream page. */
.rc { position:relative; display:flex; flex-direction:column; background:var(--tile); }
.rc[hidden] { display:none; }
.rc-img { position:relative; aspect-ratio:1 / 1; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.rc-img img { width:100%; height:100%; object-fit:cover; object-position:50% 58%; display:block; transition:transform 0.5s var(--ease); }
.rc:hover .rc-img img { transform:scale(1.03); }
.rc-noimg { font-size:40px; color:var(--label); }
.rc-body { display:flex; flex-direction:column; gap:10px; padding:6px 20px 22px; flex:1; }
.rc-name { font-family:'Cormorant Garamond',serif; font-weight:600; font-size:26px; line-height:1.08; color:var(--navy); }
/* one link per card, on the name, stretched so the whole card is clickable */
.rc-link { color:inherit; }
.rc-link::after { content:""; position:absolute; inset:0; z-index:1; }
.rc-roaster { font-size:17px; color:#5A6488; }
.rc-row { margin:8px 0 0; padding-top:12px; border-top:1px solid #DDD8CB; display:flex; flex-direction:column; gap:4px; }
.rc-row dt { font-size:11px; letter-spacing:0.26em; text-transform:uppercase; color:var(--muted); }
.rc-row dd { margin:0; font-size:17px; line-height:1.4; color:var(--navy); }
.rc-count { font-family:'Cormorant Garamond',serif; font-style:italic; font-size:19px; color:var(--cobalt); margin-top:auto; padding-top:6px; }
.rc-btn { display:block; background:var(--navy); color:var(--cream); text-align:center; font-size:13px; letter-spacing:0.24em; text-transform:uppercase; padding:17px 20px; transition:background 0.2s; }
.rc:hover .rc-btn { background:var(--cobalt); }
.rc:focus-within { outline:2px solid var(--cobalt); outline-offset:3px; }
.rc :focus-visible { outline:none; }

/* Featured in The Dial: a small blue label in the corner. Not a link, so a tap anywhere on the card opens the coffee. */
.rc-pill { position:absolute; left:16px; top:16px; z-index:2; display:inline-block; background:var(--signature); color:var(--cream); font-size:10.5px; letter-spacing:0.16em; text-transform:uppercase; padding:6px 13px 5px; border-radius:999px; line-height:1.3; pointer-events:none; white-space:nowrap; }

/* Coffee page */
.rd { padding:clamp(28px,4vw,56px) var(--dedge) clamp(80px,10vw,140px); }
.rd-back { display:inline-block; font-family:'Cormorant Garamond',serif; font-style:italic; font-size:21px; color:var(--navy); border-bottom:1px solid var(--cobalt); padding-bottom:2px; margin-bottom:clamp(24px,4vw,44px); }
.rd-back:hover { color:var(--cobalt); }
.rd-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:clamp(28px,5vw,72px); align-items:start; }
.rd-img { background:var(--tile); aspect-ratio:4 / 5; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.rd-img img { width:100%; height:100%; object-fit:cover; display:block; }
.rd-copy { display:flex; flex-direction:column; gap:18px; max-width:560px; }
.rd-roaster { font-size:12px; letter-spacing:0.28em; text-transform:uppercase; color:var(--cobalt); }
.rd h1 { font-family:'Cormorant Garamond',serif; font-weight:500; font-size:clamp(40px,5.4vw,72px); line-height:0.98; color:var(--navy); }
.rd-tags { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.rd-tags a { display:block; font-size:15px; color:var(--navy); border:1px solid var(--navy); padding:7px 13px; }
.rd-tags a:hover { background:var(--cobalt); border-color:var(--cobalt); color:var(--cream); }
.rd-summary { font-size:19px; line-height:1.65; color:var(--body); text-wrap:pretty; }
.rd-count { font-family:'Cormorant Garamond',serif; font-style:italic; font-size:22px; color:var(--cobalt); }
.rd-featured { background:var(--tile); padding:20px 22px; display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.rd-pill { position:static; }
.rd-featured-issue { font-family:'Cormorant Garamond',serif; font-weight:500; font-size:28px; line-height:1.05; color:var(--navy); }
.rd-featured-link { font-family:'Cormorant Garamond',serif; font-style:italic; font-size:21px; color:var(--cobalt); border-bottom:1px solid var(--cobalt); padding-bottom:2px; }
.rd-featured-link:hover { color:var(--navy); border-color:var(--navy); }
.rd-featured-note { font-size:14px; line-height:1.5; color:var(--muted); margin-top:4px; }
.rd-buy { align-self:flex-start; }
.rd-notes h2 { font-family:'Cormorant Garamond',serif; font-weight:600; font-size:24px; color:var(--navy); margin-bottom:10px; }
.rd-notes ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.rd-notes li { font-size:17px; line-height:1.55; color:var(--body); border-left:2px solid var(--pale); padding-left:14px; }
.rd-missing { display:flex; flex-direction:column; gap:14px; max-width:560px; padding:clamp(24px,5vw,60px) 0; }
.rd-missing p { font-size:18px; line-height:1.6; color:var(--body); }

@media (prefers-reduced-motion:reduce) { .rc-img img, .rc-btn, .chip { transition:none; } .rc:hover .rc-img img { transform:none; } }
.rd-row { margin-top:0; }
.rd-row dd { font-size:19px; }

/* Image credit: tiny, bottom corner of the picture */
.rc-credit { position:absolute; left:14px; bottom:10px; z-index:2; font-size:11px; letter-spacing:0.04em; color:#8B8F9E; pointer-events:none; }
.rd-img { position:relative; }
.rd-credit { position:absolute; left:14px; bottom:10px; font-size:12px; color:#8B8F9E; }
.rd-credit a { color:inherit; border-bottom:1px solid currentColor; }
.rd-credit a:hover { color:var(--navy); }

/* Recommend a coffee: the paste-a-link form */
.rl-cta { align-self:flex-start; margin-top:10px; }
.rl-more { margin-top:36px; font-size:18px; color:var(--body); }
.rl-more a { font-family:'Cormorant Garamond',serif; font-style:italic; font-size:22px; color:var(--cobalt); border-bottom:1px solid var(--cobalt); padding-bottom:2px; }
.rl-more a:hover { color:var(--navy); border-color:var(--navy); }

.rcm-wrap { padding:0 var(--dedge) clamp(80px,10vw,140px); display:flex; flex-direction:column; gap:20px; }
.rcm-card { background:var(--tile); max-width:760px; width:100%; padding:clamp(22px,4vw,40px); display:flex; flex-direction:column; gap:20px; }
.rcm-card[hidden] { display:none; }
.rcm-field { display:flex; border:1px solid var(--navy); background:var(--cream); }
.rcm-field:focus-within { border-color:var(--cobalt); }
.rcm-field input { flex:1; min-width:0; border:0; border-radius:0; outline:none; background:transparent; font-family:'EB Garamond',Georgia,serif; font-size:18px; color:var(--navy); padding:15px 16px; -webkit-appearance:none; appearance:none; }
.rcm-field button { border:0; border-radius:0; background:var(--cobalt); color:var(--cream); font-family:'EB Garamond',Georgia,serif; font-size:13px; letter-spacing:0.24em; text-transform:uppercase; padding:0 22px; cursor:pointer; white-space:nowrap; }
.rcm-field button:hover { background:var(--navy); }
.rcm-field button:disabled { opacity:0.7; cursor:default; }
@media (max-width:480px) { .rcm-field { flex-direction:column; } .rcm-field button { padding:15px 20px; } }
.rcm-hint { font-size:14px; line-height:1.5; color:var(--muted); }
.rcm-err { font-size:15px; color:#B3261E; }
.rcm-err:empty { display:none; }
.rcm-note { font-size:16px; color:var(--body); }

.rcm-found { display:flex; align-items:center; gap:16px; }
.rcm-found-title { font-family:'Cormorant Garamond',serif; font-weight:600; font-size:28px; line-height:1.1; color:var(--navy); }
.rcm-thumb { flex:none; width:72px; height:90px; background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.rcm-thumb img { width:100%; height:100%; object-fit:contain; display:block; }
.rcm-existing { font-size:16px; line-height:1.5; color:var(--navy); border-left:3px solid var(--cobalt); padding:4px 0 4px 14px; }

.rcm-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:18px; }
.rcm-lab { display:flex; flex-direction:column; gap:8px; font-size:11px; letter-spacing:0.26em; text-transform:uppercase; color:var(--muted); }
.rcm-t { font-weight:400; }
.rcm-lab .rcm-t span { letter-spacing:0.08em; text-transform:none; font-size:13px; color:#8B93B2; margin-left:6px; }
.rcm-lab input, .rcm-lab textarea { width:100%; border:1px solid var(--navy); border-radius:0; outline:none; background:var(--cream); font-family:'EB Garamond',Georgia,serif; font-size:17px; letter-spacing:0; text-transform:none; color:var(--navy); padding:13px 14px; -webkit-appearance:none; appearance:none; }
.rcm-lab textarea { resize:vertical; min-height:92px; line-height:1.5; }
.rcm-lab input:focus, .rcm-lab textarea:focus { border-color:var(--cobalt); }
.rcm-lab .rcm-count { align-self:flex-end; margin:0; font-size:12px; letter-spacing:0.1em; }
.rcm-card .chip { background:var(--cream); }
.rcm-card .chip:hover { background:#fff; }
.rcm-card .chip[aria-pressed="true"] { background:var(--cobalt); }
.rcm-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.rcm-actions { display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.rcm-submit { border:1px solid var(--cobalt); border-radius:0; background:var(--cobalt); color:var(--cream); font-family:'EB Garamond',Georgia,serif; font-size:13px; letter-spacing:0.24em; text-transform:uppercase; padding:16px 26px; cursor:pointer; }
.rcm-submit:hover { background:var(--navy); border-color:var(--navy); }
.rcm-submit:disabled { opacity:0.7; cursor:default; }
.rcm-back { border:0; background:transparent; padding:0 0 3px; font-family:'Cormorant Garamond',serif; font-style:italic; font-size:20px; color:var(--cobalt); border-bottom:1px solid var(--cobalt); cursor:pointer; }
.rcm-back:hover { color:var(--navy); border-color:var(--navy); }
.rcm-thanks p { font-size:18px; line-height:1.6; color:var(--body); }
.rcm-thanks:focus { outline:none; }

/* Homepage carousel: "Recommended by readers" */
.hl { background:var(--midnight); padding:clamp(64px,9vw,120px) 0; overflow:hidden; }
.hl-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px 40px; flex-wrap:wrap; padding:0 var(--dedge); margin-bottom:clamp(28px,4vw,48px); }
.hl-copy { display:flex; flex-direction:column; gap:14px; max-width:640px; }
.hl .d-label { color:var(--gold); }
.hl h2 { font-family:'Cormorant Garamond',serif; font-weight:500; font-size:clamp(40px,5.6vw,76px); line-height:0.95; color:var(--cream); }
.hl h2 em { color:var(--gold); }
.hl-copy p { font-size:17px; line-height:1.6; color:#DDE4FA; max-width:52ch; text-wrap:pretty; }
.hl-ctrl { display:flex; gap:10px; }
.hl-ctrl[hidden] { display:none; }
.hl-arrow { width:48px; height:48px; border:1px solid var(--cream); background:transparent; color:var(--cream); font-size:22px; line-height:1; cursor:pointer; transition:background 0.2s, color 0.2s; }
.hl-arrow:hover:not(:disabled) { background:var(--cream); color:var(--navy); }
.hl-arrow:disabled { opacity:0.3; cursor:default; }
.hl-arrow:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
@media (max-width:640px) { .hl-ctrl { display:none; } }

/* The row scrolls sideways and snaps to a card. It starts in line with the page edge and
   runs off the right, so there is always a hint that there is more. */
.hl-track { display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-left:var(--dedge);
  padding:4px var(--dedge) 8px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.hl-track::-webkit-scrollbar { display:none; }
.hl-track:focus-visible { outline:2px solid var(--gold); outline-offset:-2px; }
.hl-track .rc { flex:0 0 clamp(250px,72vw,295px); scroll-snap-align:start; }
.hl .rc:focus-within { outline-color:var(--gold); }
.hl-foot { display:flex; align-items:center; gap:20px 32px; flex-wrap:wrap; padding:0 var(--dedge); margin-top:clamp(28px,4vw,44px); }
.hl-all { font-family:'Cormorant Garamond',serif; font-style:italic; font-size:22px; color:var(--cream); border-bottom:1px solid var(--gold); padding-bottom:3px; white-space:nowrap; }
.hl-all:hover { color:var(--gold); }
.hl-add { display:inline-block; border:1px solid var(--cream); color:var(--cream); font-size:13px; letter-spacing:0.24em; text-transform:uppercase; padding:14px 22px; transition:background 0.2s, color 0.2s; }
.hl-add:hover { background:var(--cream); color:var(--navy); }
.hl-noscript { padding:0 var(--dedge); margin-top:20px; }
.hl-noscript a { color:var(--gold); }
.hl-msg { color:var(--pale); font-size:17px; padding:12px 0; }
.hl-msg a { color:var(--gold); }

/* Placeholder cards while the coffees load */
.rc.sk .rc-img { background:#E8E4D8; }
.rc.sk .rc-btn { background:#2A3366; }
.sk-line { display:block; height:14px; background:#E4DFD2; margin-top:12px; }
.sk-line.w90 { width:90%; } .sk-line.w70 { width:70%; height:22px; } .sk-line.w50 { width:50%; }
.rc.sk { animation:hl-pulse 1.6s ease-in-out infinite; }
@keyframes hl-pulse { 50% { opacity:0.6; } }
@media (prefers-reduced-motion:reduce) { .rc.sk { animation:none; } .hl-arrow, .hl-add { transition:none; } }

/* About the roaster, below the coffee on its page */
.rr { margin-top:clamp(48px,7vw,96px); padding-top:clamp(28px,4vw,48px); border-top:1px solid var(--hair); display:grid; grid-template-columns:minmax(220px,320px) 1fr; gap:clamp(24px,5vw,64px); align-items:center; }
.rr-logo { background:var(--midnight); aspect-ratio:3 / 2; display:flex; align-items:center; justify-content:center; padding:32px; }
.rr-logo img { max-width:70%; max-height:90px; width:auto; height:auto; display:block; }
.rr-word { font-family:'Cormorant Garamond',serif; font-weight:600; font-size:28px; line-height:1.1; color:var(--cream); text-align:center; }
.rr-copy { display:flex; flex-direction:column; gap:12px; max-width:62ch; }
.rr-label { font-size:11px; letter-spacing:0.26em; text-transform:uppercase; color:var(--cobalt); }
.rr h2 { font-family:'Cormorant Garamond',serif; font-weight:500; font-size:clamp(30px,3.6vw,44px); line-height:1; color:var(--navy); }
.rr-loc { font-size:13px; letter-spacing:0.2em; text-transform:uppercase; color:var(--muted); }
.rr-text { font-size:18px; line-height:1.65; color:var(--body); text-wrap:pretty; }
.rr-links { list-style:none; display:flex; gap:22px; flex-wrap:wrap; margin:4px 0 0; padding:0; }
.rr-links a { font-family:'Cormorant Garamond',serif; font-style:italic; font-size:21px; color:var(--cobalt); border-bottom:1px solid var(--cobalt); padding-bottom:2px; }
.rr-links a:hover { color:var(--navy); border-color:var(--navy); }
@media (max-width:760px) { .rr { grid-template-columns:1fr; } .rr-logo { aspect-ratio:auto; min-height:150px; } }

/* Signup under the shop button on coffee pages */
.rd-sub { margin-top:10px; padding-top:28px; border-top:1px solid var(--hair); display:flex; flex-direction:column; gap:12px; }
.rd-sub-label { font-size:11px; letter-spacing:0.26em; text-transform:uppercase; color:var(--cobalt); }
.rd-sub h2 { font-family:'Cormorant Garamond',serif; font-weight:500; font-size:clamp(28px,3vw,38px); line-height:1.02; color:var(--navy); text-wrap:balance; }
.rd-sub h2 em { color:var(--cobalt); }
.rd-sub-form { display:flex; border:1px solid var(--navy); background:#fff; max-width:520px; }
.rd-sub-form:focus-within { border-color:var(--cobalt); }
.rd-sub-form input { flex:1; min-width:0; border:0; border-radius:0; outline:none; background:transparent; font-family:'EB Garamond',Georgia,serif; font-size:17px; color:var(--navy); padding:15px 16px; -webkit-appearance:none; appearance:none; }
.rd-sub-form input::placeholder { color:#8B93B2; }
.rd-sub-form button { border:0; border-radius:0; background:var(--navy); color:var(--cream); font-family:'EB Garamond',Georgia,serif; font-size:13px; letter-spacing:0.24em; text-transform:uppercase; padding:0 22px; cursor:pointer; white-space:nowrap; }
.rd-sub-form button:hover { background:var(--cobalt); }
.rd-sub-form button:disabled { opacity:0.7; cursor:default; }
.rd-sub-note { min-height:1.2em; font-size:16px; color:var(--navy); }
.rd-sub-note:empty { display:none; }
.rd-sub-fine { font-size:13px; line-height:1.5; color:var(--muted); }
.rd-sub-fine a { color:var(--muted); border-bottom:1px solid var(--muted); }
.rd-sub-fine a:hover { color:var(--navy); }
.rd-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@media (max-width:420px) { .rd-sub-form { flex-direction:column; } .rd-sub-form button { padding:15px 22px; } }
.rd-sub + .rd-notes { margin-top:14px; }

/* Link from espresso coffees to the equipment research */
.rd-gear { margin-top:18px; padding:14px 16px; background:#F6F6F4; border-radius:6px; font-size:16px; line-height:1.5; color:var(--body); }
.rd-gear a { font-weight:600; }

/* ------------------------------------------------------------------ Shop-style library
   November 2026: a simpler, shop-like layout for /recommended and the coffee pages.
   gl- is the library, gp- is the coffee page. The homepage carousel keeps the rc- styles. */

.gl { padding:clamp(32px,5vw,64px) var(--dedge) clamp(80px,10vw,140px); }
.gl-head { display:flex; flex-direction:column; gap:10px; margin-bottom:clamp(28px,4vw,44px); }
.gl-head h1 { font-family:'Cormorant Garamond',serif; font-weight:500; font-size:clamp(36px,4.4vw,56px); line-height:1; color:var(--navy); }
.gl-head p { font-size:17px; line-height:1.55; color:var(--body); max-width:60ch; }
.gl-head a, .gl-more a { color:var(--navy); border-bottom:1px solid currentColor; }
.gl-head a:hover, .gl-more a:hover { color:var(--cobalt); }

/* Filter bar: small outlined dropdowns on the left, sort and count on the right */
.gl-bar { display:flex; justify-content:space-between; align-items:center; gap:16px 32px; flex-wrap:wrap; margin-bottom:clamp(28px,4vw,40px); }
.gl-filters, .gl-sort { display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; }
.gl-bar-label { font-size:17px; color:var(--navy); }
.gl-dd { position:relative; }
.gl-dd-btn, .gl-select, .gl-count { display:inline-flex; align-items:center; gap:10px; height:42px; border:1px solid #9AA0B8; background:transparent; color:var(--navy); font-family:'EB Garamond',Georgia,serif; font-size:17px; padding:0 14px; border-radius:0; }
.gl-dd-btn { cursor:pointer; }
.gl-dd-btn::after, .gl-select { background-repeat:no-repeat; }
.gl-dd-btn::after { content:""; width:9px; height:9px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:translateY(-3px) rotate(45deg); transition:transform 0.2s; }
.gl-dd-btn[aria-expanded="true"]::after { transform:translateY(2px) rotate(-135deg); }
.gl-dd-btn:hover, .gl-select:hover { border-color:var(--navy); }
.gl-dd-n:not(:empty) { display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 5px; background:var(--navy); color:var(--cream); font-size:12px; line-height:1; border-radius:999px; }
.gl-dd-panel { position:absolute; left:0; top:calc(100% + 6px); z-index:20; min-width:220px; background:#fff; border:1px solid #9AA0B8; box-shadow:0 12px 28px rgba(14,20,56,0.12); padding:8px 0; display:flex; flex-direction:column; }
.gl-opt { display:flex; align-items:center; gap:12px; padding:9px 16px; font-size:17px; color:var(--navy); cursor:pointer; }
.gl-opt:hover { background:var(--tile); }
.gl-opt input { width:16px; height:16px; margin:0; accent-color:var(--navy); }
.gl-clear, .gl-reset { border:0; background:transparent; padding:0; font-size:16px; color:var(--navy); border-bottom:1px solid currentColor; cursor:pointer; }
.gl-clear:hover, .gl-reset:hover { color:var(--cobalt); }
.gl-select { appearance:none; -webkit-appearance:none; padding-right:38px; cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,var(--navy) 50%),linear-gradient(135deg,var(--navy) 50%,transparent 50%);
  background-position:calc(100% - 20px) 52%,calc(100% - 14px) 52%; background-size:6px 6px,6px 6px; }
.gl-count { color:var(--body); }

/* Grid: three across, lots of air, no card boxes */
.gl-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(40px,5vw,64px) clamp(20px,3vw,40px); }
.gl-card { position:relative; display:flex; flex-direction:column; }
.gl-img { position:relative; aspect-ratio:1 / 1; background:var(--tile); overflow:hidden; display:flex; align-items:center; justify-content:center; }
.gl-img img { width:100%; height:100%; object-fit:cover; object-position:50% 58%; display:block; transition:transform 0.5s var(--ease); }
.gl-card:hover .gl-img img { transform:scale(1.03); }
.gl-noimg { font-size:40px; color:var(--label); }
.gl-tags { position:absolute; left:14px; top:14px; z-index:2; display:flex; flex-direction:column; align-items:flex-start; gap:0; pointer-events:none; }
.gl-tag { display:inline-block; background:#fff; color:var(--midnight); font-size:13px; font-weight:500; letter-spacing:0.08em; padding:7px 12px 6px; line-height:1.2; border:1px solid #E4E1D8; white-space:nowrap; }
.gl-tag-dark { background:var(--midnight); border-color:var(--midnight); color:var(--cream); }
.gl-credit { position:absolute; right:12px; bottom:10px; z-index:2; font-size:11px; color:#8B8F9E; pointer-events:none; }
.gl-name { margin-top:18px; font-family:'EB Garamond',Georgia,serif; font-weight:400; font-size:18px; line-height:1.35; color:var(--navy); }
.gl-name a { color:inherit; }
.gl-name a::after { content:""; position:absolute; inset:0; z-index:1; } /* whole tile clickable */
.gl-card:hover .gl-name a { text-decoration:underline; text-underline-offset:3px; }
.gl-notes { margin-top:8px; font-size:20px; line-height:1.3; color:var(--navy); font-family:'Cormorant Garamond',serif; font-weight:500; }
.gl-card:focus-within { outline:2px solid var(--cobalt); outline-offset:4px; }
.gl-card :focus-visible { outline:none; }
.gl-card[hidden] { display:none; }
.gl-empty { font-size:19px; color:var(--body); padding:32px 0; }
.gl-more { margin-top:clamp(48px,6vw,72px); font-size:17px; color:var(--body); }

@media (max-width:1000px) { .gl-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) {
  .gl-grid { grid-template-columns:minmax(0,1fr); }
  .gl-bar, .gl-filters, .gl-sort { width:100%; }
  .gl-filters > .gl-bar-label, .gl-sort > .gl-bar-label { width:100%; }
  .gl-sort .gl-select { flex:1; }
  .gl-dd-panel { min-width:200px; }
  .gl-dd:nth-of-type(3) .gl-dd-panel { left:auto; right:0; }
}

/* Coffee page */
.gp { padding:clamp(24px,3vw,40px) var(--dedge) clamp(80px,10vw,140px); }
.gp-back { display:inline-block; font-size:16px; color:var(--navy); border-bottom:1px solid currentColor; margin-bottom:clamp(24px,3vw,36px); }
.gp-back:hover { color:var(--cobalt); }
.gp-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:clamp(32px,6vw,96px); align-items:start; }
.gp-img { position:sticky; top:96px; aspect-ratio:1 / 1; background:var(--tile); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.gp-img img { width:100%; height:100%; object-fit:cover; object-position:50% 58%; display:block; }
.gp-credit { position:absolute; right:14px; bottom:10px; font-size:12px; color:#8B8F9E; }
.gp-credit a { color:inherit; border-bottom:1px solid currentColor; }
.gp-info { display:flex; flex-direction:column; max-width:560px; }
.gp h1 { font-family:'EB Garamond',Georgia,serif; font-weight:400; font-size:clamp(30px,3.2vw,42px); line-height:1.15; color:var(--navy); text-wrap:balance; }
.gp-by { margin-top:18px; font-size:18px; color:var(--body); }
.gp-by a { color:var(--navy); border-bottom:1px solid currentColor; }
.gp-by a:hover { color:var(--cobalt); }
.gp-summary { margin-top:22px; font-size:18px; line-height:1.65; color:var(--body); text-wrap:pretty; }
.gp-spec { margin-top:28px; width:100%; border-collapse:collapse; font-size:17px; }
.gp-spec th, .gp-spec td { padding:11px 16px; border-bottom:1px solid var(--hair); text-align:left; vertical-align:top; line-height:1.4; }
.gp-spec th { width:34%; font-weight:500; color:var(--navy); }
.gp-spec td { color:var(--body); }
.gp-spec td a { color:var(--navy); border-bottom:1px solid var(--hair); }
.gp-spec td a:hover { color:var(--cobalt); border-color:var(--cobalt); }
.gp-buy { display:block; margin-top:28px; background:var(--midnight); color:var(--cream); text-align:center; font-size:13px; letter-spacing:0.24em; text-transform:uppercase; padding:18px 20px; transition:background 0.2s; }
.gp-buy:hover { background:var(--cobalt); color:var(--cream); }
.gp-disclosure { margin-top:12px; font-size:14px; line-height:1.5; color:var(--muted); }

.gp-sub { margin-top:32px; padding:22px; background:var(--tile); display:flex; flex-direction:column; gap:12px; }
.gp-sub h2 { font-family:'EB Garamond',Georgia,serif; font-weight:500; font-size:19px; line-height:1.3; color:var(--navy); }
.gp-sub-form { display:flex; border:1px solid #9AA0B8; background:#fff; }
.gp-sub-form:focus-within { border-color:var(--navy); }
.gp-sub-form input { flex:1; min-width:0; border:0; border-radius:0; outline:none; background:transparent; font-family:'EB Garamond',Georgia,serif; font-size:17px; color:var(--navy); padding:13px 14px; -webkit-appearance:none; appearance:none; }
.gp-sub-form button { border:0; border-radius:0; background:var(--navy); color:var(--cream); font-size:12px; letter-spacing:0.22em; text-transform:uppercase; padding:0 20px; cursor:pointer; }
.gp-sub-form button:hover { background:var(--cobalt); }
.gp-sub-form button:disabled { opacity:0.7; cursor:default; }
.gp-sub-note { font-size:16px; color:var(--navy); }
.gp-sub-note:empty { display:none; }
.gp-sub-fine { font-size:13px; color:var(--muted); }
.gp-sub-fine a { color:inherit; border-bottom:1px solid currentColor; }
.gp-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@media (max-width:420px) { .gp-sub-form { flex-direction:column; } .gp-sub-form button { padding:14px 20px; } }

/* Fold-out rows under the button, like a shop's delivery and returns rows */
.gp-accs { margin-top:28px; border-top:1px solid var(--hair); }
.gp-acc { border-bottom:1px solid var(--hair); }
.gp-acc summary { list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:18px 4px; font-size:14px; letter-spacing:0.16em; text-transform:uppercase; color:var(--navy); cursor:pointer; }
.gp-acc summary::-webkit-details-marker { display:none; }
.gp-acc summary::after { content:"+"; font-size:22px; letter-spacing:0; line-height:1; }
.gp-acc[open] summary::after { content:"\2212"; }
.gp-acc-body { padding:0 4px 22px; display:flex; flex-direction:column; gap:14px; font-size:17px; line-height:1.6; color:var(--body); }
.gp-acc-body a { color:var(--navy); border-bottom:1px solid currentColor; }
.gp-acc-body a:hover { color:var(--cobalt); }
.gp-logo { align-self:flex-start; background:var(--midnight); padding:18px 26px; }
.gp-logo img { display:block; max-height:44px; max-width:180px; width:auto; height:auto; }
.gp-links { display:flex; gap:22px; flex-wrap:wrap; }
.gp-notes { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.gp-notes li { border-left:2px solid var(--pale); padding-left:14px; }

@media (max-width:860px) {
  .gp-grid { grid-template-columns:minmax(0,1fr); }
  .gp-img { position:relative; top:auto; }
}
@media (prefers-reduced-motion:reduce) { .gl-img img, .gp-buy { transition:none; } .gl-card:hover .gl-img img { transform:none; } }
