/*
 * WordPress integration layer for HaPantheon.
 * The visual system lives in pantheon.css; this file connects native WordPress
 * markup, menus, pagination, forms and editor output to that system.
 */

/* Core document and WordPress utility classes */
.site-main{min-height:60vh}
.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.screen-reader-text:focus,.skip-link:focus{position:fixed!important;z-index:10000;top:12px;left:12px;width:auto!important;height:auto!important;clip:auto!important;padding:12px 18px!important;margin:0!important;background:var(--srf);color:var(--ink);border:2px solid var(--teal);font-weight:700;white-space:normal!important}
.alignleft{float:left;margin:0 1.5em 1em 0}
.alignright{float:right;margin:0 0 1em 1.5em}
.aligncenter{display:block;margin-inline:auto}
.alignwide{width:min(1080px,calc(100vw - 48px));max-width:none;margin-inline:calc((100% - min(1080px,calc(100vw - 48px)))/2)}
.alignfull{width:100vw;max-width:none;margin-inline:calc(50% - 50vw)}
.wp-caption,.gallery-caption{max-width:100%}
.wp-caption-text{color:var(--mut);font-size:.85rem;margin-top:.5em}
.sticky{position:relative}
.bypostauthor{outline:1px solid color-mix(in srgb,var(--gold) 35%,transparent)}

/* Logged-in toolbar */
.admin-bar .nav{top:32px}
.admin-bar .mmodal,.admin-bar .smodal{top:32px}
@media(max-width:782px){
	.admin-bar .nav{top:46px}
	.admin-bar .mmodal,.admin-bar .smodal{top:46px}
}
@media(max-width:600px){
	#wpadminbar{position:fixed}
}

/* Header, logo and native menu output */
.primary-navigation{margin-inline-start:auto}
.links{list-style:none;margin:0;padding:0;align-items:center}
.links>li{position:relative;margin:0}
.links a{display:block}
.links .current-menu-item>a::after,
.links .current_page_item>a::after,
.links .current-menu-ancestor>a::after{transform:scaleX(1)}
.links .sub-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:100;display:none;min-width:210px;list-style:none;margin:0;padding:9px;background:var(--srf);border:1px solid var(--line);box-shadow:0 20px 50px -24px rgba(0,0,0,.45)}
.links li:hover>.sub-menu,.links li:focus-within>.sub-menu{display:block}
.links .sub-menu li{margin:0}
.links .sub-menu a{padding:10px 12px;white-space:nowrap}
.links .sub-menu a::after{display:none}
.custom-logo{width:auto;max-width:180px;max-height:48px;object-fit:contain}
.brand:has(.custom-logo)>span{display:none}
.nav-in>.search-btn{margin-inline-start:2px}
@media(max-width:980px){
	.primary-navigation{display:none}
}

/* Full-layout block pages should not inherit generic post spacing */
.full-design-page>.wp-block-html{margin:0}
.full-design-page .wp-block-html>section:first-child{margin-top:0}
.full-design-page>p:empty{display:none}

