/* Hallmark · macrostructure: Catalogue + Long Document · tone: existing UI2 · anchor hue: brand red with atlas green */
/* Shared UI2 tokens are the design authority. Keep all product rules inside HFG. */
.hfg-main{--hfg-soft:#f2f6ee;--hfg-green:#3c612e;--hfg-warning:#fff3e8;--hfg-warning-ink:#753009;width:var(--ui2-content);margin-inline:auto;padding:var(--ui2-space-xl) 0 var(--ui2-space-2xl);color:var(--ui2-text-primary)}
.hfg-main [hidden]{display:none!important}
.hfg-main :is(h1,h2,h3,p,dd,li,a,button,summary){overflow-wrap:anywhere}
.hfg-main :is(h1,h2,h3){color:var(--ui2-brand-primary);font-style:normal;text-wrap:balance}
.hfg-main h1{font-size:clamp(2.1rem,4vw,3.6rem);line-height:1.15;font-weight:var(--ui2-type-h1-weight);letter-spacing:-.025em;margin:var(--ui2-space-sm) 0}
.hfg-main h2{font-size:clamp(1.35rem,2.4vw,1.85rem);line-height:1.3;margin:0 0 var(--ui2-space-md)}
.hfg-main h3{font-size:var(--ui2-type-h3-size);line-height:1.35;margin:0}
.hfg-main a{color:var(--ui2-brand-primary);text-underline-offset:.2em}
.hfg-main a:hover{color:var(--ui2-red-dark)}
.hfg-main :focus-visible{outline:3px solid var(--ui2-focus);outline-offset:3px}
.hfg-main :is(section,div,figure,nav){min-width:0}
.hfg-main figure{margin:0}
.hfg-main img{max-width:100%;height:auto;object-fit:contain}
.hfg-main figcaption{padding:var(--ui2-space-sm) var(--ui2-space-md);color:var(--ui2-text-secondary);font-size:var(--ui2-type-metadata-size);line-height:1.55}
.hfg-main [data-safety-image-caption]{color:var(--hfg-warning-ink);background:var(--hfg-warning);font-weight:700}
.hfg-main :is(input,textarea,select){max-width:100%;color:var(--ui2-text-primary);accent-color:var(--ui2-brand-primary)}
.hfg-main :is(button,summary){cursor:pointer}
.hfg-main :is(button,a,summary){-webkit-tap-highlight-color:transparent}
.hfg-button{min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border:1px solid transparent;border-radius:var(--ui2-radius-sm);background:var(--ui2-brand-secondary);color:var(--ui2-surface);font-weight:800;font-size:1rem;line-height:1.4;text-align:center;text-decoration:none;cursor:pointer}
.hfg-main a.hfg-button{color:var(--ui2-surface)}
.hfg-button:hover,.hfg-main a.hfg-button:hover{background:var(--ui2-red-dark);color:var(--ui2-surface)}
.hfg-button--secondary{background:var(--ui2-surface);color:var(--ui2-brand-primary);border-color:var(--ui2-border)}
.hfg-main a.hfg-button--secondary{color:var(--ui2-brand-primary)}
.hfg-button--secondary:hover,.hfg-main a.hfg-button--secondary:hover{background:var(--ui2-surface-muted);color:var(--ui2-brand-primary);border-color:var(--ui2-brand-primary)}
.hfg-button--whatsapp{background:var(--ui2-success);color:var(--ui2-surface)}
.hfg-button:disabled,.hfg-save:disabled{opacity:.6;cursor:not-allowed}
.hfg-button:active,.hfg-save:active{transform:translateY(1px)}
.hfg-category-label{color:var(--hfg-green);font-weight:750;font-size:var(--ui2-type-metadata-size);margin:0 0 var(--ui2-space-xs)}
.hfg-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:var(--ui2-space-xl);align-items:center;padding:var(--ui2-space-sm) 0 var(--ui2-space-md)}
.hfg-hero>div>p:not(.hfg-category-label){max-width:38rem;color:var(--ui2-text-secondary);font-size:1.08rem;margin:var(--ui2-space-md) 0 var(--ui2-space-lg)}
.hfg-hero__visual{background:var(--ui2-surface-muted);border-radius:var(--ui2-radius-lg);overflow:hidden}
.hfg-hero__visual img{width:100%;aspect-ratio:4/3;max-height:200px}
.hfg-hero__visual figcaption{font-size:.76rem}
.hfg-main .preview-notice{padding:var(--ui2-space-sm);background:var(--ui2-pastel-yellow);font-size:.85rem}
.hfg-search{padding:var(--ui2-space-md);margin:var(--ui2-space-md) 0 var(--ui2-space-sm);background:var(--ui2-surface-muted);border-radius:var(--ui2-radius-md);scroll-margin-top:100px}
.hfg-search__row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:var(--ui2-space-md);align-items:end}
.hfg-search label{display:grid;gap:var(--ui2-space-xs);font-weight:750}
.hfg-search :is(input[type=search],select),.hfg-share textarea{width:100%;min-height:48px;padding:12px 14px;background:var(--ui2-surface);border:1px solid #98a2b3;border-radius:var(--ui2-radius-sm)}
.hfg-main[data-hfg-enhanced] .hfg-category-select{display:none}
.hfg-main[data-hfg-enhanced] .hfg-search__row{grid-template-columns:minmax(0,1fr) auto}
.hfg-suggestions{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;margin-top:var(--ui2-space-sm);font-size:.88rem}
.hfg-suggestions>span{color:var(--ui2-text-secondary)}
.hfg-suggestions button{border:0;border-radius:6px;padding:7px 2px;min-height:36px;background:transparent;color:var(--ui2-brand-primary);text-decoration:underline;text-underline-offset:3px}
.hfg-suggestions button:hover{color:var(--ui2-red-dark)}
.hfg-search-caution{font-size:.83rem;color:var(--ui2-text-secondary);margin:var(--ui2-space-xs) 0 var(--ui2-space-md)}
.hfg-categories{display:flex;flex-wrap:wrap;gap:8px;padding-top:var(--ui2-space-md);border-top:1px solid var(--ui2-border)}
.hfg-categories button{min-height:44px;padding:8px 13px;border:1px solid var(--ui2-border);border-radius:var(--ui2-radius-pill);background:var(--ui2-surface);color:var(--ui2-brand-primary);line-height:1.4;font-weight:650}
.hfg-categories button:hover{border-color:var(--ui2-brand-primary)}
.hfg-categories button[aria-pressed=true]{background:var(--ui2-brand-primary);border-color:var(--ui2-brand-primary);color:var(--ui2-surface)}
.hfg-favorites-filter{margin-top:8px}.hfg-favorites-filter>summary{min-height:36px;padding:6px 0;font-size:.85rem;font-weight:650}.hfg-favorites-filter__body{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding-bottom:8px}
.hfg-favorites-filter label{display:flex;align-items:center;gap:8px;min-height:44px}
.hfg-favorites-filter input{width:20px;height:20px}
.hfg-favorites-filter span{font-size:.8rem;color:var(--ui2-text-secondary)}
.hfg-favorites-filter p:empty{display:none}
.hfg-section-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:var(--ui2-space-md)}
.hfg-section-heading h2,.hfg-section-heading p{margin:0}
.hfg-section-heading p{color:var(--ui2-text-secondary);font-size:.9rem}
.hfg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ui2-space-lg)}
.hfg-card{display:flex;flex-direction:column;border:1px solid var(--ui2-border);border-radius:var(--ui2-radius-md);background:var(--ui2-surface);min-width:0}
.hfg-card:hover,.hfg-card:focus-within{box-shadow:var(--ui2-shadow-card);border-color:#a5afbd}
.hfg-card__media{display:block;aspect-ratio:4/3;background:var(--ui2-surface-muted);border-radius:var(--ui2-radius-md) var(--ui2-radius-md) 0 0;overflow:hidden}
.hfg-card__media img{width:100%;height:100%;object-fit:contain}
.hfg-card__body{display:flex;flex-direction:column;flex:1;padding:var(--ui2-space-md)}
.hfg-card h3 a{text-decoration:none}
.hfg-card h3 a:hover{text-decoration:underline}
.hfg-card__secondary{font-size:.85rem;color:var(--ui2-text-secondary);margin:6px 0 0}
.hfg-card__clue{font-size:.9rem;margin:10px 0 var(--ui2-space-md)}
.hfg-save{min-height:44px;max-width:100%;padding:8px 12px;border:1px solid var(--ui2-border);border-radius:var(--ui2-radius-sm);color:var(--ui2-brand-primary);background:var(--ui2-surface);font-size:.85rem;font-weight:700;line-height:1.5}
.hfg-card .hfg-save{align-self:flex-start;margin-top:auto}
.hfg-save:hover{border-color:var(--ui2-brand-primary)}
.hfg-save[aria-pressed=true]{border-color:var(--ui2-brand-secondary);color:var(--ui2-red-dark);background:var(--ui2-pastel-red)}
.hfg-more{text-align:center;margin:var(--ui2-space-xl) 0}
.hfg-empty{padding:var(--ui2-space-xl);background:var(--ui2-surface-muted);border-radius:var(--ui2-radius-md)}
.hfg-section{padding:var(--ui2-space-xl) 0;border-top:1px solid var(--ui2-border);margin-top:var(--ui2-space-lg);scroll-margin-top:100px}
.hfg-section>p:last-child{margin-bottom:0}
.hfg-featured{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:8px 0 16px;padding:0 4px}
.hfg-main .hfg-featured h2{margin:0;font-size:.88rem;line-height:1.4;color:var(--ui2-text-secondary)}
.hfg-featured-links{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-width:0}
.hfg-featured-links a{min-height:36px;display:inline-flex;align-items:center;font-size:.88rem;font-weight:650}
.hfg-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:var(--ui2-space-lg);font-size:.9rem;color:var(--ui2-text-secondary)}
.hfg-breadcrumb a{min-height:44px;display:inline-flex;align-items:center}
.hfg-item-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);grid-template-areas:"media title" "media clues";grid-template-rows:auto 1fr;gap:16px var(--ui2-space-xl);align-items:start}.hfg-item-hero__title{grid-area:title}.hfg-item-hero__media{grid-area:media}.hfg-item-hero__body{grid-area:clues}
.hfg-item-hero__media figure{background:var(--ui2-surface-muted);border-radius:var(--ui2-radius-md);overflow:hidden}
.hfg-item-hero__media img{width:100%;aspect-ratio:4/3;object-fit:contain}
.hfg-item-hero__media>button{margin-top:var(--ui2-space-sm);width:100%}
.hfg-item-hero h1{font-size:clamp(2rem,3.5vw,3.2rem)}
.hfg-lead{color:var(--ui2-text-secondary);margin:var(--ui2-space-md) 0}
.hfg-main .hfg-clues-title{font-size:1rem;margin:0 0 var(--ui2-space-sm)}
.hfg-feature-list{padding:0;margin:0;list-style:none;display:grid;gap:var(--ui2-space-sm)}
.hfg-feature-list li{padding-left:var(--ui2-space-md);border-left:3px solid var(--ui2-atlas-accent)}
.hfg-alert{padding:var(--ui2-space-md);margin-top:var(--ui2-space-lg);border-left:4px solid var(--ui2-warning);background:var(--hfg-warning);color:var(--hfg-warning-ink);border-radius:0 var(--ui2-radius-sm) var(--ui2-radius-sm) 0}
.hfg-alert p{margin:var(--ui2-space-xs) 0 0}
.hfg-language-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ui2-space-sm);margin:var(--ui2-space-md) 0 var(--ui2-space-sm);font-size:.88rem}
.hfg-main .language-menu{position:relative}
.hfg-main .language-menu summary{min-height:44px;display:list-item;padding:8px 16px;border:1px solid var(--ui2-border);border-radius:var(--ui2-radius-sm);font-weight:750}
.hfg-main .language-menu nav{position:absolute;left:0;top:100%;z-index:10;display:grid;min-width:200px;max-width:calc(100vw - 32px);padding:8px;background:var(--ui2-surface);border:1px solid var(--ui2-border);border-radius:var(--ui2-radius-sm);box-shadow:var(--ui2-shadow-floating)}
.hfg-main .language-menu nav a{padding:10px;text-decoration:none}
.hfg-main .language-menu nav a[aria-current=page]{background:var(--ui2-surface-muted);font-weight:750}
.hfg-names{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--ui2-space-sm);margin:0;padding:var(--ui2-space-sm) 0;border-top:1px solid var(--ui2-border);border-bottom:1px solid var(--ui2-border)}
.hfg-names dt{font-size:.78rem;color:var(--ui2-text-secondary)}
.hfg-names dd{margin:3px 0 0;font-weight:650;font-size:.93rem}
.hfg-pronunciation{font-size:.88rem;color:var(--ui2-text-secondary);display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:var(--ui2-space-sm) 0}
.hfg-utility-actions{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin:var(--ui2-space-md) 0}.hfg-actions--secondary{margin-left:auto}.hfg-actions--secondary .hfg-save{border-color:transparent;background:transparent;color:var(--ui2-text-secondary);font-weight:500;min-height:36px;padding:6px 8px}.hfg-actions--secondary .hfg-save:hover{color:var(--ui2-brand-primary);text-decoration:underline}.hfg-actions--secondary .hfg-save[aria-pressed=true]{color:var(--ui2-red-dark);font-weight:700}.hfg-shopkeeper-action{border-color:var(--ui2-brand-primary)}.hfg-speech-status{color:var(--ui2-text-secondary);font-size:.78rem}
.hfg-actions{display:flex;flex-wrap:wrap;gap:var(--ui2-space-sm);align-items:center}
.hfg-share{max-width:100%;border:1px solid var(--ui2-border);border-radius:var(--ui2-radius-sm);background:var(--ui2-surface)}
.hfg-share>summary{padding:10px 18px;min-height:46px;color:var(--ui2-surface);background:var(--ui2-brand-secondary);border-radius:var(--ui2-radius-sm);font-weight:800}
.hfg-share>summary:hover{background:var(--ui2-red-dark)}
.hfg-share[open]{width:100%;order:1}
.hfg-share__body{padding:var(--ui2-space-lg)}
.hfg-share__body>p:first-child{margin-top:0}
.hfg-share fieldset{border:0;padding:0;margin:var(--ui2-space-md) 0}
.hfg-share legend{font-weight:750}
.hfg-choice{display:flex;flex-wrap:wrap;gap:var(--ui2-space-sm);margin-top:var(--ui2-space-sm)}
.hfg-choice label{display:flex;min-height:44px;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--ui2-border);border-radius:var(--ui2-radius-sm)}
.hfg-choice input{width:18px;height:18px}
.hfg-share textarea{display:block;min-height:80px;margin-top:6px;resize:vertical}
.hfg-share-preview{padding:var(--ui2-space-md);background:var(--ui2-surface-muted);white-space:pre-line}
.hfg-share [data-share-status]:empty{display:none}
.hfg-section-nav{display:flex;flex-wrap:wrap;gap:8px 24px;padding:var(--ui2-space-sm) 0;border-block:1px solid var(--ui2-border)}
.hfg-section-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:.9rem;font-weight:650}
.hfg-two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ui2-space-xl);scroll-margin-top:100px}
.hfg-two-col>.hfg-section{margin-top:0;border-top:0;padding-top:var(--ui2-space-xl)}
.hfg-comparison-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:var(--ui2-space-lg);margin-top:var(--ui2-space-lg)}
.hfg-compare-item{background:var(--ui2-surface-muted);border-radius:var(--ui2-radius-md)}
.hfg-compare-item>img{width:100%;aspect-ratio:4/3;border-radius:var(--ui2-radius-md) var(--ui2-radius-md) 0 0}
.hfg-compare-item>div{padding:var(--ui2-space-md)}
.hfg-compare-item ul{padding-left:1.2rem;font-size:.92rem;margin-bottom:0}
.hfg-compare-item li+li{margin-top:8px}
.hfg-compare-item .hfg-category-label{margin-top:8px}
.hfg-main blockquote{margin:var(--ui2-space-md) 0;padding:var(--ui2-space-md);border-left:3px solid var(--ui2-atlas-accent);background:var(--hfg-soft);font-size:1.1rem}
.hfg-related{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:var(--ui2-space-xl)}
.hfg-related h3{font-size:1.12rem}
.hfg-related ul{padding-left:1.2rem;margin-bottom:0}
.hfg-related a{display:inline-block;padding:6px 0}
.hfg-feedback{padding:var(--ui2-space-lg) 0;border-top:1px solid var(--ui2-border)}
.hfg-feedback h2{font-size:1rem}
.hfg-feedback [aria-pressed=true]{background:var(--ui2-brand-primary);color:var(--ui2-surface)}
.hfg-review{display:flex;flex-wrap:wrap;gap:var(--ui2-space-sm) var(--ui2-space-xl);align-items:baseline;border-top:1px solid var(--ui2-border);padding-top:var(--ui2-space-md);font-size:.85rem;color:var(--ui2-text-secondary)}
.hfg-review summary{min-height:44px;padding:10px 0;font-weight:650}
.hfg-review details{max-width:100%}
.hfg-review li{margin-block:8px}
.hfg-top{display:inline-flex;align-items:center;min-height:44px;margin-top:var(--ui2-space-lg);font-size:.9rem}
.hfg-dialog{width:min(960px,calc(100% - 24px));max-height:90dvh;padding:var(--ui2-space-lg);border:1px solid var(--ui2-border);border-radius:var(--ui2-radius-md);background:var(--ui2-surface);color:var(--ui2-text-primary)}
.hfg-dialog::backdrop{background:rgb(16 35 63 / .72)}
.hfg-dialog-close{display:flex;margin:0 0 var(--ui2-space-md) auto}
.hfg-dialog img{width:100%;max-height:65dvh;object-fit:contain}
.hfg-dialog figcaption{padding:var(--ui2-space-md)}
.hfg-shopkeeper{max-width:720px}
.hfg-shopkeeper h2{font-size:clamp(2rem,6vw,3.5rem);margin-bottom:8px}
.hfg-shopkeeper>p{font-size:1.2rem}
@media(max-width:1000px){.hfg-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hfg-hero{gap:var(--ui2-space-xl)}}
@media(max-width:800px){.hfg-main{width:calc(100% - 36px)}.hfg-hero{grid-template-columns:minmax(0,1fr) minmax(0,.7fr)}.hfg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hfg-item-hero{grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "media" "clues";grid-template-rows:auto;gap:16px}.hfg-item-hero__media{max-width:580px}.hfg-item-hero__media img{max-height:380px}.hfg-names{grid-template-columns:repeat(2,minmax(0,1fr))}.hfg-two-col{gap:var(--ui2-space-lg)}}
@media(max-width:600px){.hfg-main{padding-top:var(--ui2-space-md)}.hfg-hero{grid-template-columns:minmax(0,1fr);gap:var(--ui2-space-lg);padding-top:0}.hfg-hero--hub .hfg-hero__visual{display:none}.hfg-hero--hub .hfg-category-label{display:none}.hfg-hero--hub>div>p{font-size:.95rem;margin:8px 0}.hfg-hero--hub h1{font-size:1.9rem}.hfg-hero--hub{padding-bottom:0}.hfg-search-caution{font-size:.76rem;margin:2px 0 8px}.hfg-categories{padding-top:8px;gap:6px}.hfg-categories button{padding:6px 10px;font-size:.86rem}.hfg-suggestions{font-size:.8rem;gap:2px 10px;margin-top:4px}.hfg-search__row label{font-size:.86rem}.hfg-search__row>button{padding-inline:10px;font-size:.85rem}.hfg-featured{gap:2px 10px;margin:4px 0 12px}.hfg-featured-links{gap:2px 10px}.hfg-main .hfg-featured h2,.hfg-featured-links a{font-size:.82rem}.hfg-search{padding:var(--ui2-space-md)}.hfg-search__row{grid-template-columns:minmax(0,1fr)}.hfg-main[data-hfg-enhanced] .hfg-search__row{grid-template-columns:minmax(0,1fr) auto}.hfg-main[data-hfg-enhanced] .hfg-search__row>label{grid-column:auto}.hfg-search__row>button{justify-self:start}.hfg-two-col{grid-template-columns:minmax(0,1fr);gap:0}.hfg-two-col>.hfg-section{padding-block:var(--ui2-space-lg)}.hfg-section{padding-block:var(--ui2-space-lg)}.hfg-comparison-grid{grid-template-columns:minmax(0,1fr)}.hfg-compare-item{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:start}.hfg-compare-item>img{border-radius:var(--ui2-radius-md);margin-top:var(--ui2-space-md)}.hfg-utility-actions{gap:var(--ui2-space-sm)}.hfg-actions{gap:8px}.hfg-dialog{padding:var(--ui2-space-md)}.hfg-section-nav{gap:4px 16px}}
@media(max-width:540px){.hfg-grid{grid-template-columns:minmax(0,1fr);gap:var(--ui2-space-md)}.hfg-card{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:stretch}.hfg-card__media{aspect-ratio:auto;border-radius:var(--ui2-radius-md) 0 0 var(--ui2-radius-md);display:flex;align-items:center}.hfg-card__media img{height:auto;aspect-ratio:4/3;padding:6px}.hfg-card__body{padding:12px}.hfg-card__body h3{font-size:1.08rem}.hfg-card__clue{font-size:.84rem}.hfg-card__secondary{font-size:.78rem}.hfg-card .hfg-category-label{font-size:.72rem}}
@media(max-width:430px){.hfg-main{width:calc(100% - 28px)}.hfg-main h1{font-size:2rem}.hfg-compare-item{grid-template-columns:minmax(0,1fr)}.hfg-compare-item>img{margin-top:0;max-height:220px}.hfg-utility-actions>.hfg-actions{width:auto;margin-left:0}.hfg-actions .hfg-button{padding-inline:12px;font-size:.88rem}.hfg-pronunciation .hfg-save{width:auto;min-height:36px;padding:6px 8px}.hfg-hero h1{font-size:1.9rem}}
@media(prefers-reduced-motion:no-preference){.hfg-grid.hfg-results-updated{animation:hfg-reveal .15s cubic-bezier(.16,1,.3,1)}@keyframes hfg-reveal{from{opacity:.55}to{opacity:1}}}
@media(prefers-reduced-motion:reduce){.hfg-main *, .hfg-main *::before,.hfg-main *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.ui2-shell>:not(.hfg-main),.hfg-breadcrumb,.hfg-utility-actions,.hfg-language-bar,.hfg-section-nav,.hfg-feedback,.hfg-top,.hfg-review details,.hfg-dialog,.hfg-main button{display:none!important}.hfg-main{width:100%;padding:0;font-size:10pt}.hfg-main h1{font-size:22pt}.hfg-main h2{font-size:14pt}.hfg-item-hero{grid-template-columns:35% minmax(0,1fr);grid-template-areas:"media title" "media clues";grid-template-rows:auto 1fr;gap:16px}.hfg-item-hero__media img{max-height:220px}.hfg-section{padding-block:12px;margin-top:12px}.hfg-section,.hfg-item-hero,.hfg-alert,.hfg-compare-item{break-inside:avoid}.hfg-names{grid-template-columns:repeat(4,minmax(0,1fr))}.hfg-main a{text-decoration:none;color:inherit}.hfg-comparison-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hfg-compare-item{display:block}.hfg-compare-item>img{max-height:150px}.hfg-main figcaption{font-size:9pt}.hfg-pronunciation{margin-block:8px}.hfg-alert{border:2px solid currentColor}.hfg-main [data-safety-image-caption]{color:inherit}}
.hfg-main .hfg-image-error{padding:12px;font-size:.85rem;background:var(--ui2-surface-muted);color:var(--ui2-text-secondary)}
.hfg-card__media img[data-hfg-image-failed]{display:none}
.hfg-utility-actions>[data-hfg-favorites-status]:empty{display:none}

