/*
Theme Name: Vong.in — The Next Wave
Theme URI: https://vong.in
Author: Vong.in
Description: A customizable block theme for independent journalism, with an asymmetrical news homepage, native Site Editor and optional VONG Companion integration.
Version: 0.1.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vong
Tags: news, blog, full-site-editing, block-patterns, custom-logo, custom-colors, featured-images, wide-blocks, translation-ready
*/
:root{--red:var(--wp--preset--color--primary,#fc0101);--action:var(--wp--preset--color--action,#c80000);--ink:var(--wp--preset--color--ink,#151719);--muted:var(--wp--preset--color--secondary,#626973);--line:var(--wp--preset--color--border,#e2e5e9);--soft:var(--wp--preset--color--surface,#f6f6f6);--black:var(--wp--preset--color--footer,#101113);--white:var(--wp--preset--color--on-dark,#fff);--max:var(--wp--style--global--wide-size,1200px);--radius:var(--wp--custom--radius,6px);--section-gap:var(--wp--custom--section-gap,3rem)}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:8rem}body{margin:0}img{display:block;max-width:100%;height:auto}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline;text-underline-offset:.2em}button,input,textarea,select{font:inherit}button,a,input,select,textarea{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--action);outline-offset:4px}button{cursor:pointer}p{overflow-wrap:break-word}h1,h2,h3,h4{overflow-wrap:anywhere}h1,h2,h3,h4,p{margin-block-start:0}h1{font-size:var(--wp--preset--font-size--title,3rem)}h2{font-size:var(--wp--preset--font-size--large,2rem)}.container{width:min(var(--max),calc(100% - 72px));max-width:100%;margin-inline:auto!important}.wp-site-blocks{padding:0}.wp-site-blocks>*{margin-block-start:0}.site-main{padding-block:30px 64px;min-height:60vh}.site-main>*+*{margin-block-start:var(--section-gap)}.site-header{background:var(--wp--custom--header-background,var(--wp--preset--color--background));border-bottom:1px solid var(--line)}.header-inner{min-height:122px;gap:24px!important;flex-wrap:nowrap!important}.brand{flex-shrink:0;margin:0}.brand-link{display:flex;align-items:center;gap:10px;text-decoration:none!important;color:var(--ink)}.brand-mark{display:block;position:relative;overflow:hidden;width:var(--vong-logo-width,150px);height:calc(var(--vong-logo-width,150px)*.62);padding:var(--vong-logo-padding,0px)}.brand-original{position:absolute;top:-20%;left:0;width:100%;height:auto;max-width:none}.brand-mark.is-custom{display:flex;align-items:center}.brand-custom{width:100%;height:100%;object-fit:contain}.brand-identity{display:block;white-space:nowrap}.brand-identity strong{display:block;font-size:28px;line-height:1.15;letter-spacing:-.03em}.brand-tagline{display:block;font-size:14px;line-height:1.4;text-transform:uppercase;color:var(--muted)}nav.primary-nav{margin-left:auto!important;flex:1 1 auto;color:var(--wp--custom--navigation-color,var(--ink));font-size:16px}.primary-nav .wp-block-navigation__container{gap:clamp(12px,2vw,30px)}.primary-nav a{position:relative;white-space:nowrap;min-height:44px;display:flex;align-items:center;text-decoration:none!important}.primary-nav .current-menu-item>a,.primary-nav a[aria-current=page]{color:var(--action)}.primary-nav .current-menu-item>a:after,.primary-nav a[aria-current=page]:after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:3px;background:var(--red)}.header-search{flex:0 0 auto;width:44px;margin:0!important}.header-search .wp-block-search__inside-wrapper{border:0;padding:0}.header-search .wp-block-search__button{color:var(--ink);background:transparent;min-width:44px;min-height:44px;margin:0;border:0;padding:8px}.header-search.wp-block-search__searchfield-hidden .wp-block-search__input{width:0;min-width:0;padding:0;border:0}.header-search:not(.wp-block-search__searchfield-hidden){position:relative;width:min(240px,100%)}.header-search .wp-block-search__input{min-width:0;width:100%}.wp-block-navigation__responsive-container.is-menu-open{padding:24px;background:var(--wp--preset--color--background);color:var(--ink)}.wp-block-navigation__responsive-container-close,.wp-block-navigation__responsive-container-open{min-width:44px;min-height:44px;align-items:center;justify-content:center}
.hero-grid{display:grid;grid-template-columns:1.75fr 1fr;gap:18px}.hero-count-1{grid-template-columns:1fr}.hero-count-1 .feature-card{aspect-ratio:2/1;min-height:420px}.news-card{min-width:0;box-shadow:var(--wp--custom--card-shadow,none)}.card-image-link{display:block;overflow:hidden;border-radius:var(--radius);background:var(--soft)}.story-image{width:100%;height:100%;object-fit:cover}.image-position-top .story-image{object-position:top}.image-position-bottom .story-image{object-position:bottom}.image-fallback{width:100%;height:100%;min-height:100px;display:grid;place-items:center;background:var(--soft);color:var(--muted);font-size:1.6rem;font-weight:700;letter-spacing:.08em}.fallback-dot{color:var(--red)}.feature-card,.mini-card,.depth-feature{position:relative;overflow:hidden;border-radius:var(--radius);color:var(--white);background:var(--black);display:grid;align-content:end}.feature-card{min-height:460px;aspect-ratio:1.14}.feature-card>.card-image-link,.mini-card>.card-image-link,.depth-feature>.card-image-link{position:absolute;inset:0;border-radius:0}.feature-card:after,.mini-card:after,.depth-feature:after{content:"";position:absolute;inset:15% 0 0;background:linear-gradient(transparent,color-mix(in srgb,var(--black) 50%,transparent) 45%,var(--black));pointer-events:none}.feature-card .card-content,.mini-card .card-content,.depth-feature .card-content{position:relative;z-index:1;margin:200px 32px 24px}.feature-card h1,.mini-card h2,.depth-feature h3{color:inherit;line-height:1.06;margin:.55rem 0 .9rem}.feature-card h1{font-size:clamp(2rem,4.1vw,3.5rem)}.hero-grid h1 a,.hero-grid h2 a,.depth-feature h3 a{color:inherit}.hero-grid .category{background:var(--action);color:var(--white);display:inline-block;border-radius:3px;padding:4px 8px;line-height:1}.hero-grid .meta{color:var(--white);margin:0}.hero-grid .card-excerpt{font-size:clamp(1rem,1.9vw,1.5rem);line-height:1.3;margin:0 0 14px}.hero-side{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:18px}.mini-card .card-content{margin:100px 24px 20px}.mini-card h2{font-size:clamp(1.3rem,2.5vw,2rem)}.mini-card .meta{font-size:1rem}.section-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.section-header h2{margin:0}.view-all{color:var(--action);font-size:1rem;white-space:nowrap;font-weight:600;min-height:44px;display:flex;align-items:center;gap:8px}.post-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 20px}.columns-1{grid-template-columns:1fr}.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.post-card>.card-image-link{aspect-ratio:1.75}.post-card .card-content{padding-top:12px}.category{font-size:.8125rem;line-height:1.4;font-weight:700;text-transform:uppercase;color:var(--action);letter-spacing:.015em}.post-card h3{font-size:1.25rem;line-height:1.16;margin:6px 0 18px}.meta{font-size:.8125rem;line-height:1.45;color:var(--muted);margin:0}.card-excerpt{color:var(--muted);font-size:1rem;line-height:1.4;margin:8px 0 0}.depth-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:24px}.depth-feature{min-height:360px;aspect-ratio:1.75}.depth-feature .card-content{margin:240px 0 0;background:var(--black);padding:18px 22px}.depth-feature h3{font-size:1.6rem;margin:4px 0 10px}.depth-feature .category{color:var(--red)}.depth-side{display:grid;gap:24px}.side-story{display:grid;grid-template-columns:46% 1fr;gap:18px;align-items:start}.side-story>.card-image-link{aspect-ratio:1.2}.side-story h3{font-size:1.25rem;line-height:1.18;margin:6px 0 0}.page-banner{position:relative;min-height:280px;border-radius:var(--radius);overflow:hidden;background:var(--black);color:var(--white);display:flex;align-items:center}.banner-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.page-banner.has-banner-image:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,color-mix(in srgb,var(--black) 85%,transparent),color-mix(in srgb,var(--black) 10%,transparent))}.banner-text{position:relative;z-index:1;padding:36px;max-width:800px}.page-banner h1{font-size:var(--wp--preset--font-size--display,3.5rem);line-height:1.1;margin:0 0 14px;color:inherit}.page-banner p{font-size:1.5rem;line-height:1.4;margin:0;max-width:660px}.filter-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-block:32px 28px}.filter-tabs a{display:flex;align-items:center;min-height:48px;padding:10px 22px;border-radius:6px;background:var(--soft);font-weight:600;font-size:1rem}.filter-tabs .active{background:var(--action);color:var(--white)}.content-with-sidebar{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(250px,1fr);gap:36px;margin-top:0}.without-sidebar{grid-template-columns:1fr}.listing-title{font-size:1.875rem;margin:0 0 12px}.list-post{display:grid;grid-template-columns:28% minmax(0,1fr);gap:18px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line)}.list-post>.card-image-link{aspect-ratio:1.5;align-self:start}.list-post h3{font-size:1.35rem;line-height:1.18;margin:6px 0 20px}.list-post .card-content{display:flex;flex-direction:column;align-items:start}.list-post .card-excerpt{margin-top:auto}.list-post .meta{margin-top:3px}.panel{padding:24px;border-radius:12px;background:var(--soft);margin:0 0 24px}.panel h2{font-size:1.625rem;margin:0 0 20px}.ranked{counter-reset:story;list-style:none;margin:0;padding:0}.ranked li{position:relative;counter-increment:story;padding:20px 0 20px 44px;border-bottom:1px solid var(--line);font-size:1rem;line-height:1.25}.ranked li:last-child{border-bottom:0}.ranked li:before{content:counter(story);position:absolute;left:0;top:16px;color:var(--action);font-size:1.75rem;font-weight:700}.pagination{margin-top:30px;color:var(--action)}.pagination ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}.page-numbers a,.page-numbers span{display:inline-flex;min-width:44px;min-height:44px;justify-content:center;align-items:center;padding:8px}.page-numbers .current{background:var(--soft);color:var(--ink);border-radius:4px}.search-page>h1{margin:12px 0 16px}.vong-search{margin:0}.wp-block-search__inside-wrapper{border:1px solid var(--line);border-radius:9px;overflow:hidden;padding:0}.wp-block-search__input{min-width:0;font-size:1.25rem;padding:14px 20px;border:0}.wp-block-search__button{background:var(--action);color:var(--white);border:0;border-radius:0;min-width:76px;margin:0}.wp-block-search__button svg{min-width:28px;min-height:28px}.search-note{color:var(--muted);margin:26px 0 40px}.search-filters fieldset{border:0;padding:0;margin:28px 0}.search-filters legend{font-weight:700;margin-bottom:12px}.search-filters label{display:flex;align-items:center;gap:10px;min-height:40px;font-size:1rem}.search-filters input{accent-color:var(--action)}.button,.share-links button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:6px;min-height:44px;padding:12px 22px;background:var(--action);color:var(--white);font-weight:700;text-decoration:none}.button:hover{color:var(--white);filter:brightness(.92)}.empty-state{padding:40px 0}.empty-state h1{max-width:800px}.empty-state p{color:var(--muted)}.article-layout{display:grid;grid-template-columns:minmax(0,2.35fr) minmax(250px,1fr);gap:36px;align-items:start}.article-layout>.wp-block-template-part{margin:18px 0 0}.article-layout:has(.wp-block-template-part:empty){grid-template-columns:minmax(0,780px);justify-content:center}.article-main{min-width:0}.breadcrumbs{font-size:.875rem;color:var(--muted);display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.article-main>h1{font-size:var(--wp--preset--font-size--title,3rem);line-height:1.1;margin:18px 0 22px}.article-dek{font-size:1.15rem;line-height:1.5;color:var(--muted);margin-bottom:12px}.article-meta{display:flex;flex-wrap:wrap;gap:7px 12px;color:var(--muted);font-size:.875rem;margin:14px 0 30px}.article-figure{margin:0 0 24px}.article-figure .story-image{max-height:none;border-radius:var(--radius);width:100%;height:auto}.article-figure figcaption{font-size:.8125rem;color:var(--muted);margin-top:12px}.article-body{line-height:var(--wp--custom--article-line-height,1.6)}.article-body>*{max-width:100%}.article-body p{margin-block:1.25em}.article-body h2{margin-top:1.8em}.article-body a,.article-source a,.static-page .entry-content a{text-decoration:underline;color:var(--action)}.article-body pre{overflow:auto;background:var(--soft);padding:20px;font-size:.875rem}.article-body table{max-width:100%;border-collapse:collapse}.article-body figure.wp-block-table{overflow:auto}.article-body blockquote{border-left:3px solid var(--red);margin-inline:0;padding-left:24px}.toc ol{padding-left:20px;margin:0}.toc li{font-size:1rem;padding:10px 0}.toc-h3{margin-left:16px}.related-sidebar .side-story{grid-template-columns:72px minmax(0,1fr);gap:12px;margin:16px 0}.related-sidebar .side-story>.card-image-link{aspect-ratio:1.3}.related-sidebar .category{display:none}.related-sidebar h3{font-size:.9375rem;margin:0}.share-links{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:30px 0;font-size:.875rem}.share-links>a{padding:8px 10px;text-decoration:underline}.share-links button{font-size:.875rem;padding:8px 14px}.article-main>.news-section{margin-top:40px}.article-main .post-grid{gap:20px}.article-main .post-card h3{font-size:1.05rem}.author-box{margin:30px 0}.author-box p{margin-bottom:0}.static-page{padding-top:48px}.static-page>.wp-block-post-title{max-width:780px;margin-inline:auto}.about-page .about-mission{margin-block:64px 100px;gap:50px}.about-mission p{font-size:1.4rem;line-height:1.5;max-width:760px}.about-mission img{border-radius:var(--radius);aspect-ratio:1;object-fit:cover}.principles{gap:32px!important;margin:20px 0 40px}.principle{background:var(--soft);padding:24px;border-radius:12px}.principle:before{content:"";display:block;width:40px;height:40px;border-radius:50%;background:var(--red);margin-bottom:24px}.principle h3{font-size:1.6rem;margin:0 0 8px}.principle p{color:var(--muted);font-size:1.1rem;line-height:1.3;margin:0}.site-footer{background:var(--black);color:var(--white);padding:28px 0 20px}.site-footer a,.site-footer h2,.site-footer strong{color:var(--white)}.footer-top{gap:24px!important;align-items:center!important}.brand-footer .brand-mark{width:64px;height:42px}.brand-footer .brand-identity strong{font-size:2rem}.brand-footer .brand-tagline{font-size:.6875rem;color:var(--wp--preset--color--footer-muted)}.footer-nav{font-size:.9375rem}.footer-nav .wp-block-navigation__container{gap:16px 36px}.footer-bottom{border-top:1px solid color-mix(in srgb,var(--white) 20%,var(--black));margin-top:24px;padding-top:16px;gap:8px 20px!important;color:var(--wp--preset--color--footer-muted)}.footer-bottom p{font-size:.8125rem;margin:0}.error-page{padding-block:64px 120px}.vong-ad{grid-column:1/-1}.vong-support{margin-block-start:var(--section-gap)}
@media(min-width:1500px){.feature-card h1{font-size:3.5rem}.mini-card h2{font-size:2rem}}
@media(max-width:1100px){.container{width:min(var(--max),calc(100% - 48px))}.header-inner{gap:14px!important}.brand-identity strong{font-size:24px}.brand-tagline{font-size:11px}.brand-mark{width:120px;height:75px}nav.primary-nav{font-size:.9rem}.primary-nav .wp-block-navigation__container{gap:14px}.feature-card .card-content{margin-inline:24px}.content-with-sidebar,.article-layout{gap:24px}.panel{padding:20px}.list-post h3{font-size:1.18rem}.depth-side .side-story{grid-template-columns:43% 1fr;gap:12px}.depth-side h3{font-size:1.15rem}}
@media(max-width:900px){.header-inner{min-height:100px;flex-wrap:wrap!important}nav.primary-nav{flex:0 0 auto;margin-left:auto!important}.hero-grid{grid-template-columns:1.5fr 1fr}.feature-card{aspect-ratio:auto;min-height:540px}.feature-card h1{font-size:2.2rem}.feature-card .card-content{margin:180px 22px 22px}.mini-card .card-content{margin:90px 18px 18px}.mini-card h2{font-size:1.5rem}.hero-grid .card-excerpt{font-size:1.1rem}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-with-sidebar,.article-layout{grid-template-columns:1fr}.listing-sidebar{margin-top:20px}.article-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:24px}.article-sidebar>.panel{margin:0}.article-layout>.wp-block-template-part{margin:0}.depth-grid{grid-template-columns:1.5fr 1fr}.depth-feature{min-height:320px}.depth-feature h3{font-size:1.35rem}.side-story{grid-template-columns:1fr}.depth-side .side-story{grid-template-columns:1fr}.depth-side .card-image-link{aspect-ratio:2.2}.footer-top{align-items:start!important}.footer-nav .wp-block-navigation__container{gap:14px 24px}.about-mission p{font-size:1.2rem}}
@media(max-width:600px){.container{width:calc(100% - 32px)}.site-main{padding-block:24px 48px}.site-main>*+*{margin-top:32px}.header-inner{min-height:90px;gap:8px!important}.brand-mark{width:var(--vong-mobile-logo-width,110px);height:calc(var(--vong-mobile-logo-width,110px)*.62)}.brand-identity strong{font-size:22px}.brand-tagline{font-size:10px;max-width:140px;white-space:normal}.brand-link{gap:4px}.header-search{width:36px}.header-search .wp-block-search__button{min-width:36px}.header-search:not(.wp-block-search__searchfield-hidden){order:3;flex-basis:100%;width:100%;margin-bottom:12px!important}.hero-grid{grid-template-columns:1fr;gap:16px}.hero-count-1 .feature-card,.feature-card{aspect-ratio:auto;min-height:460px}.feature-card .card-content{margin:180px 22px 22px}.feature-card h1{font-size:2.25rem}.hero-side{grid-template-columns:1fr;grid-template-rows:auto;gap:16px}.mini-card{min-height:260px}.mini-card .card-content{margin:120px 22px 22px}.mini-card h2{font-size:1.7rem}.section-header{margin-bottom:18px;gap:12px}.section-header h2{font-size:1.65rem}.view-all{font-size:.9rem}.post-grid{gap:24px 16px}.post-card h3{font-size:1.05rem;margin-bottom:12px}.post-card .card-content{padding-top:9px}.category{font-size:.75rem}.meta{font-size:.75rem}.post-card .card-excerpt{font-size:.9375rem}.depth-grid{grid-template-columns:1fr;gap:20px}.depth-feature{min-height:320px}.depth-feature h3{font-size:1.5rem}.depth-side{grid-template-columns:1fr 1fr;gap:16px}.depth-side .side-story{display:block}.depth-side h3{font-size:1.1rem}.depth-side .card-image-link{aspect-ratio:1.5}.page-banner{min-height:250px}.banner-text{padding:24px}.page-banner h1{font-size:2.5rem}.page-banner p{font-size:1.15rem}.filter-tabs{gap:8px;margin-block:24px}.filter-tabs a{padding:9px 14px;min-height:44px;font-size:.875rem}.list-post{grid-template-columns:32% minmax(0,1fr);gap:12px;margin-bottom:16px;padding-bottom:16px}.list-post>.card-image-link{aspect-ratio:1.05}.list-post h3{font-size:1.1rem;margin:5px 0 10px}.list-post .card-excerpt{font-size:.875rem}.listing-title{font-size:1.7rem}.article-main>h1{font-size:2.25rem}.article-body{font-size:1.0625rem}.article-dek{font-size:1.05rem}.article-sidebar{grid-template-columns:1fr}.article-main .post-grid{grid-template-columns:1fr 1fr;gap:16px}.article-main .post-card h3{font-size:1rem}.article-meta{font-size:.8125rem;gap:6px}.breadcrumbs{font-size:.8125rem}.about-page .about-mission{margin-block:36px;gap:24px}.about-mission p{font-size:1.125rem}.principles{gap:16px!important}.principle{padding:22px}.principle h3{font-size:1.4rem}.principle p{font-size:1rem}.site-footer{padding:28px 0 20px}.footer-top{flex-direction:column;gap:24px!important}.footer-nav .wp-block-navigation__container{gap:8px 24px}.footer-nav .wp-block-navigation-item a{min-height:44px;display:flex;align-items:center}.brand-footer .brand-mark{width:64px;height:42px}.brand-footer .brand-tagline{max-width:none}.wp-block-search__input{font-size:1.05rem;padding:12px}.wp-block-search__button{min-width:60px}}
@media(max-width:360px){.brand-identity strong{font-size:19px}.brand-tagline{font-size:9px;max-width:92px}.brand-mark{width:90px;height:56px}.header-inner{gap:4px!important}.post-grid{gap:22px 12px}.post-card h3{font-size:1rem}.feature-card h1{font-size:2rem}.feature-card .card-content{margin-inline:18px}.article-main>h1{font-size:2rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{.site-header,.site-footer,.article-sidebar,.share-links,.vong-ad,.vong-support{display:none!important}.container{width:100%}.article-layout{display:block}.article-body a{color:inherit}.article-main>.news-section{display:none}}
.post-card>.card-image-link{aspect-ratio:var(--vong-card-ratio,1.75)}
/* Keep preferred image ratios from imposing intrinsic widths on narrow grids. */
.hero-grid,.hero-side,.depth-grid,.depth-side,.content-with-sidebar,.article-layout,.post-grid,.story-list{min-width:0}.feature-card,.mini-card,.depth-feature{width:100%;min-width:0}.hero-grid .card-excerpt{color:inherit}.site-footer .wp-block-navigation .wp-block-navigation-item__content{color:var(--white)}
@media(max-width:600px){.depth-feature{aspect-ratio:auto}.brand{max-width:calc(100% - 92px)}.brand-mark{flex-shrink:1;min-width:40px}.brand-identity{flex-shrink:0}.brand-mark.has-mobile img{position:static;width:100%;height:100%;object-fit:contain}}
.image-fallback{min-height:0}.related-sidebar .image-fallback{font-size:.875rem;letter-spacing:.02em}.list-post .image-fallback{font-size:1rem;letter-spacing:.03em}
