/* Franchise Rehberi: layout only. Type, colour, buttons, cards and motion come from the v2 layer in styles.css. */
/* Listing */
.guide-intro-copy .v2-link{margin-top:24px}
.guide-library{padding-bottom:var(--v2-pad)}
.guide-opening{padding-bottom:0}
.guide-controls{margin-bottom:0;padding-block:24px;border-block:1px solid var(--line)}
.guide-finder{max-width:520px}
.guide-category-nav{margin-top:16px}
.guide-category-nav .catalog-chip[aria-current=page]{background:var(--brand);border-color:var(--brand);color:var(--paper)}
.guide-feature{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:clamp(420px,56vw,640px);margin-bottom:clamp(32px,4vw,56px);padding:clamp(24px,4vw,56px);overflow:hidden}
.guide-feature-photo{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--v2-out)}
.guide-feature:hover .guide-feature-photo{transform:scale(1.03)}
.guide-feature::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,color-mix(in srgb,var(--ink) 92%,transparent) 0,color-mix(in srgb,var(--ink) 70%,transparent) 42%,color-mix(in srgb,var(--ink) 18%,transparent) 100%)}
.guide-feature-body{display:grid;gap:12px;max-width:44rem}
.guide-feature .v2-body{color:var(--on-dark)}
.guide-feature .v2-link{width:fit-content}
.guide-search{flex:0 1 360px;min-width:0}
.guide-search label{display:block;margin-bottom:8px;color:var(--muted)}
.guide-search>div{display:flex;border:1px solid var(--field-border);background:var(--stone);transition:background-color .2s,border-color .2s}
.guide-search>div:focus-within{background:var(--paper);border-color:var(--ink)}
.guide-search input{flex:1;min-width:0;min-height:48px;padding:12px 14px;border:0;border-radius:0;background:none;color:var(--ink);font-size:16px;caret-color:var(--ink)}
.guide-search input::placeholder{color:var(--muted);opacity:1}
.guide-search button{display:flex;align-items:center;justify-content:center;width:52px;flex-shrink:0;border:0;background:var(--accent);color:var(--on-accent);transition:background-color .2s}
.guide-search button:hover{background:var(--accent-hover)}
.guide-search button .icon{width:20px;height:20px}
.guide-results-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding-block:32px;overflow-wrap:anywhere}
.guide-results-heading>p{flex-shrink:0;font-variant-numeric:tabular-nums}
.guide-card{min-width:0}
.guide-card-excerpt{display:block;margin-top:12px;max-width:44ch}
.guide-card-art{display:flex;align-items:flex-end;aspect-ratio:16/10;padding:24px;background:var(--stone);color:var(--brand);font-family:var(--font-display);font-size:var(--fs-title);line-height:1.2;text-transform:uppercase}
.guide-pagination:empty{display:none}
.guide-pagination{margin-top:56px}
.guide-pagination .nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.guide-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:0 16px;border:1px solid var(--line-strong);font-size:var(--fs-small);font-weight:600}
.guide-pagination .current,.guide-pagination a:hover{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.guide-empty .v2-body{margin-top:16px;color:var(--muted)}
.guide-empty .v2-link{margin-top:16px}
.guide-help .v2-head{margin-bottom:0;align-items:center}
.guide-help .v2-body{margin-top:24px;max-width:52ch}
.guide-help .v2-button{flex-shrink:0}

/* Article */
.guide-article-header h1{max-width:22ch;overflow-wrap:anywhere}
.guide-article-header .v2-lead{max-width:60ch}
.guide-cover h1{max-width:20ch;overflow-wrap:anywhere}
.guide-cover .v2-label{margin-bottom:12px}
.guide-cover .v2-lead{margin-top:20px}
.guide-progress{display:none}
@supports(animation-timeline:scroll()){@media(prefers-reduced-motion:no-preference){
.guide-progress{display:block;position:fixed;inset:0 0 auto 0;z-index:200;height:4px;background:var(--brand);transform:scaleX(0);transform-origin:0 50%;animation:guide-read linear both;animation-timeline:scroll(root)}
@keyframes guide-read{to{transform:scaleX(1)}}}}
.guide-reading-layout{padding-block:var(--v2-pad)}
.guide-reading-main{min-width:0;max-width:68ch}
.guide-article-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 24px;margin-top:56px;padding-top:16px;border-top:1px solid var(--line)}
.guide-content-pages{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:32px;font-size:var(--fs-small)}
.guide-content-pages>a,.guide-content-pages>span{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;border:1px solid var(--line-strong)}
.guide-content-pages>.current{background:var(--accent);color:var(--on-accent)}
.guide-related{padding-top:0}
.guide-next .v2-head{margin-bottom:0;align-items:center}
.guide-next .v2-button{flex-shrink:0}

/* Long-form body comes from the shared .v2-prose; only WordPress block extras stay here. */
.guide-prose{overflow-wrap:break-word}
.guide-prose img{height:auto;max-width:100%}
.guide-prose figure{margin-inline:0}
.guide-prose :is(iframe,video){max-width:100%}
.guide-prose .wp-block-embed__wrapper iframe{width:100%;height:auto;aspect-ratio:16/9}
.guide-prose :is(.wp-element-button,.wp-block-button__link){display:inline-flex;align-items:center;min-height:52px;padding:14px 22px;border-radius:0;background:var(--accent);color:var(--on-accent);font-size:16px;font-weight:600;text-decoration:none}
.guide-prose :is(.alignleft,.alignright){max-width:50%;margin-block:8px 20px}
.guide-prose .alignleft{float:left;margin-right:24px}
.guide-prose .alignright{float:right;margin-left:24px}
.guide-prose::after{content:"";display:table;clear:both}

@media(max-width:760px){.guide-help .v2-button,.guide-next .v2-button{margin-top:32px;width:100%}.guide-feature{min-height:440px;padding:24px var(--space,24px)}.guide-prose :is(.alignleft,.alignright){float:none;max-width:100%;margin-inline:0}}

/* Short generic pages (404, search) load guide.css for the search box: give them presence above the footer. */
.short-page{min-height:72svh}
.short-page-grid{align-items:start}
.search-help{display:grid;gap:40px;min-width:0}
.search-help .guide-search{width:100%;max-width:none;margin:0;flex:none}
.search-help-links .v2-label{margin-bottom:8px;color:var(--muted)}
.short-page-results{margin-top:clamp(32px,4vw,56px)}
.short-page .content-type{display:block;margin-bottom:6px;color:var(--muted)}
.short-page .content-type+.v2-h3{margin-top:4px}