/* Hallmark review: philosophy4 hierarchy5 execution4 specificity5 restraint5 variety4. */
/* Existing UI2 catalogue, refined for short mobile tasks. */
.hfg-search-examples>summary,.hfg-name-details>summary{min-height:44px;padding:10px 0;font-size:.88rem;font-weight:650}
.hfg-search-examples .hfg-suggestions>span{display:none}
.hfg-name-details{margin-bottom:8px}
.hfg-item-hero__body .hfg-utility-actions{margin:0 0 20px}
.hfg-item-hero__body .hfg-actions--secondary{width:100%;margin-left:0}
.hfg-section-nav a[href="#comparison"]{color:var(--ui2-red-dark);text-decoration-thickness:2px}
.hfg-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.hfg-compare-item{display:block}
.hfg-compare-item>img{margin:0;max-height:210px}
.hfg-compare-item:first-child{border:1px solid var(--ui2-atlas-accent)}
@media(max-width:800px){
 .hfg-hero--hub{grid-template-columns:minmax(0,1fr);padding-block:0}
 .hfg-hero--hub .hfg-hero__visual,.hfg-hero--hub .hfg-category-label{display:none}
 .hfg-main[data-hfg-hub]{padding-top:8px}
 .hfg-main .hfg-hero--hub h1{font-size:1.65rem}
 .hfg-hero--hub>div>p:not(.hfg-category-label){font-size:.88rem;margin:6px 0 8px}
 .hfg-main[data-hfg-enhanced] .hfg-category-select{display:grid;grid-column:1/-1;grid-row:2;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px}
 .hfg-main[data-hfg-enhanced] .hfg-search__row>button{grid-column:2;grid-row:1}
 .hfg-search__row{gap:8px}
 .hfg-search :is(input[type=search],select){padding:10px;min-height:44px}
 .hfg-categories{display:none}
 .hfg-search{margin-top:8px;padding:12px}
 .hfg-search-caution{margin:0;font-size:.78rem}
 .hfg-featured{margin:4px 0 8px}
 .hfg-section-heading{gap:4px;margin-bottom:12px}
 .hfg-section-heading p{font-size:.82rem}
 .hfg-comparison-grid{gap:10px}
 .hfg-compare-item>div{padding:10px}
 .hfg-main .hfg-compare-item h3{font-size:1rem;text-wrap:wrap}
 .hfg-compare-item ul{font-size:.84rem;padding-left:1rem}
 .hfg-compare-item>img{max-height:160px}
 .hfg-compare-item .hfg-category-label{font-size:.76rem}
 .hfg-item-hero__media img{max-height:280px}
 .hfg-breadcrumb{margin-bottom:8px}
}
@media(prefers-reduced-motion:no-preference){.hfg-save,.hfg-categories button{transition:background-color .15s ease,color .15s ease,border-color .15s ease}}
@media print{.hfg-name-details:not([open])>dl{display:grid}.hfg-name-details>summary{display:none}.hfg-search-examples{display:none}}