/* Page and article content */
.page-content{max-width:820px;padding:54px 0 90px}
.page-content>*+*{margin-top:1.25em}
.page-content h2,.page-content h3,.page-content h4{color:var(--ink);margin-top:1.8em}
.page-content ul,.page-content ol{padding-inline-start:1.4em}
.page-content a:not(.btn-teal):not(.btn-gold):not(.btn-line){color:var(--teal);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.article-feature-wrap,.recipe-feature-wrap{max-width:880px}
.article-content{max-width:720px}
.magazine-content{padding-top:54px}
.compact-article-hero{padding-bottom:16px}
.sidebar-feature{margin-bottom:34px}
.recipe-after{max-width:880px;padding-top:10px;padding-bottom:70px}
.art-body .wp-block-image{margin:2em 0}
.art-body .wp-block-image img{width:100%;height:auto}
.art-body blockquote{margin:2.2em 0;padding:10px 28px;border-inline-start:3px solid var(--gold);font-size:1.25rem;font-weight:700;color:var(--ink)}
.art-body pre,.art-body code{direction:ltr;text-align:left}
.art-body iframe{max-width:100%}
.art-body a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.art-body .share-row a,.art-body .prevnext a{text-decoration:none}
.article-content .wp-block-group.alignwide{margin-inline:calc((100% - min(1080px,calc(100vw - 48px)))/2)}
.page-links{display:flex;gap:8px;align-items:center;margin-top:30px}

/* Dynamic archives */
.archive-shell{position:relative}
.archive-tabs{overflow-x:auto;justify-content:center;scrollbar-width:thin}
.archive-tabs .tab{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.archive-pagination{padding:0 0 90px}
.archive-pagination .nav-links{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.archive-pagination .page-numbers{display:grid;place-items:center;min-width:44px;height:44px;padding:0 13px;border:1px solid var(--line);background:var(--srf);color:var(--mut);font-weight:700}
.archive-pagination .page-numbers.current{background:var(--grad-gold);border-color:transparent;color:#241A04}
.archive-pagination a.page-numbers:hover{border-color:var(--gold);color:var(--gold-ink)}
.empty-archive{margin:10px auto 90px;padding:60px 30px;text-align:center;background:var(--srf);border:1px solid var(--line)}
.empty-archive>svg{width:54px;height:54px;color:var(--gold);margin:0 auto 18px}
.empty-archive h2{font-size:1.8rem}
.empty-archive p{color:var(--mut);margin:8px auto 24px}
.entry-media img{width:100%;height:100%;object-fit:cover}
.entry-cat.recipes{color:#93680d}
.entry-cat.oracle{color:var(--teal)}

/* Search forms and modal */
.smodal .smodal-in{position:relative;width:min(760px,100%);text-align:center;color:#EAF4F0;transform:translateY(24px) scale(.98);transition:transform .4s var(--ease)}
.smodal.open .smodal-in{transform:none}
.search-form{display:flex;align-items:stretch;max-width:680px;margin:0 auto}
.search-form label{flex:1}
.search-form .search-field{width:100%;height:58px;padding:0 20px;font:inherit;font-size:1rem;color:var(--ink);background:var(--srf);border:1px solid var(--line);border-inline-end:0}
.search-form .search-submit{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:120px;padding:0 18px;background:var(--teal);color:#fff;font-weight:800}
.search-form .search-submit svg{width:18px;height:18px}
.smodal .search-form{margin-bottom:28px}
.smodal .search-field{height:64px;color:#F4FBF7;background:rgba(255,255,255,.07);border:1px solid rgba(234,201,124,.4)}
.smodal .search-field::placeholder{color:#90B1AD}
.smodal .search-submit{background:var(--grad-gold);color:#241A04}
.smodal .scats{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
.smodal .scats a{display:flex;align-items:center;gap:8px;padding:8px 16px;border:1px solid rgba(234,201,124,.35);border-radius:99px;color:#F2E6C4}
.smodal .scats .num{color:#EAC97C}
.smodal .meander{max-width:220px;margin:30px auto 0}
.smodal-close{z-index:2}
@media(max-width:560px){
	.search-form{flex-direction:column}
	.search-form .search-field{border-inline-end:1px solid var(--line)}
	.search-form .search-submit{height:50px}
}

/* Native forms and bundled functional forms */
input,textarea,select{font:inherit}
.cform input,.cform textarea,.cform select{
	width:100%;
	color:var(--ink);
	background:var(--srf);
	border:1px solid var(--line);
	border-radius:0;
}
.cform input:focus,.cform textarea:focus,.cform select:focus{outline:2px solid var(--teal);outline-offset:1px;border-color:var(--teal)}
.cform .btn-teal{width:100%;justify-content:center}
.cform .btn-teal svg,.news-form button svg{width:16px;height:16px}
.cform .en{text-align:start}
.hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.form-status{min-height:1.5em;margin-top:12px;font-weight:700}
.form-status.success{color:var(--teal)}
.form-status.error{color:#A3352B}
.news-form{display:flex;gap:10px;justify-content:center;max-width:560px;margin:24px auto 0}
.news-form>input[type="email"]{flex:1;min-width:0;padding:13px 18px;font:inherit;color:var(--ink);background:var(--srf);border:1px solid var(--line)}
.news-form>button{white-space:nowrap}
.fnews .news-form{display:block;margin:0}
.fnews .news-form input{border-color:rgba(234,201,124,.35)}
.fnews .form-status{color:#EAC97C;font-size:.85rem}
.consent a{color:var(--teal);font-weight:700}
@media(max-width:560px){
	.news-form{flex-direction:column}
	.news-form>button{justify-content:center}
}

/* Author, sharing and navigation additions */
.share-row button{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;color:var(--mut);transition:all .2s}
.share-row button:hover{color:var(--teal);border-color:var(--teal)}
.side-box .share-row{padding:0;border:0;justify-content:flex-start}
.side-box .share-row>span{display:none}
.side-box .share-row a,.side-box .share-row button{width:38px;height:38px}
.side-box .share-row svg{width:17px;height:17px}
.author-box img.avatar{object-fit:cover}
.prevnext:has(.pn:only-child){grid-template-columns:1fr}
.float-bar button svg,.float-bar a svg{width:19px;height:19px}

/* Recipe block output */
.recipe-content>.wp-block-html{margin:0}
.recipe-content .recipe{margin-top:26px}
.recipe-content .vframe iframe{width:100%;height:100%;border:0}
.recipe-content .gframe{cursor:zoom-in}
.rmeta .rm svg{width:24px;height:24px}
.recipe-feature-wrap .art-frame{margin-top:20px}

/* Comments */
.comments-area{max-width:820px;padding:60px 0 90px;border-top:1px solid var(--line)}
.comments-title,.comment-reply-title{font-size:1.7rem;margin-bottom:28px}
.comment-list{list-style:none;margin:0 0 40px;padding:0}
.comment-list .children{list-style:none;padding-inline-start:34px}
.comment-body{position:relative;margin:0 0 18px;padding:24px;background:var(--srf);border:1px solid var(--line)}
.comment-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.comment-author{display:flex;align-items:center;gap:10px}
.comment-author .avatar{border-radius:50%}
.comment-metadata{font-size:.8rem;color:var(--mut)}
.comment-content>*+*{margin-top:.8em}
.reply{margin-top:12px}
.reply a{color:var(--teal);font-weight:700}
.comment-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.comment-form>p{margin:0}
.comment-form-comment,.comment-form-cookies-consent,.form-submit,.logged-in-as,.comment-notes{grid-column:1/-1}
.comment-form label{display:block;font-weight:700;margin-bottom:5px}
.comment-form input:not([type="checkbox"]),.comment-form textarea{width:100%;padding:12px 14px;background:var(--srf);color:var(--ink);border:1px solid var(--line)}
.comment-form .submit{display:inline-flex;padding:12px 22px;background:var(--teal);color:#fff;border:0;font-weight:800;cursor:pointer}
@media(max-width:680px){.comment-form{grid-template-columns:1fr}.comment-form>p{grid-column:1}}

/* Footer menus and five-column WordPress footer */
.footer-grid{grid-template-columns:1.45fr .8fr .9fr 1fr 1.35fr}
.footer-branding p{font-size:.9rem;max-width:34ch;color:#9FC6C1}
.footer-menu{list-style:none;margin:0;padding:0}
.footer-menu li{margin-bottom:10px}
.footer-menu a{color:#9FC6C1}
.footer .socials svg{width:18px;height:18px}
.credit{display:flex;align-items:center;gap:8px}
.credit>svg{width:22px;height:22px;color:#EAC97C}
.legal{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:1100px){.footer-grid{grid-template-columns:1.3fr 1fr 1fr}}
@media(max-width:760px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.footer-grid{grid-template-columns:1fr}.footer-bottom{display:block}.legal{margin-top:10px}}

/* 404 and activation fallback */
.not-found-page{min-height:calc(100vh - 220px);display:flex;align-items:center;padding-top:120px;text-align:center}
.not-found-page .medal-lg{margin-inline:auto}
.not-found-page .lede{max-width:55ch;margin:16px auto 0}
.not-found-actions{display:flex;gap:12px;justify-content:center;margin:26px 0;flex-wrap:wrap}
.not-found-page .search-form{margin-top:24px}
.theme-onboarding{max-width:760px;padding:70px 0 110px;text-align:center}
.theme-onboarding p{margin:10px auto 24px;color:var(--mut)}

/* Direction override */
.hapantheon-direction-ltr{font-family:"Poppins","Noto Sans Hebrew",sans-serif}
.hapantheon-direction-ltr .art-body>p:first-of-type::first-letter{float:left;margin:8px 16px 0 0}
.hapantheon-direction-ltr .pullq{border-right:0;border-left:3px solid var(--gold)}
.hapantheon-direction-ltr .toc a{padding:8px 0 8px 14px;border-right:0;border-left:2px solid var(--line)}
.hapantheon-direction-ltr .toc a.on{border-left-color:var(--gold)}
.hapantheon-direction-ltr .links .sub-menu{right:auto;left:0}

/* Mobile fixes around WordPress wrappers */
@media(max-width:760px){
	.wrap{width:min(100% - 30px,1240px)}
	.archive-tabs{justify-content:flex-start;flex-wrap:nowrap;margin-inline:-15px;padding-inline:15px}
	.archive-tabs .tab{flex:none}
	.article-content,.page-content{font-size:1rem}
	.article-feature-wrap,.recipe-feature-wrap{width:calc(100% - 30px)}
	.magazine-content{padding-top:36px}
	.art-layout{margin-top:18px!important}
}

/* Editable bottom-footer menu. */
.footer-legal-menu{display:flex;align-items:center;gap:0;flex-wrap:wrap;list-style:none;margin:0;padding:0}
.footer-legal-menu li{display:flex;align-items:center;margin:0}
.footer-legal-menu li+li::before{content:"·";color:#3E6A6E;margin-inline:8px}
.footer-closing-line{display:flex;align-items:center}
.footer-closing-line::before{content:"·";color:#3E6A6E;margin-inline:8px}
@media(max-width:520px){.footer-legal-menu{margin-top:0}.footer-closing-line{margin-top:6px}.footer-closing-line::before{display:none}}

/* ========================================================================== */
/* Gutenberg-native HaPantheon page system                                    */
/* ========================================================================== */

.full-design-page>.wp-block-group,
.hapantheon-front-page .site-main>.wp-block-group{margin-block:0}
.full-design-page>.alignfull,
.hapantheon-front-page .site-main>.alignfull{margin-inline:calc(50% - 50vw)}
.full-design-page .hp-section>.alignwide,
.full-design-page .hp-page-hero>.alignwide,
.hapantheon-front-page .hp-section>.alignwide,
.hapantheon-front-page .hp-home-hero>.alignwide{
	width:min(1240px,calc(100vw - 48px));
	max-width:none;
	margin-inline:auto;
}

.hp-section{position:relative;padding:clamp(72px,9vw,118px) 24px;background:var(--bg)}
.hp-section:nth-of-type(even){background:var(--srf2)}
.hp-section-heading{max-width:720px;margin:0 auto clamp(38px,6vw,66px);text-align:center}
.hp-section-heading>*+*{margin-top:12px}
.hp-section-heading h2{font-size:clamp(2rem,4.2vw,3.35rem);font-weight:900;letter-spacing:-.025em}
.hp-section-heading p:not(.hp-kicker){color:var(--mut);font-size:1.05rem}
.hp-kicker{
	color:var(--gold-ink);
	font-family:"Outfit","Poppins",Arial,sans-serif;
	font-size:.72rem;
	font-weight:800;
	letter-spacing:.25em;
	line-height:1.4;
	text-transform:uppercase;
}
.hp-kicker.has-text-align-center::before,
.hp-kicker.has-text-align-center::after{content:"";display:inline-block;width:28px;height:1px;margin:0 11px 3px;background:var(--gold)}

/* Selectable core block styles. */
.wp-block-button.is-style-hapantheon-gold .wp-block-button__link{
	padding:.78rem 1.55rem;
	border:1px solid transparent;
	border-radius:999px;
	background:var(--grad-gold);
	box-shadow:0 12px 30px -17px rgba(129,91,13,.8);
	color:#241a04;
	font-weight:850;
	transition:transform .22s var(--ease),box-shadow .22s var(--ease),filter .22s var(--ease)
}
.wp-block-button.is-style-hapantheon-gold .wp-block-button__link:hover{transform:translateY(-2px);box-shadow:0 18px 36px -18px rgba(129,91,13,.9);filter:saturate(1.08)}
.wp-block-button.is-style-hapantheon-outline .wp-block-button__link{
	padding:.73rem 1.45rem;
	border:1px solid var(--gold);
	border-radius:999px;
	background:transparent;
	color:var(--gold-ink);
	font-weight:800;
	transition:background .22s,color .22s,transform .22s
}
.wp-block-button.is-style-hapantheon-outline .wp-block-button__link:hover{transform:translateY(-2px);background:var(--gold);color:#241a04}
.wp-block-button.is-style-hapantheon-dark .wp-block-button__link{padding:.78rem 1.55rem;border:1px solid #323c45;border-radius:999px;background:var(--night);color:#f7efd9;font-weight:800}
.wp-block-group.is-style-hapantheon-card{padding:clamp(24px,4vw,42px);border:1px solid var(--line);border-radius:18px;background:var(--srf);box-shadow:0 24px 60px -42px rgba(43,34,15,.55)}
.wp-block-group.is-style-hapantheon-night{padding:clamp(30px,5vw,60px);background:var(--night);color:#f7efd9}
.wp-block-quote.is-style-hapantheon-pullquote{margin-block:2.5em;padding:22px clamp(24px,5vw,52px);border:0;border-inline-start:4px solid var(--gold);background:linear-gradient(90deg,color-mix(in srgb,var(--gold) 10%,transparent),transparent);font-size:clamp(1.25rem,2.6vw,1.75rem);font-weight:750}
.wp-block-image.is-style-hapantheon-framed{position:relative;padding:10px;border:1px solid var(--gold);background:var(--srf);box-shadow:0 25px 60px -32px rgba(32,27,15,.72)}
.wp-block-image.is-style-hapantheon-framed::after{content:"";position:absolute;inset:4px;border:1px solid color-mix(in srgb,var(--gold) 36%,transparent);pointer-events:none}
.wp-block-image.is-style-hapantheon-framed img{width:100%}

/* Homepage: editable five-hall hero. */
.hp-home-hero{
	position:relative;
	padding:clamp(118px,13vw,164px) 24px clamp(42px,6vw,74px);
	background:
		radial-gradient(circle at 50% -10%,rgba(211,164,59,.19),transparent 40%),
		linear-gradient(145deg,#0d1115 0%,#151b20 46%,#0c1013 100%);
	color:#f7efd9;
	overflow:hidden
}
.hp-home-hero::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(245,206,110,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(245,206,110,.035) 1px,transparent 1px);background-size:52px 52px;mask-image:linear-gradient(to bottom,#000,transparent 86%)}
.hp-hero-intro{position:relative;z-index:2;max-width:920px;margin:0 auto clamp(42px,6vw,68px);text-align:center}
.hp-hero-intro>*+*{margin-top:16px}
.hp-hero-intro h1{font-size:clamp(2.55rem,6vw,5.7rem);font-weight:900;line-height:1.02;letter-spacing:-.045em;text-wrap:balance}
.hp-hero-intro .hp-kicker{color:#e7c66e}
.hp-hero-intro .hp-hero-lede{max-width:730px;margin-inline:auto;color:#cfc5aa;font-size:clamp(1rem,1.7vw,1.28rem);line-height:1.75;text-wrap:balance}
.hp-gate-grid{
	position:relative;
	z-index:2;
	display:flex!important;
	align-items:stretch!important;
	gap:0!important;
	min-height:590px;
	padding:0!important;
	overflow:hidden;
	border:1px solid rgba(231,198,110,.78);
	background:#080b0d;
	box-shadow:0 0 0 7px rgba(211,154,43,.08),0 38px 90px -42px rgba(0,0,0,.9)
}
.hp-gate-grid>.hp-gate-column{
	position:relative;
	min-width:0;
	margin:0!important;
	flex:1 1 20%!important;
	border-inline-start:1px solid rgba(231,198,110,.38);
	transition:flex-grow .65s var(--ease),filter .5s var(--ease)
}
.hp-gate-grid>.hp-gate-column:first-child{border-inline-start:0}
.hp-gate-grid:hover>.hp-gate-column:not(:hover){flex-grow:.72!important;filter:saturate(.72) brightness(.75)}
.hp-gate-grid>.hp-gate-column:hover{flex-grow:2.6!important}
.hp-gate-card{position:relative;display:flex;align-items:flex-end;min-height:590px;height:100%;padding:0;overflow:hidden;background:#101418}
.hp-gate-card::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(to top,rgba(5,7,8,.96) 0%,rgba(8,10,11,.72) 30%,rgba(8,10,11,.08) 68%),linear-gradient(110deg,rgba(209,154,43,.1),transparent 40%);transition:background .5s}
.hp-gate-image{position:absolute!important;inset:0;margin:0!important;width:100%;height:100%;max-width:none!important}
.hp-gate-image img{width:100%;height:100%;object-fit:cover;filter:saturate(.82) contrast(1.06);transform:scale(1.02);transition:transform 1s var(--ease),filter .55s}
.hp-gate-column:hover .hp-gate-image img{transform:scale(1.09);filter:saturate(1.05) contrast(1.02)}
.hp-gate-body{position:relative;z-index:2;width:100%;padding:30px 18px 34px;color:#fff;text-align:center}
.hp-gate-body>*+*{margin-top:10px}
.hp-gate-glyph{color:#e7c66e;font-family:"Outfit",Arial,sans-serif;font-size:.65rem;font-weight:700;letter-spacing:.34em}
.hp-gate-body h2{font-size:clamp(1.35rem,2.4vw,2rem);font-weight:900;text-shadow:0 3px 24px rgba(0,0,0,.7)}
.hp-gate-body .hp-card-description{max-width:33ch;margin-inline:auto;color:#d9d0ba;font-size:.9rem;line-height:1.65;opacity:0;max-height:0;overflow:hidden;transform:translateY(10px);transition:opacity .42s,max-height .52s,transform .42s}
.hp-gate-body .wp-block-buttons{justify-content:center;opacity:0;max-height:0;overflow:hidden;transform:translateY(10px);transition:opacity .42s .05s,max-height .52s,transform .42s .05s}
.hp-gate-column:hover .hp-card-description,.hp-gate-column:hover .wp-block-buttons{opacity:1;max-height:150px;transform:none}

/* Statistics and hall cards. */
.hp-stats-section{padding-block:clamp(64px,8vw,96px);border-block:1px solid var(--line);background:var(--srf)}
.hp-stat-grid{gap:0!important;border:1px solid var(--line);background:var(--srf)}
.hp-stat-grid>.wp-block-column{margin:0!important;border-inline-start:1px solid var(--line)}
.hp-stat-grid>.wp-block-column:first-child{border-inline-start:0}
.hp-stat-card{min-height:156px;padding:30px 16px;display:flex;flex-direction:column;justify-content:center;text-align:center}
.hp-stat-card>*+*{margin-top:5px}
.hp-stat-number{font-family:"Outfit",Arial,sans-serif;font-size:clamp(2rem,4vw,3.25rem);font-weight:750;background:var(--grad-gold);-webkit-background-clip:text;background-clip:text;color:transparent}
.hp-stat-card p{color:var(--mut);font-size:.85rem;font-weight:650;letter-spacing:.08em}
.hp-halls-section{background:radial-gradient(circle at 15% 0,color-mix(in srgb,var(--gold) 9%,transparent),transparent 40%),var(--bg)}
.hp-hall-grid{gap:28px!important}
.hp-hall-card{height:100%;padding:0 0 30px;border:1px solid var(--line);background:var(--srf);box-shadow:0 28px 64px -48px rgba(50,40,15,.75);overflow:hidden;transition:transform .35s var(--ease),box-shadow .35s,border-color .35s}
.hp-hall-card:hover{transform:translateY(-8px);border-color:color-mix(in srgb,var(--gold) 65%,var(--line));box-shadow:0 35px 70px -42px rgba(50,40,15,.65)}
.hp-hall-card>.wp-block-image{margin:0 0 24px;aspect-ratio:16/10;overflow:hidden}
.hp-hall-card>.wp-block-image img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.hp-hall-card:hover>.wp-block-image img{transform:scale(1.06)}
.hp-hall-card>.hp-kicker,.hp-hall-card>h3,.hp-hall-card>p,.hp-hall-card>.wp-block-buttons{margin-inline:28px}
.hp-hall-card>h3{margin-top:8px;font-size:1.45rem}
.hp-hall-card>p:not(.hp-kicker){margin-top:10px;color:var(--mut);line-height:1.7}
.hp-hall-card>.wp-block-buttons{margin-top:23px}

/* Query Loop cards — content updates automatically when posts change. */
.hp-latest-section{background:var(--srf2)}
.hp-query .wp-block-post-template,
.hp-oracle-query .wp-block-post-template{
	display:grid!important;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:26px!important;
	padding:0!important;
	margin:0!important;
	list-style:none
}
.hp-query .wp-block-post,
.hp-oracle-query .wp-block-post{margin:0!important}
.hp-query-card{height:100%;padding:0 0 25px;border:1px solid var(--line);background:var(--srf);overflow:hidden;box-shadow:0 25px 55px -46px rgba(30,25,15,.9);transition:transform .32s var(--ease),border-color .32s,box-shadow .32s}
.hp-query-card:hover{transform:translateY(-7px);border-color:var(--gold);box-shadow:0 35px 65px -43px rgba(30,25,15,.75)}
.hp-query-card>.wp-block-post-featured-image{margin:0 0 22px;overflow:hidden;background:var(--srf2)}
.hp-query-card>.wp-block-post-featured-image img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.hp-query-card:hover>.wp-block-post-featured-image img{transform:scale(1.055)}
.hp-query-card>.wp-block-post-terms,.hp-query-card>.wp-block-post-title,.hp-query-card>.wp-block-post-excerpt,.hp-query-card>.wp-block-post-date{margin-inline:24px}
.hp-query-card>.wp-block-post-terms{margin-bottom:8px;color:var(--gold-ink);font-size:.68rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}
.hp-query-card>.wp-block-post-title{font-size:1.35rem;line-height:1.34}
.hp-query-card>.wp-block-post-title a:hover{color:var(--teal)}
.hp-query-card>.wp-block-post-excerpt{margin-top:10px;color:var(--mut);font-size:.94rem}
.hp-query-card>.wp-block-post-excerpt .wp-block-post-excerpt__more-link{display:inline-block;margin-top:13px;color:var(--teal);font-weight:750}
.hp-query-card>.wp-block-post-date{margin-top:14px;color:var(--mut);font-size:.75rem}
.hp-query+.wp-block-buttons{margin-top:42px}

/* Featured editorial panel, oracle band and newsletter. */
.hp-featured-section{background:var(--bg)}
.hp-featured-card{gap:clamp(34px,6vw,78px)!important;padding:clamp(24px,4vw,42px);border:1px solid var(--line);background:var(--srf);box-shadow:0 32px 80px -54px rgba(42,34,17,.85)}
.hp-featured-card>.wp-block-column>*+*{margin-top:17px}
.hp-featured-card h2{font-size:clamp(2rem,4.6vw,3.6rem);font-weight:900;letter-spacing:-.035em}
.hp-featured-card p:not(.hp-kicker){color:var(--mut);line-height:1.75}
.hp-featured-card .wp-block-image{margin:0;aspect-ratio:5/4}
.hp-featured-card .wp-block-image img{height:100%;object-fit:cover}
.hp-oracle-band{overflow:hidden;background:radial-gradient(circle at 50% -20%,rgba(245,206,110,.2),transparent 44%),linear-gradient(145deg,#0d1115,#171d22);color:#f7efd9}
.hp-oracle-band::after{content:"Ω";position:absolute;left:50%;top:50%;translate:-50% -50%;font-family:Georgia,serif;font-size:min(36vw,430px);line-height:1;color:rgba(245,206,110,.028);pointer-events:none}
.hp-oracle-band-inner{position:relative;z-index:1;max-width:820px!important;text-align:center}
.hp-oracle-band-inner>*+*{margin-top:18px}
.hp-oracle-band-inner .hp-kicker{color:#e7c66e}
.hp-oracle-band-inner h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,5vw,4rem);font-weight:500}
.hp-oracle-band-inner p:not(.hp-kicker){color:#cfc6ae;font-size:1.08rem}
.hp-newsletter-section{background:linear-gradient(180deg,var(--bg),var(--srf2))}
.hp-newsletter-card{max-width:920px!important;padding:clamp(40px,7vw,76px);border:1px solid var(--gold);background:var(--srf);text-align:center;box-shadow:0 0 0 8px color-mix(in srgb,var(--gold) 7%,transparent),0 38px 85px -58px rgba(44,35,15,.9)}
.hp-newsletter-card>*+*{margin-top:14px}
.hp-newsletter-card h2{font-size:clamp(2rem,4vw,3.1rem)}
.hp-newsletter-card>p:not(.hp-kicker){color:var(--mut)}
.hp-newsletter-card .hapantheon-newsletter-block{margin-top:26px}
.hapantheon-form-block{max-width:100%}

/* Internal page hero and manifesto. */
.hp-page-hero{
	position:relative;
	padding:clamp(125px,15vw,190px) 24px clamp(75px,10vw,125px);
	background:radial-gradient(circle at 50% -8%,rgba(211,154,43,.19),transparent 44%),linear-gradient(145deg,#0f1418,#171e24);
	color:#f7efd9;
	text-align:center;
	overflow:hidden
}
.hp-page-hero::after{content:"";position:absolute;inset:auto 0 0;height:13px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cg fill='none' stroke='%23C8992F' stroke-width='1.4'%3E%3Cpath d='M0 1.5 H26.5 V12.5 H16.5 V5.5 H21.5 V9'/%3E%3Cpath d='M0 12.5 H11 V5.5 H6 V9'/%3E%3C/g%3E%3C/svg%3E");opacity:.7}
.hp-page-hero>*{position:relative;z-index:1;max-width:900px;margin-inline:auto}
.hp-page-hero>*+*{margin-top:18px}
.hp-page-hero h1{font-size:clamp(3rem,7vw,6.2rem);font-weight:900;letter-spacing:-.045em}
.hp-page-hero .hp-kicker{color:#e7c66e}
.hp-page-hero p:not(.hp-kicker){max-width:720px;color:#cec4aa;line-height:1.7}
.hp-manifesto{max-width:900px!important;padding:clamp(42px,7vw,76px);border:1px solid var(--line);background:var(--srf);text-align:center;box-shadow:0 26px 70px -54px rgba(45,36,15,.9)}
.hp-manifesto>*+*{margin-top:22px}
.hp-manifesto .hp-manifesto-lead{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.55rem,3vw,2.35rem);line-height:1.55}
.hp-manifesto p:not(.hp-manifesto-lead){max-width:730px;margin-inline:auto;color:var(--mut)}

/* Principles, timeline and editorial process. */
.hp-principles,.hp-process-grid,.hp-oracle-cards{gap:22px!important}
.hp-principle-card,.hp-process-card,.hp-oracle-card{height:100%;padding:31px 24px;border:1px solid var(--line);background:var(--srf);text-align:center;transition:transform .3s var(--ease),border-color .3s,box-shadow .3s}
.hp-principle-card:hover,.hp-process-card:hover,.hp-oracle-card:hover{transform:translateY(-6px);border-color:var(--gold);box-shadow:0 26px 55px -44px rgba(46,35,13,.8)}
.hp-principle-card>*+*,.hp-process-card>*+*,.hp-oracle-card>*+*{margin-top:12px}
.hp-principle-symbol,.hp-process-number,.hp-oracle-number{font-family:Georgia,"Times New Roman",serif;font-size:2rem;color:var(--gold-ink)}
.hp-principle-card h3,.hp-process-card h3,.hp-oracle-card h3{font-size:1.3rem}
.hp-principle-card p:not(.hp-principle-symbol),.hp-process-card p:not(.hp-process-number),.hp-oracle-card p:not(.hp-oracle-number){color:var(--mut);font-size:.94rem}
.hp-timeline-section{background:var(--srf2)}
.hp-timeline{position:relative;max-width:880px!important}
.hp-timeline::before{content:"";position:absolute;top:10px;bottom:10px;right:29px;width:1px;background:linear-gradient(var(--gold),var(--line))}
.hp-timeline-item{position:relative;margin:0 0 22px;padding:25px 78px 25px 27px;border:1px solid var(--line);background:var(--srf)}
.hp-timeline-item::before{content:"";position:absolute;right:22px;top:32px;width:15px;height:15px;border:3px solid var(--srf);border-radius:50%;background:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.hp-timeline-item>*+*{margin-top:7px}
.hp-timeline-year{font-family:"Outfit",Arial,sans-serif;color:var(--gold-ink);font-size:.78rem;font-weight:800;letter-spacing:.15em}
.hp-timeline-item p:not(.hp-timeline-year){color:var(--mut)}
.hp-process-number{display:inline-grid;place-items:center;width:52px;height:52px;margin-inline:auto;border:1px solid var(--gold);border-radius:50%;font-family:"Outfit",Arial,sans-serif;font-size:1rem;font-weight:800}
.hp-process-note{max-width:850px!important;margin-top:32px!important;padding:20px 24px;border-inline-start:4px solid var(--gold);background:color-mix(in srgb,var(--gold) 8%,var(--srf));color:var(--ink2)}
.hp-process-note-success{border-inline-start-color:var(--teal);background:color-mix(in srgb,var(--teal) 8%,var(--srf))}
.hp-keeper-section{background:var(--srf2)}
.hp-keeper-card{max-width:940px!important;padding:clamp(38px,6vw,70px);border:1px solid var(--line);background:var(--srf);text-align:center}
.hp-keeper-card>*+*{margin-top:16px}
.hp-keeper-card h2{font-size:clamp(2rem,4vw,3.2rem)}
.hp-keeper-card p:not(.hp-kicker){max-width:700px;margin-inline:auto;color:var(--mut)}
.hp-keeper-card .wp-block-buttons{justify-content:center;margin-top:27px}

/* Native Details FAQ. */
.hp-faq-list{max-width:900px!important}
.hp-faq-list .wp-block-details{margin:0 0 14px;border:1px solid var(--line);background:var(--srf);transition:border-color .25s,box-shadow .25s}
.hp-faq-list .wp-block-details[open]{border-color:var(--gold);box-shadow:0 20px 50px -42px rgba(39,30,11,.75)}
.hp-faq-list .wp-block-details summary{position:relative;padding:21px 58px 21px 24px;cursor:pointer;font-size:1.05rem;font-weight:800;list-style:none}
.hp-faq-list .wp-block-details summary::-webkit-details-marker{display:none}
.hp-faq-list .wp-block-details summary::before{content:"+";position:absolute;right:22px;top:50%;translate:0 -50%;display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--gold);border-radius:50%;color:var(--gold-ink);font-family:Arial,sans-serif;font-size:16px;line-height:1}
.hp-faq-list .wp-block-details[open] summary::before{content:"−"}
.hp-faq-list .wp-block-details>p{padding:0 58px 23px 24px;color:var(--mut)}
.hp-faq-cta{max-width:900px!important;margin-top:40px!important;padding:36px;border:1px solid var(--line);background:var(--srf2);text-align:center}
.hp-faq-cta>*+*{margin-top:14px}
.hp-faq-cta .wp-block-buttons{justify-content:center;margin-top:22px}

/* Contact page. */
.hp-contact-layout{gap:clamp(28px,5vw,64px)!important}
.hp-contact-layout>.wp-block-column:first-child{flex-basis:34%}
.hp-contact-channels>*+*{margin-top:15px}
.hp-contact-card{padding:22px;border:1px solid var(--line);background:var(--srf)}
.hp-contact-card>*+*{margin-top:7px}
.hp-contact-card h3{font-size:1.1rem}
.hp-contact-card p,.hp-contact-card a{color:var(--mut)}
.hp-contact-card a:hover{color:var(--teal)}
.hp-contact-symbol{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--gold);border-radius:50%;color:var(--gold-ink);font-family:Georgia,serif;font-size:1.2rem}
.hp-contact-stats{margin-top:22px!important;padding:20px;border:1px dashed var(--line);background:var(--srf2)}
.hp-contact-stats p{color:var(--mut);font-size:.9rem}
.hp-contact-form-card{padding:clamp(28px,5vw,52px);border:1px solid var(--line);background:var(--srf);box-shadow:0 30px 75px -54px rgba(45,35,15,.8)}
.hp-contact-form-card>h2{font-size:clamp(1.8rem,3vw,2.6rem)}
.hp-contact-form-card>p{margin-top:8px;color:var(--mut)}
.hp-contact-form-card>.hapantheon-contact-form-block{margin-top:27px}
.hp-contact-form-card .cform{padding:0;background:transparent;border:0;box-shadow:none}

/* Oracle page. */
.hp-oracle-hero{padding-bottom:clamp(45px,7vw,80px);background:linear-gradient(180deg,#0f1418,#151c21)}
.hp-oracle-quote{max-width:900px!important;padding:clamp(36px,6vw,68px);border:1px solid rgba(231,198,110,.55);background:rgba(255,255,255,.025);color:#f4ead2;text-align:center}
.hp-oracle-quote>*+*{margin-top:16px}
.hp-oracle-quote p:first-child{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.65rem,3.5vw,2.8rem);line-height:1.5}
.hp-oracle-quote p:last-child{color:#c6bda6}
.hp-oracle-essays{background:var(--srf2)}
.hp-oracle-query .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))}
.hp-oracle-ask{max-width:900px!important;padding:clamp(38px,6vw,68px);border:1px solid var(--gold);background:var(--srf);text-align:center}
.hp-oracle-ask>*+*{margin-top:13px}
.hp-oracle-ask p{color:var(--mut)}
.hp-oracle-ask .wp-block-buttons{justify-content:center;margin-top:24px}

/* Gutenberg recipe body. */
.hp-recipe-layout{margin-block:clamp(28px,5vw,60px)!important}
.hp-recipe-layout>.wp-block-columns{gap:clamp(28px,5vw,58px)!important}
.hp-recipe-panel{position:sticky;top:106px;padding:28px;border:1px solid var(--line);background:var(--srf2)}
.hp-recipe-panel>*+*{margin-top:18px}
.hp-recipe-panel h3{font-size:1.35rem}
.hp-ingredient-list,.hp-equipment-list{padding:0!important;list-style:none}
.hp-ingredient-list li,.hp-equipment-list li{position:relative;padding:9px 22px 9px 0;border-bottom:1px solid var(--line);color:var(--ink2)}
.hp-ingredient-list li::before,.hp-equipment-list li::before{content:"◆";position:absolute;right:0;top:11px;color:var(--gold);font-size:.53rem}
.hp-ratio-card{padding:22px;border:1px solid var(--gold);background:var(--srf);text-align:center}
.hp-ratio-card>*+*{margin-top:4px}
.hp-ratio-card h3{font-family:"Outfit",Arial,sans-serif;font-size:2rem;color:var(--gold-ink)}
.hp-ratio-card p{color:var(--mut);font-size:.82rem}
.hp-recipe-steps>*+*{margin-top:19px}
.hp-recipe-step{position:relative;padding:28px 86px 28px 28px;border:1px solid var(--line);background:var(--srf)}
.hp-recipe-step>*+*{margin-top:10px}
.hp-step-number{position:absolute;right:25px;top:26px;font-family:"Outfit",Arial,sans-serif;font-size:1rem;font-weight:800;color:var(--gold-ink)}
.hp-recipe-step h3{font-size:1.35rem}
.hp-recipe-step p:not(.hp-step-number):not(.hp-step-time){color:var(--mut)}
.hp-step-time{display:inline-flex;padding:4px 10px;border:1px solid var(--line);border-radius:999px;color:var(--teal);font-size:.75rem;font-weight:750}
.hp-recipe-tips{margin-top:30px!important;padding:28px;border-inline-start:4px solid var(--teal);background:color-mix(in srgb,var(--teal) 7%,var(--srf))}
.hp-recipe-tips>*+*{margin-top:14px}
.hp-recipe-tips ul{padding-inline-start:1.3em}
.hp-recipe-media{margin-block:clamp(55px,8vw,90px)!important;padding-top:clamp(45px,7vw,75px);border-top:1px solid var(--line);text-align:center}
.hp-recipe-media>*+*{margin-top:16px}
.hp-recipe-video{margin-top:32px!important;border:10px solid var(--srf);box-shadow:0 28px 70px -48px rgba(30,25,15,.9)}
.hp-recipe-gallery{margin-top:26px!important;gap:10px!important}
.hp-recipe-gallery .wp-block-image{aspect-ratio:1/1;margin:0!important;overflow:hidden}
.hp-recipe-gallery .wp-block-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.hp-recipe-gallery .wp-block-image:hover img{transform:scale(1.06)}

/* Long-form article native blocks. */
.art-body>.wp-block-group.hp-recipe-layout,.art-body>.wp-block-group.hp-recipe-media{max-width:1080px}
.art-body .wp-block-quote{margin-block:2.4em;padding:18px 28px;border-inline-start:4px solid var(--gold);background:color-mix(in srgb,var(--gold) 7%,transparent);font-size:1.25rem}
.art-body .wp-block-list{padding-inline-start:1.4em}
.art-body .wp-block-list li+li{margin-top:.55em}

/* Dynamic forms can inherit block background/text controls. */
.wp-block-hapantheon-contact-form,.wp-block-hapantheon-newsletter{box-sizing:border-box}
.wp-block-hapantheon-contact-form.has-background,.wp-block-hapantheon-newsletter.has-background{padding:clamp(22px,4vw,38px)}

/* Responsive behavior for all native layouts. */
@media (max-width:1000px){
	.hp-gate-grid{min-height:540px}
	.hp-gate-card{min-height:540px}
	.hp-query .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))}
	.hp-principles,.hp-process-grid,.hp-oracle-cards{flex-wrap:wrap!important}
	.hp-principles>.wp-block-column,.hp-process-grid>.wp-block-column,.hp-oracle-cards>.wp-block-column{flex-basis:calc(50% - 12px)!important}
}
@media (max-width:782px){
	.full-design-page .hp-section>.alignwide,
	.hapantheon-front-page .hp-section>.alignwide,
	.hapantheon-front-page .hp-home-hero>.alignwide{width:min(100%,calc(100vw - 28px))}
	.hp-section{padding-inline:14px}
	.hp-home-hero{padding-inline:14px}
	.hp-gate-grid{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;min-height:590px;border-inline:0;box-shadow:none;scrollbar-width:thin}
	.hp-gate-grid>.hp-gate-column{flex:0 0 min(84vw,430px)!important;scroll-snap-align:center;border-inline-start:1px solid rgba(231,198,110,.38);filter:none!important}
	.hp-gate-grid:hover>.hp-gate-column:not(:hover),.hp-gate-grid>.hp-gate-column:hover{flex:0 0 min(84vw,430px)!important;filter:none}
	.hp-gate-body .hp-card-description,.hp-gate-body .wp-block-buttons{opacity:1;max-height:150px;transform:none}
	.hp-stat-grid{display:grid!important;grid-template-columns:repeat(2,1fr)}
	.hp-stat-grid>.wp-block-column{border-block-end:1px solid var(--line)}
	.hp-stat-grid>.wp-block-column:nth-child(odd){border-inline-start:0}
	.hp-featured-card,.hp-contact-layout,.hp-recipe-layout>.wp-block-columns{flex-direction:column!important}
	.hp-contact-layout>.wp-block-column:first-child{flex-basis:auto}
	.hp-recipe-panel{position:static}
	.hp-oracle-query .wp-block-post-template{grid-template-columns:1fr}
}
@media (max-width:620px){
	.hp-page-hero{padding-inline:18px}
	.hp-page-hero h1{font-size:clamp(2.45rem,14vw,4.3rem)}
	.hp-query .wp-block-post-template{grid-template-columns:1fr}
	.hp-principles>.wp-block-column,.hp-process-grid>.wp-block-column,.hp-oracle-cards>.wp-block-column{flex-basis:100%!important}
	.hp-stat-card{min-height:130px;padding:22px 9px}
	.hp-manifesto,.hp-newsletter-card,.hp-keeper-card,.hp-oracle-ask{padding:30px 20px}
	.hp-timeline::before{right:20px}
	.hp-timeline-item{padding:22px 59px 22px 18px}
	.hp-timeline-item::before{right:13px}
	.hp-faq-list .wp-block-details summary{padding:18px 50px 18px 16px}
	.hp-faq-list .wp-block-details summary::before{right:15px}
	.hp-faq-list .wp-block-details>p{padding:0 16px 20px}
	.hp-recipe-step{padding:65px 20px 22px}
	.hp-step-number{right:20px;top:20px}
	.hp-recipe-gallery{grid-template-columns:repeat(2,1fr)!important}
}
