/* The new layout is enabled only for reviewed guides and author profile pages. */
.c212-guide-editorial,.c212-author-page{--editorial-accent:var(--detail-accent,#a5363a);--editorial-ink:var(--text,#172e45);--editorial-muted:var(--muted,#566777);--editorial-line:var(--border,#dfe4e8);color:var(--editorial-ink)}
.c212-feature-kicker{color:var(--editorial-accent);font-size:12px;font-weight:700;letter-spacing:.09em;margin:0 0 12px;line-height:1.5}
.c212-feature-byline{margin:0 0 22px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--editorial-line);padding-top:20px}
.c212-feature-author{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:14px}
.c212-feature-author .c212-author-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:center 32%;flex-shrink:0}
.c212-feature-author strong{font-weight:700;color:var(--editorial-accent)}
.c212-feature-author small{display:block;color:var(--editorial-muted);margin-top:3px;font-size:12px}
.c212-feature-dates{display:grid;gap:5px;font-size:12px;line-height:1.5;color:var(--editorial-muted)}
.c212-guide-editorial .c212-feature-photo{margin:0 0 22px}
.c212-feature-photo>img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid var(--editorial-line)}
.c212-feature-photo figcaption{font-size:12px;line-height:1.5;color:var(--editorial-muted);margin-top:8px}
.c212-guide-editorial .c212-article-share{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:14px 0;margin:0 0 26px;border-block:1px solid var(--editorial-line)}
.c212-guide-editorial .c212-article-share>span:first-child{font-size:13px;font-weight:700;margin-inline-end:5px}
.c212-guide-editorial .c212-share-button{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;border:1px solid var(--editorial-line);border-radius:50%;background:var(--surface,#fff);color:var(--editorial-ink);padding:11px;cursor:pointer}
.c212-guide-editorial .c212-share-button:hover{background:var(--editorial-accent);color:#fff;border-color:var(--editorial-accent)}
.c212-guide-editorial .c212-share-button svg{width:20px;height:20px}
.c212-guide-editorial .c212-share-status{font-size:13px;width:100%;color:var(--editorial-muted)}
.c212-guide-editorial .c212-share-status:empty{display:none}
.c212-guide-editorial .c212-share-fallback{width:100%;padding:10px;border:1px solid var(--editorial-line);background:var(--surface,#fff);color:inherit}
.c212-editorial-toc{margin:0 0 34px;border:1px solid var(--editorial-line);border-top:4px solid var(--editorial-accent);border-radius:12px;background:var(--surface-soft,#f5f7fa);overflow:hidden}
.c212-editorial-toc summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:20px 24px;min-height:64px}
.c212-editorial-toc summary::-webkit-details-marker{display:none}
.c212-editorial-toc h2{font-size:22px;margin:0;color:var(--editorial-ink)}
.c212-toc-symbol{font-size:25px;color:var(--editorial-accent);line-height:1}
.c212-toc-toggle{margin-inline-start:auto;font-size:24px;line-height:1;transform:rotate(180deg)}
.c212-editorial-toc details:not([open]) .c212-toc-toggle{transform:none}
.c212-editorial-toc ol{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;list-style:none;padding:0 24px 20px;margin:0;counter-reset:editorial-toc}
.c212-editorial-toc li{counter-increment:editorial-toc;margin:0;min-width:0}
.c212-editorial-toc a{display:flex;align-items:baseline;gap:10px;min-height:44px;padding:11px 0;border-top:1px solid var(--editorial-line);font-size:14px;line-height:1.5;color:var(--editorial-ink);text-decoration:none}
.c212-editorial-toc a::before{content:counter(editorial-toc,decimal-leading-zero);color:var(--editorial-accent);font-weight:700;font-size:12px}
.c212-editorial-toc a:hover{text-decoration:underline;text-underline-offset:3px}
.c212-author-band{display:grid;grid-template-columns:104px minmax(0,1fr);gap:24px;align-items:start;background:var(--surface-soft,#f7f3f2);border:1px solid var(--editorial-line);border-top:3px solid var(--editorial-accent);border-radius:14px;padding:28px;margin:38px 0}
.c212-author-portrait img{width:104px;height:124px;object-fit:cover;object-position:center 28%;border-radius:12px}
.c212-author-band .c212-feature-kicker{font-size:10px;margin-bottom:8px}
.c212-author-band h2{font-size:24px;margin:0 0 10px;line-height:1.25}
.c212-author-band h2 a{color:var(--editorial-ink);text-decoration:none}
.c212-author-band p:not(.c212-feature-kicker){font-size:15px;line-height:1.7;margin:0 0 12px;color:var(--editorial-muted)}
.c212-profile-link{font-size:14px;line-height:1.6;font-weight:700;color:var(--editorial-accent);display:inline-block;padding:5px 0;text-decoration:underline;text-underline-offset:4px}
.c212-guide-suggestions{margin:40px 0}
.c212-guide-suggestions>h2{font-size:20px;line-height:1.4;margin:0 0 20px;color:var(--editorial-ink)}
.c212-suggestion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.c212-suggestion-card{display:flex;flex-direction:column;border:1px solid var(--editorial-line);border-radius:12px;overflow:hidden;color:var(--editorial-ink);background:var(--surface,#fff);text-decoration:none;min-width:0}
.c212-suggestion-card>img,.c212-suggestion-icon{width:100%;height:148px;object-fit:cover;display:block;background:var(--surface-soft,#f5f7fa)}
.c212-suggestion-icon{padding:45px;text-align:center}
.c212-suggestion-icon svg{width:46px;height:46px}
.c212-suggestion-card>span:not(.c212-suggestion-icon){display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:18px}
.c212-suggestion-card small{font-size:10px;letter-spacing:.06em;color:var(--editorial-accent);font-weight:700}
.c212-suggestion-card h3{font-size:18px;line-height:1.4;margin:10px 0 18px}
.c212-suggestion-card b{font-size:12px;font-weight:600;margin-top:auto;color:var(--editorial-accent)}
.c212-suggestion-card:hover{border-color:var(--editorial-accent)}
.c212-guide-newsletter{margin:42px 0 0}
.c212-guide-editorial .c212-guide-newsletter .newsletter-band{position:relative;isolation:isolate;display:block;padding:32px;border-radius:16px;background:#17344f;color:#fff;margin:0;border:0}
.c212-guide-editorial .c212-guide-newsletter .newsletter-band::before{content:"";position:absolute;z-index:-1;inset:0;border-radius:inherit;background:url('../optimized/canal212-arabesque-white.webp') left center/auto 150% repeat;opacity:.13;mask-image:linear-gradient(90deg,#000,transparent);pointer-events:none}
.c212-guide-editorial .c212-guide-newsletter .newsletter-intro{width:100%;max-width:none;min-width:0}
.c212-guide-editorial .c212-guide-newsletter .c212-newsletter-reassurance{color:#e2eaf1;font-size:13px;line-height:1.6;margin:18px 0 0}
html[dir=rtl] .c212-guide-editorial .c212-guide-newsletter .newsletter-band::before{transform:scaleX(-1)}
.c212-guide-editorial .c212-guide-newsletter .newsletter-intro h2{font-size:29px;line-height:1.25;margin:0 0 12px;color:#fff;max-width:none;text-wrap:wrap;overflow-wrap:break-word}
.c212-guide-editorial .c212-guide-newsletter .newsletter-intro p{color:#e2eaf1;font-size:16px;line-height:1.65;margin:0 0 24px;max-width:none;text-wrap:wrap}
.c212-guide-editorial .c212-guide-newsletter .newsletter-signup{max-width:none;width:100%}
.c212-guide-editorial .c212-guide-newsletter .newsletter-fields{display:flex;gap:12px;align-items:flex-end}
.c212-guide-editorial .c212-guide-newsletter .newsletter-email{flex:1;min-width:0}
.c212-newsletter-label{display:block;font-size:13px;font-weight:600;color:#fff;margin-bottom:8px}
.c212-guide-editorial .c212-guide-newsletter .newsletter-fields input{width:100%;min-height:50px;background:#fff;border:1px solid #cbd4dc;color:#162c40;border-radius:8px;font-size:16px;padding:12px}
.c212-guide-editorial .c212-guide-newsletter .newsletter-fields button{min-height:50px;padding:12px 24px;border:0;border-radius:8px;background:#b5333d;color:#fff;font-weight:700;cursor:pointer}
.c212-guide-editorial .c212-guide-newsletter .newsletter-consent{color:#e2eaf1;font-size:12px;line-height:1.6;display:flex;align-items:flex-start;gap:10px;margin:18px 0 0}
.c212-guide-editorial .c212-guide-newsletter .newsletter-consent input{flex-shrink:0;min-width:20px;width:20px;height:20px;accent-color:#b5333d;margin:0}
.c212-guide-editorial .c212-guide-newsletter .newsletter-consent a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.c212-guide-editorial .c212-guide-newsletter .newsletter-benefits{margin-top:22px;border-top:1px solid #496075;padding-top:18px;color:#e2eaf1;display:flex;flex-wrap:wrap;gap:20px;font-size:12px}
.c212-guide-editorial .c212-guide-newsletter .newsletter-status{color:#fff;font-size:14px}
.c212-guide-editorial a:focus-visible,.c212-guide-editorial button:focus-visible,.c212-guide-editorial summary:focus-visible,.c212-author-page a:focus-visible{outline:3px solid var(--editorial-accent);outline-offset:4px}
.c212-guide-editorial .c212-guide-newsletter .newsletter-band :focus-visible{outline:3px solid #fff;outline-offset:4px}
.c212-author-page{padding-top:28px;padding-bottom:70px}
.c212-profile-breadcrumb{font-size:13px;color:var(--editorial-muted);margin-bottom:36px;display:flex;gap:10px}
.c212-profile-breadcrumb a{color:inherit}
.c212-profile-layout{max-width:1050px;margin:auto;display:grid;grid-template-columns:320px minmax(0,1fr);gap:56px;align-items:start}
.c212-profile-photo{display:block;width:100%;height:auto;border-radius:16px}
.c212-profile-layout h1{font-size:clamp(34px,4vw,54px);line-height:1.15;margin:0 0 12px;color:var(--editorial-ink)}
.c212-profile-role{color:var(--editorial-muted);font-size:18px;margin:0 0 28px}
.c212-profile-layout .entry-content{font-size:17px;line-height:1.8;color:var(--editorial-ink)}
.c212-profile-layout .entry-content p{margin:0 0 18px}
.c212-profile-guides{border-top:1px solid var(--editorial-line);padding-top:24px;margin-top:32px}
.c212-profile-guides h2{font-size:24px;line-height:1.3;margin:0 0 14px}
.c212-profile-guides>a{display:block;padding:14px 0;color:var(--editorial-accent);font-weight:600;text-decoration:none;line-height:1.6}
[dir=rtl] .c212-feature-kicker,[dir=rtl] .c212-suggestion-card small{letter-spacing:0}
@media(max-width:760px){
 .c212-feature-byline{gap:16px;align-items:flex-start}
 .c212-feature-dates{width:100%;grid-template-columns:1fr;gap:3px}
 .c212-feature-photo>img{border-radius:10px}
 .c212-editorial-toc summary{padding:17px}
 .c212-editorial-toc ol{grid-template-columns:1fr;padding:0 17px 16px}
 .c212-author-band{grid-template-columns:72px minmax(0,1fr);gap:16px;padding:20px}
 .c212-author-portrait img{width:72px;height:88px}
 .c212-author-band h2{font-size:22px}
 .c212-suggestion-grid{grid-template-columns:1fr;gap:14px}
 .c212-suggestion-card{display:grid;grid-template-columns:110px minmax(0,1fr)}
 .c212-suggestion-card>img,.c212-suggestion-icon{height:100%;min-height:150px;width:110px}
 .c212-suggestion-card>span:not(.c212-suggestion-icon){padding:16px}
 .c212-suggestion-card h3{font-size:18px;margin:6px 0 12px}
 .c212-guide-editorial .c212-guide-newsletter .newsletter-band{padding:24px 20px}
 .c212-guide-editorial .c212-guide-newsletter .newsletter-band::before{background-image:url('../optimized/canal212-arabesque-white-small.webp');mask-image:none;opacity:.1}
 .c212-guide-editorial .c212-guide-newsletter .newsletter-intro h2{font-size:27px}
 .c212-guide-editorial .c212-guide-newsletter .newsletter-fields{flex-direction:column;align-items:stretch}
 .c212-guide-editorial .c212-guide-newsletter .newsletter-fields button{width:100%}
 .c212-guide-editorial .c212-guide-newsletter .newsletter-benefits{gap:14px}
 .c212-profile-layout{grid-template-columns:1fr;gap:28px}
 .c212-profile-layout>header{max-width:260px}
}
@media print{.c212-guide-editorial .c212-article-share,.c212-guide-newsletter,.c212-guide-suggestions{display:none!important}.c212-author-band{break-inside:avoid}.c212-editorial-toc{break-inside:avoid}}

/* Preserve comfortable touch targets alongside the existing share colours. */
html body.c212-wordpress .c212-guide-editorial .c212-share-button{width:44px;height:44px;min-height:44px;border-radius:12px}

/* Let guide paragraphs and lists use the full article column beside the sidebar. */
html body.guide-directory-page .c212-guide-editorial .c212-guide-body>p,
html body.guide-directory-page .c212-guide-editorial .c212-guide-body>ul,
html body.guide-directory-page .c212-guide-editorial .c212-guide-body>ol{max-width:none}

/* Shared guide features retain the existing page columns and heading styles. */
.c212-team-avatar{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;flex-shrink:0;border-radius:50%;background:#a5363a;color:#fff!important;font-weight:800;font-size:18px}
.c212-author-band-team .c212-author-portrait img{object-fit:contain;background:#fff;padding:8px}
.c212-guide-editorial .c212-feature-photo>img{max-height:480px;object-fit:contain;background:var(--surface-soft,#f5f7fa)}
.c212-guide-editorial .c212-guide-toc .toc-level-3 a{padding-inline-start:16px}
.c212-guide-editorial #guide-information{scroll-margin-top:210px}

.c212-guide-editorial .c212-guide-toc .c212-toc-more{border-top:1px solid var(--border);margin-top:12px}
.c212-guide-editorial .c212-guide-toc .c212-toc-more>summary{font-size:14px}

/* Keep author portraits beside the biography and guide list on wide screens. */
@media screen and (min-width:761px){
 .c212-author-page{--c212-profile-sticky-top:80px}
 body.admin-bar .c212-author-page{--c212-profile-sticky-top:112px}
 .c212-author-page .c212-profile-layout>header{position:sticky;top:var(--c212-profile-sticky-top);align-self:start}
 .c212-author-page .c212-profile-photo{width:auto;max-width:100%;max-height:calc(100vh - var(--c212-profile-sticky-top) - 24px);max-height:calc(100svh - var(--c212-profile-sticky-top) - 24px)}
}
@media screen and (min-width:761px) and (max-width:782px){
 body.admin-bar .c212-author-page{--c212-profile-sticky-top:126px}
}