.hfg-compare-control{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;font-size:.9rem;font-weight:650}.hfg-compare-control select{min-height:44px;padding:8px 12px;flex:1;min-width:0;border:1px solid var(--ui2-border);border-radius:var(--ui2-radius-sm);background:var(--ui2-surface)}.hfg-compare-item h3{min-height:2.7em}.hfg-compare-item .hfg-category-label{min-height:1.5em}

.hfg-featured{padding:0}.hfg-featured>details{width:100%}.hfg-featured summary,.hfg-comparison-note summary{min-height:44px;padding:10px 4px;color:var(--ui2-brand-primary);font-size:.88rem;font-weight:650}.hfg-featured-links{padding:0 4px 8px}.hfg-comparison-note{margin-top:12px}.hfg-comparison-note p{margin-top:0}
@media print{.hfg-compare-control{display:none!important}.hfg-name-details::details-content,.hfg-comparison-note::details-content{content-visibility:visible}.hfg-comparison-note>p{display:block}.hfg-comparison-note>summary{display:none}}

/* Task-focused refinement: readable clues, shared comparison rows, visible image actions. */
.hfg-image-button{position:relative;display:block;width:100%;padding:0;border:0;border-radius:var(--ui2-radius-md);background:transparent;color:var(--ui2-brand-primary);cursor:zoom-in}
.hfg-image-button:disabled{cursor:default}
.hfg-image-button img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:inherit}
.hfg-image-button:not(:disabled)::after{content:'＋';position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--ui2-border);border-radius:50%;background:var(--ui2-surface);font-size:1.3rem;font-weight:650}
.hfg-image-button:focus-visible{outline-offset:-4px}
.hfg-image-button:hover:not(:disabled)::after{background:var(--ui2-brand-primary);color:var(--ui2-surface)}
.hfg-compare-item{display:grid;grid-template-rows:subgrid;grid-row:span 6;gap:0;min-width:0}
.hfg-compare-item:first-child{border:0;box-shadow:inset 0 0 0 1px var(--ui2-atlas-accent)}
.hfg-compare-item>.hfg-image-button{border-radius:var(--ui2-radius-md) var(--ui2-radius-md) 0 0}
.hfg-compare-item>.hfg-image-button img{max-height:220px}
.hfg-compare-item>.hfg-compare-heading{padding:12px}
.hfg-compare-item h3{min-height:0}
.hfg-compare-item .hfg-category-label{margin:0 0 4px;min-height:0}
.hfg-compare-item>.hfg-compare-facts{display:grid;grid-template-rows:subgrid;grid-row:span 3;list-style:none;padding:0;margin:0;font-size:.9rem;line-height:1.65}
.hfg-compare-facts li{padding:10px 12px;border-top:1px solid var(--ui2-border)}
.hfg-compare-facts li+li{margin-top:0}
.hfg-compare-facts strong{display:block;font-size:.8rem;color:var(--ui2-text-secondary);margin-bottom:4px}
.hfg-compare-blank{border-top:0!important}
.hfg-compare-extra{margin:0;padding:0 12px 12px;font-size:.85rem;line-height:1.6}
.hfg-compare-extra:empty{padding:0}
.hfg-compare-status:empty{display:none}
.hfg-compare-status{font-size:.85rem;margin:8px 0 0;color:var(--ui2-text-secondary)}
.hfg-helper-note{margin:12px 0 24px;padding:0 16px;border:1px solid var(--ui2-border);border-radius:var(--ui2-radius-sm)}
.hfg-helper-note summary{min-height:44px;padding:10px 0;font-weight:650}
.hfg-two-col:has(>section:only-child){grid-template-columns:minmax(0,1fr);max-width:72ch}
.hfg-card__secondary{font-size:.875rem}.hfg-card__clue{font-size:.9375rem;line-height:1.65}
.hfg-search-caution{font-size:.8125rem;line-height:1.6}
@media(min-width:801px){
 .hfg-main[data-hfg-hub]{padding-top:20px}
 .hfg-hero--hub .hfg-hero__visual img{max-height:100px}
 .hfg-hero--hub h1{font-size:clamp(2rem,3.6vw,3rem)}
 .hfg-hero--hub>div>p:not(.hfg-category-label){margin:8px 0;font-size:1rem}
 .hfg-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;margin-top:8px}
 .hfg-search__row{grid-column:1/-1}
 .hfg-categories{grid-column:1/-1;grid-row:2;padding-top:8px;border-top:0}
 .hfg-search-examples{grid-column:1;grid-row:3}
 .hfg-favorites-filter{grid-column:2;grid-row:3;margin:0}
 .hfg-favorites-filter>summary{min-height:44px;padding:10px 0}
 .hfg-search-caution{grid-column:1/-1;grid-row:4;margin:0}
 .hfg-featured{margin:4px 0 8px}
 .hfg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hfg-card{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
 .hfg-card__media{aspect-ratio:auto;display:flex;align-items:center;border-radius:var(--ui2-radius-md) 0 0 var(--ui2-radius-md)}
 .hfg-card__media img{height:auto;aspect-ratio:4/3;padding:8px}
 .hfg-card h3{font-size:1.3rem}
}
@media(max-width:800px){
 .hfg-compare-item>.hfg-image-button img{max-height:180px}
 .hfg-card__secondary{font-size:.875rem}.hfg-card__clue{font-size:.9375rem}
 .hfg-compare-item>.hfg-compare-facts{font-size:.9rem}
}
@media(min-width:601px) and (max-width:800px){
 .hfg-card{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr)}
 .hfg-card__media{aspect-ratio:auto;display:flex;align-items:center;border-radius:var(--ui2-radius-md) 0 0 var(--ui2-radius-md)}
 .hfg-card__media img{height:auto;aspect-ratio:4/3;padding:4px}
 .hfg-card__body{padding:12px}.hfg-card h3{font-size:1.08rem}
}
@media print{
 .hfg-main .hfg-image-button{display:block!important;border:0}.hfg-image-button::after{display:none!important}
 .hfg-compare-status{display:none!important}.hfg-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hfg-helper-note::details-content{content-visibility:visible}.hfg-helper-note>p{display:block}
 .hfg-compare-item{display:block}.hfg-compare-item>.hfg-compare-facts{display:block}
}
