/*
 * Theoria — main stylesheet.
 * Every colour, size and spacing comes from CSS variables written by the Customiser
 * (see inc/customizer/registry.php). Defaults below are only fallbacks.
 */

/* ==========================================================================
   1. Base
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:calc(var(--th-header-h,72px) + 16px)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
body{margin:0;background:var(--th-bg,#fff);color:var(--th-text,#111);font-family:var(--th-body-font,system-ui,sans-serif);font-size:var(--th-body-size,16px);font-weight:var(--th-body-weight,400);line-height:var(--th-body-lh,1.55);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility;overflow-wrap:break-word}
img,svg,video,iframe{max-width:100%}
img{height:auto;display:block}
a{color:var(--th-link,#111);text-decoration:none;transition:color .15s}
a:hover{color:var(--th-link-hover,#a82222)}
button{font:inherit;color:inherit}
::selection{background:var(--th-selection,#f6d5d3);color:var(--th-text,#111)}
:focus-visible{outline:2px solid var(--th-focus,#1f4e79);outline-offset:2px}
h1,h2,h3,h4,h5,h6{font-family:var(--th-heading-font,Georgia,serif);font-weight:var(--th-heading-weight,400);line-height:var(--th-heading-lh,1.08);letter-spacing:var(--th-heading-ls,-.02em);text-transform:var(--th-heading-transform,none);font-style:var(--th-heading-style,normal);color:var(--th-heading,#111);margin:0 0 .5em}
h1{font-size:var(--th-h1,72px)}
h2{font-size:var(--th-h2,40px)}
h3{font-size:var(--th-h3,27px)}
h4{font-size:var(--th-h4,21px)}
p{margin:0 0 1em}
ul,ol{margin:0;padding:0}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}
.th-skip{position:absolute;left:16px;top:-100px;z-index:1000;background:var(--th-btn2-bg,#111);color:var(--th-btn2-text,#fff);padding:12px 18px}
.th-skip:focus{top:12px;color:var(--th-btn2-text,#fff)}
.th-main:focus{outline:0}
.th-wrap{width:100%;max-width:calc(var(--th-container,1320px) + 2 * var(--th-gutter,40px));margin:0 auto;padding-left:var(--th-gutter,40px);padding-right:var(--th-gutter,40px)}

/* ==========================================================================
   2. Type helpers
   ========================================================================== */
.th-label{font-family:var(--th-body-font);font-size:var(--th-label-size,13px);font-weight:var(--th-label-weight,700);letter-spacing:var(--th-label-ls,.16em);text-transform:var(--th-label-transform,uppercase);line-height:1.3;color:var(--th-text);margin:0}
.th-kicker{font-family:var(--th-meta-font,monospace);font-size:var(--th-meta-size,12px);letter-spacing:var(--th-meta-ls,.04em);text-transform:var(--th-meta-transform,uppercase);color:var(--th-primary,#cf2e2e);margin:0 0 16px;display:flex;flex-wrap:wrap;gap:4px 14px}
.th-kicker a{color:inherit}
.th-kicker a:hover{color:var(--th-primary-dark)}
.th-kicker__new{font-weight:600}
.th-kicker__count{color:var(--th-muted)}
.th-meta{font-family:var(--th-meta-font,monospace);font-size:var(--th-meta-size,12px);font-weight:var(--th-meta-weight,400);letter-spacing:var(--th-meta-ls,.04em);text-transform:var(--th-meta-transform,uppercase);color:var(--th-muted,#555);margin:0 0 10px;display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;line-height:1.4}
.th-meta a{color:inherit}
.th-meta__cat,.th-meta a.th-meta__cat{color:var(--th-meta-cat,var(--th-primary,#cf2e2e));font-weight:500}
.th-meta a.th-meta__cat:hover{color:var(--th-primary-dark)}
.th-standfirst{font-family:var(--th-heading-font);font-size:var(--th-standfirst-size,22px);line-height:var(--th-standfirst-lh,1.45);font-style:var(--th-standfirst-style,normal);color:var(--th-standfirst-color,#333);margin:0 0 1em}
.th-standfirst p:last-child{margin-bottom:0}

/* ==========================================================================
   3. Buttons, forms, pills
   ========================================================================== */
.th-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--th-btn-h,48px);padding:0 var(--th-btn-pad,22px);border:var(--th-border-w,1px) solid transparent;border-radius:var(--th-btn-radius,0);background:var(--th-btn-bg,var(--th-primary,#cf2e2e));color:var(--th-btn-text,#fff);font-family:var(--th-body-font);font-size:var(--th-btn-size,15px);font-weight:var(--th-btn-weight,600);text-transform:var(--th-btn-transform,none);line-height:1.1;cursor:pointer;text-decoration:none;transition:background .15s,color .15s,border-color .15s}
.th-btn:hover{background:var(--th-btn-hover,color-mix(in srgb,var(--th-btn-bg,var(--th-primary,#cf2e2e)) 80%,#000));color:var(--th-btn-text,#fff)}
.th-btn--dark{background:var(--th-btn2-bg,#111);color:var(--th-btn2-text,#fff)}
.th-btn--dark:hover{background:var(--th-primary);color:var(--th-on-primary)}
.th-btn--primary{background:var(--th-btn-bg,var(--th-primary,#cf2e2e));color:var(--th-btn-text)}
.th-btn--outline{background:transparent;color:var(--th-text);border-color:var(--th-border-strong,#111)}
.th-btn--outline:hover{background:var(--th-btn2-bg);color:var(--th-btn2-text)}
.th-btn--small{min-height:calc(var(--th-btn-h,48px) - 4px);padding:0 calc(var(--th-btn-pad,22px) - 4px);font-size:calc(var(--th-btn-size,15px) - 1px)}
.th-btn--block{width:100%}
.th-iconbtn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:var(--th-border-w,1px) solid var(--th-border-strong,#111);border-radius:var(--th-btn-radius,0);background:transparent;color:var(--th-header-color,#111);cursor:pointer;flex:0 0 44px}
.th-iconbtn:hover{background:var(--th-btn2-bg);color:var(--th-btn2-text)}
.th-iconbtn--dark{background:var(--th-btn2-bg);color:var(--th-btn2-text);border-color:var(--th-btn2-bg)}
.th-input,.th-select{width:100%;min-height:var(--th-input-h,50px);padding:0 16px;border:var(--th-border-w,1px) solid var(--th-input-border,#bbb);border-radius:var(--th-input-radius,0);background:var(--th-input-bg,#fff);color:var(--th-text);font:inherit;font-size:16px}
.th-textarea{min-height:180px;padding:14px 16px;line-height:1.6;resize:vertical}
.th-select{width:auto;padding-right:36px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;min-height:42px;font-size:14px;cursor:pointer}
.th-input:focus,.th-select:focus{border-color:var(--th-text);outline:2px solid var(--th-focus);outline-offset:0}
input[type=checkbox],input[type=radio]{accent-color:var(--th-primary,#cf2e2e);width:18px;height:18px;margin:0;flex:0 0 18px}
.th-field{margin:0 0 16px}
.th-field>label,.th-field legend{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:var(--th-text)}
fieldset.th-field{border:0;padding:0;min-width:0}
.th-choices{display:flex;flex-wrap:wrap;gap:8px 20px}
.th-choices legend{width:100%;margin-bottom:10px}
.th-choice{display:inline-flex;align-items:center;gap:8px;min-height:32px;font-size:14px;cursor:pointer}
.th-check{margin:0 0 14px}
.th-check label{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.5;color:var(--th-muted)}
.th-check label input{margin-top:2px}
.th-check a{text-decoration:underline}
.th-form__row--2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.th-form__hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.th-notice{padding:16px 20px;margin:0 0 24px;border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-radius);background:var(--th-card)}
.th-notice--success{border-color:#2e7d32;background:#f1f8f1}
.th-notice--error{border-color:var(--th-primary);background:var(--th-primary-soft)}
.th-pills{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.th-pill{display:inline-flex;align-items:center;min-height:38px;padding:0 14px;border:var(--th-border-w,1px) solid var(--th-pill-border,#ddd);border-radius:var(--th-btn-radius,0);background:var(--th-pill-bg,#fff);color:var(--th-text);font-size:13px;line-height:1.2;white-space:nowrap}
.th-pill:hover{border-color:var(--th-text);color:var(--th-text)}
.th-pill.is-active{background:var(--th-pill-active-bg,#111);border-color:var(--th-pill-active-bg,#111);color:var(--th-pill-active-text,#fff)}
.th-badge{display:inline-flex;align-items:center;min-height:32px;padding:0 14px;border:var(--th-border-w) solid var(--th-pill-border);border-radius:var(--th-btn-radius,0);background:var(--th-pill-bg);font-family:var(--th-meta-font);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--th-text)}
.th-badge--primary{background:var(--th-primary);border-color:var(--th-primary);color:var(--th-on-primary)}
.th-badge--primary:hover{background:var(--th-primary-dark);color:var(--th-on-primary)}

/* ==========================================================================
   4. Utility bar & header
   ========================================================================== */
.th-utility{background:var(--th-utility-bg,#f4f4f2);color:var(--th-utility-color,#555);border-bottom:var(--th-border-w) solid var(--th-border);font-size:13px}
.th-utility__inner{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:36px;padding-top:6px;padding-bottom:6px}
.th-utility__left{display:flex;gap:16px;align-items:center}
.th-utility__date{font-family:var(--th-meta-font);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.th-utility__list{list-style:none;display:flex;flex-wrap:wrap;gap:4px 22px}
.th-utility a{color:inherit}
.th-utility a:hover{color:var(--th-text)}
@media (max-width:899px){.th-utility-desktop-only .th-utility{display:none}}

.th-header{position:relative;z-index:50;background:var(--th-header-bg,#fff);color:var(--th-header-color,#111);border-bottom:var(--th-border-w) solid var(--th-header-border,#111)}
.th-sticky-header .th-header{position:sticky;top:0}
.admin-bar.th-sticky-header .th-header{top:32px}
@media (max-width:782px){.admin-bar.th-sticky-header .th-header{top:0}}
.th-header.is-scrolled{box-shadow:0 6px 18px rgba(0,0,0,.06)}
.th-header__inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:var(--th-header-pad,16px);padding-bottom:var(--th-header-pad,16px)}
.th-header__brand{flex:0 0 auto}
.th-header__actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.th-header a{color:inherit}
.th-header .th-btn{color:var(--th-btn-text)}
.th-header .th-btn--dark{color:var(--th-btn2-text)}
.th-header .th-btn--outline{color:var(--th-header-color)}
.th-burger{display:none}
.th-header--left .th-nav--desktop{margin-left:auto}
.th-header--centered .th-header__inner{flex-wrap:wrap;justify-content:center}
.th-header--centered .th-header__brand{flex:1 0 100%;display:flex;justify-content:center;padding-bottom:12px}
.th-header--centered .th-nav--desktop{flex:1 1 auto}
.th-header--centered .th-header__actions{position:absolute;right:var(--th-gutter);top:var(--th-header-pad)}
.th-header--centered .th-header__inner{position:relative}

.th-logo{display:inline-flex;align-items:center;gap:12px;color:var(--th-header-color,#111)}
.th-logo--text{font-family:var(--th-logo-font,var(--th-body-font));font-size:var(--th-logo-size,20px);font-weight:var(--th-logo-weight,700);letter-spacing:-.01em;line-height:1.1}
.th-logo__mark{width:28px;height:28px;flex:0 0 28px;background:var(--th-mark,var(--th-primary,#cf2e2e));border-radius:calc(var(--th-btn-radius,0px) * .3)}
.th-logo__text{display:flex;flex-direction:column}
.th-site-tagline{font-size:12px;font-weight:400;color:var(--th-muted);letter-spacing:0}
.th-logo__img{width:var(--th-logo-w,160px);height:auto}
.th-logo:hover{color:var(--th-header-color)}

/* Desktop menu */
.th-nav--desktop{flex:1 1 auto;display:flex}
.th-menu-align--center .th-nav--desktop{justify-content:center}
.th-menu-align--right .th-nav--desktop{justify-content:flex-end}
.th-nav__list{list-style:none;display:flex;flex-wrap:wrap;align-items:center;gap:2px}
.th-nav__item{position:relative;display:flex;align-items:center}
.th-nav__item.is-mega{position:static}
.th-nav__link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 var(--th-menu-pad,14px);border:0;border-radius:var(--th-btn-radius,0);background:none;font-family:var(--th-body-font);font-size:var(--th-menu-size,15px);font-weight:var(--th-menu-weight,500);text-transform:var(--th-menu-transform,none);color:var(--th-header-color);cursor:pointer;white-space:nowrap}
.th-nav__link--split{padding-right:4px}
.th-nav__toggle--icon{display:inline-flex;align-items:center;justify-content:center;width:28px;min-height:44px;padding:0 6px 0 0;border:0;background:none;cursor:pointer;color:var(--th-header-color);border-radius:var(--th-btn-radius,0)}
.th-nav__link:hover,.th-nav__toggle--icon:hover{color:var(--th-primary-dark)}
.th-nav__item.is-current>.th-nav__link,.th-nav__link[aria-current="page"],.th-nav__toggle[aria-expanded="true"],.th-nav__item.is-open>.th-nav__link{background:var(--th-menu-active-bg,#111);color:var(--th-menu-active-color,#fff)}
.th-nav__item.is-open>.th-nav__toggle--icon{background:var(--th-menu-active-bg);color:var(--th-menu-active-color)}
.th-chevron{transition:transform .15s;flex:0 0 auto}
[aria-expanded="true"]>.th-chevron,[aria-expanded="true"] .th-chevron{transform:rotate(180deg)}

.th-dropdown{position:absolute;top:calc(100% + var(--th-header-pad,16px) + 1px);left:0;min-width:300px;max-width:380px;background:var(--th-mega-bg,#fff);border:var(--th-border-w) solid var(--th-border-strong);border-top:3px solid var(--th-primary);border-radius:var(--th-radius,0);box-shadow:0 18px 40px rgba(0,0,0,.08);padding:8px 0;z-index:60}
.th-dropdown__list{list-style:none}
.th-dropdown__link{display:block;padding:11px 20px;color:var(--th-text)}
.th-dropdown__link:hover{background:var(--th-surface);color:var(--th-text)}
.th-dropdown__title{display:block;font-weight:600}
.th-dropdown__desc{display:block;font-size:13px;color:var(--th-muted)}
.th-dropdown__sub{list-style:none;padding:0 20px 8px 32px}
.th-dropdown__sublink{display:block;padding:4px 0;font-size:14px;color:var(--th-muted)}

.th-mega{position:absolute;left:0;right:0;top:100%;z-index:60;background:var(--th-mega-bg,#fff);border-bottom:2px solid var(--th-border-strong);box-shadow:0 24px 48px rgba(0,0,0,.08)}
.th-mega__panel{max-width:calc(var(--th-container,1320px) + 2 * var(--th-gutter));margin:0 auto}
.th-mega__grid{display:grid;grid-template-columns:repeat(var(--th-mega-cols,3),minmax(0,1fr));gap:40px;padding:34px var(--th-gutter) 30px}
.th-mega__grid.has-featured{grid-template-columns:repeat(var(--th-mega-cols,3),minmax(0,1fr)) minmax(240px,1.3fr)}
.th-mega__col{display:flex;flex-direction:column;gap:26px}
.th-mega__heading{display:flex;align-items:baseline;gap:10px;padding-bottom:10px;margin:0 0 8px;border-bottom:var(--th-border-w) solid var(--th-border);color:var(--th-text)}
.th-mega__num{font-family:var(--th-meta-font);font-size:11px;color:var(--th-primary)}
.th-mega__title{font-family:var(--th-heading-font);font-size:22px;line-height:1.2}
.th-mega__desc{font-size:13px;color:var(--th-muted);margin:-2px 0 6px}
.th-mega__links{list-style:none}
.th-mega__link{display:block;padding:5px 0;font-size:14px;color:#444;color:var(--th-muted)}
.th-mega__link:hover{color:var(--th-text)}
.th-mega__featured{background:var(--th-surface);border-radius:var(--th-radius);padding:18px}
.th-mega__featured-label{margin-bottom:12px;font-size:11px}
.th-mega__featured-link{display:block;color:var(--th-text)}
.th-mega__featured-img{margin-bottom:12px}
.th-mega__featured-title{display:block;font-family:var(--th-heading-font);font-size:21px;line-height:1.22;margin-top:4px}
.th-mega__bar{border-top:var(--th-border-w) solid var(--th-border);background:var(--th-mega-links-bg,#fafaf9)}
.th-mega__bar-list{list-style:none;display:flex;flex-wrap:wrap;gap:8px 28px;padding:14px var(--th-gutter);font-size:14px;font-weight:500}
.th-mega__bar-link{color:var(--th-text)}
.th-mega__bar-link.is-primary{color:var(--th-primary-dark)}

/* Subject bar (phones) */
.th-subjectbar{border-top:var(--th-border-w) solid var(--th-border);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.th-subjectbar::-webkit-scrollbar{display:none}
.th-subjectbar__list{list-style:none;display:flex;gap:6px;padding:10px var(--th-gutter);width:max-content}
.th-subjectbar .th-pill{min-height:34px}

/* Drawer (phone menu) */
.th-drawer{position:fixed;inset:0;z-index:200}
.th-drawer[hidden],.th-searchpanel[hidden]{display:none}
.th-drawer__backdrop{position:absolute;inset:0;background:rgba(17,17,17,.4)}
.th-drawer__panel{position:absolute;top:0;right:0;bottom:0;width:min(420px,100%);background:var(--th-mobile-bg,#fff);display:flex;flex-direction:column;overflow-y:auto;animation:th-slide .2s ease-out}
.th-mobile-menu--full .th-drawer__panel{width:100%}
@keyframes th-slide{from{transform:translateX(30px);opacity:0}to{transform:none;opacity:1}}
.th-drawer__head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:var(--th-border-w) solid var(--th-border)}
.th-drawer__search{padding:14px 16px 4px}
.th-mnav{padding:8px 16px}
.th-mnav__list,.th-mnav__sub{list-style:none}
.th-mnav__item{border-bottom:var(--th-border-w) solid var(--th-border)}
.th-mnav__item--d1,.th-mnav__item--d2{border-bottom:0}
.th-mnav__row{display:flex;align-items:center;justify-content:space-between}
.th-mnav__link{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;padding:0;border:0;background:none;font-family:var(--th-heading-font);font-size:22px;color:var(--th-text);cursor:pointer;text-align:left}
.th-mnav__item--d1>.th-mnav__link,.th-mnav__item--d1 .th-mnav__row .th-mnav__link{font-family:var(--th-body-font);font-size:16px;min-height:44px}
.th-mnav__item--d2 .th-mnav__link{font-family:var(--th-body-font);font-size:15px;min-height:40px;color:var(--th-muted)}
.th-mnav__toggle--icon{width:44px;height:44px;border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.th-mnav__sub{padding:0 0 10px 14px}
.th-drawer__extra{padding:8px 16px}
.th-drawer__links{list-style:none;display:flex;flex-wrap:wrap;gap:6px 18px;font-size:15px}
.th-drawer__foot{margin-top:auto;padding:16px;border-top:var(--th-border-w) solid var(--th-border)}

/* Search panel */
.th-searchpanel{position:fixed;inset:0;z-index:210}
.th-searchpanel__backdrop{position:absolute;inset:0;background:rgba(17,17,17,.35)}
.th-searchpanel__box{position:relative;background:var(--th-header-bg);padding:28px 0;border-bottom:2px solid var(--th-border-strong);animation:th-drop .18s ease-out}
.th-searchpanel__box .th-wrap{display:flex;gap:12px;align-items:center}
.th-searchpanel__box .th-searchform{flex:1}
@keyframes th-drop{from{transform:translateY(-12px);opacity:0}to{transform:none;opacity:1}}
.th-searchform{display:flex;gap:8px}
.th-searchform__input{flex:1}
.th-searchform__btn{flex:0 0 auto}
@media (max-width:640px){.th-searchform__label{display:none}}

/* ==========================================================================
   5. Sections & headings
   ========================================================================== */
.th-section{padding-top:var(--th-section-space,72px);padding-bottom:0}
.th-section:last-child{padding-bottom:var(--th-section-space,72px)}
.th-main>.th-section:last-of-type{padding-bottom:var(--th-section-space,72px)}
.th-band{background:var(--th-band,var(--th-surface));border-top:var(--th-border-w) solid var(--th-border);padding-bottom:var(--th-section-space,72px);margin-top:var(--th-section-space,72px)}
.th-band+.th-band,.th-band+.th-subband,.th-subband+.th-band{margin-top:0}
.th-section__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px 24px;margin-bottom:24px}
.th-section__head--label{border-top:var(--th-rule-w,3px) solid var(--th-border-strong,#111);padding-top:16px;align-items:center}
.th-section__title{margin:0;font-size:var(--th-h2)}
.th-section__title--label{font-family:var(--th-body-font);font-size:var(--th-label-size,13px);letter-spacing:var(--th-label-ls);text-transform:var(--th-label-transform);font-weight:var(--th-label-weight)}
.th-section__link{font-size:14px;font-weight:600;color:var(--th-primary-dark)}
.th-section__head .th-list-tools{flex:1 1 auto;justify-content:flex-end}

/* ==========================================================================
   6. Images
   ========================================================================== */
.th-img{position:relative;display:block;overflow:hidden;aspect-ratio:var(--r,3/2);border-radius:var(--th-img-radius,0);background:var(--th-placeholder,#dcd7cf)}
.th-img--auto{aspect-ratio:auto}
.th-img__el{width:100%;height:100%;object-fit:cover;transition:transform .5s ease,opacity .3s,filter .3s}
.th-img--auto .th-img__el{height:auto}
.th-img--placeholder::before,.th-img--placeholder::after{content:"";position:absolute;border-radius:50%}
.th-ph--0{background:#d9d4cc}.th-ph--1{background:#d6d9dc}.th-ph--2{background:#ddd6cb}.th-ph--3{background:#d3d8d1}
.th-ph--0::before{width:70%;aspect-ratio:1;right:-20%;top:-30%;background:rgba(255,255,255,.28)}
.th-ph--0::after{width:40%;height:5px;left:12%;bottom:22%;border-radius:0;background:var(--th-primary)}
.th-ph--1::before{width:46%;aspect-ratio:1;left:30%;top:20%;border:1px solid rgba(0,0,0,.18);background:none;border-radius:0;transform:rotate(12deg)}
.th-ph--2::before{width:30%;height:100%;left:0;top:0;border-radius:0;background:rgba(0,0,0,.06)}
.th-ph--2::after{width:22%;aspect-ratio:1;left:38%;top:30%;border-radius:0;background:var(--th-primary)}
.th-ph--3::before{width:60%;aspect-ratio:1;left:-15%;bottom:-35%;background:rgba(255,255,255,.3)}
.th-ph--plain::before,.th-ph--plain::after{display:none}
.th-img-hover--zoom a:hover .th-img__el{transform:scale(1.035)}
.th-img-hover--fade a:hover .th-img__el{opacity:.85}
.th-img-filter--grey .th-img__el,.th-img-filter--grey_hover .th-img__el{filter:grayscale(1)}
.th-img-filter--grey_hover a:hover .th-img__el{filter:none}

/* ==========================================================================
   7. Grids, rows & cards
   ========================================================================== */
.th-grid{display:grid;grid-template-columns:repeat(var(--th-list-cols,3),minmax(0,1fr));gap:var(--th-gap,32px);list-style:none;margin:0;padding:0}
.th-list--grid{display:grid;grid-template-columns:repeat(var(--th-list-cols,3),minmax(0,1fr));gap:var(--th-gap,32px);padding-top:24px}

.th-card{display:flex;flex-direction:column;min-width:0}
.th-card__media{display:block;margin-bottom:18px}
.th-card__title{font-size:var(--th-card-title,28px);line-height:1.15;margin:0}
.th-card__title a{color:var(--th-heading)}
.th-card__title a:hover{color:var(--th-link-hover)}
.th-card__excerpt{margin:10px 0 0;color:var(--th-muted);font-size:15px;line-height:1.55}
.th-cards--boxed .th-card{background:var(--th-card);border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-radius);overflow:hidden;box-shadow:var(--th-shadow)}
.th-cards--boxed .th-card__media{margin:0}
.th-cards--boxed .th-card__media .th-img{border-radius:0}
.th-cards--boxed .th-card__body{padding:var(--th-card-pad,22px)}
.th-cards-align--center .th-card{text-align:center}
.th-cards-align--center .th-card .th-meta{justify-content:center}

.th-row{display:grid;grid-template-columns:var(--th-row-img,200px) minmax(0,1fr) 44px;gap:28px;align-items:center;padding:var(--th-row-pad,24px) 0;border-bottom:var(--th-border-w) solid var(--th-border)}
.th-row--noimg{grid-template-columns:minmax(0,1fr) 44px}
.th-row-img--right .th-row{grid-template-columns:minmax(0,1fr) var(--th-row-img,200px) 44px}
.th-row-img--right .th-row .th-row__media{order:2}
.th-row-img--right .th-row .th-row__body{order:1}
.th-row-img--right .th-row .th-row__arrow{order:3}
.th-row__media{display:block}
.th-row__media .th-img{aspect-ratio:var(--th-row-ratio,3/2)}
.th-row__title{font-size:var(--th-row-title,27px);line-height:1.18;margin:0;letter-spacing:-.01em}
.th-row__title a{color:var(--th-heading)}
.th-row__title a:hover{color:var(--th-link-hover)}
.th-row__excerpt{margin:8px 0 0;font-size:15px;color:var(--th-muted);line-height:1.5}
.th-row__arrow{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-btn-radius,0);color:var(--th-text)}
.th-row__arrow:hover{background:var(--th-btn2-bg);border-color:var(--th-btn2-bg);color:var(--th-btn2-text)}
.th-row:not(:has(.th-row__arrow)){grid-template-columns:var(--th-row-img,200px) minmax(0,1fr)}
.th-row--noimg:not(:has(.th-row__arrow)){grid-template-columns:minmax(0,1fr)}
.th-rows--cards .th-row{padding:16px 20px 16px 16px;margin-top:14px;border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-radius);background:var(--th-card);box-shadow:var(--th-shadow)}
.th-rows--cards .th-row__media .th-img{border-radius:calc(var(--th-radius) * .6)}

/* Card/row image shapes per list */
.th-featured .th-card__media .th-img{aspect-ratio:var(--th-featured-ratio,3/2)}
.th-list--grid .th-card__media .th-img,.th-related .th-card__media .th-img,.th-xgrid .th-card__media .th-img{aspect-ratio:var(--th-card-ratio,3/2)}

/* ==========================================================================
   8. Lists: tools, count, pagination, sidebar layout
   ========================================================================== */
.th-list-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.th-filters__list{list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.th-sort{display:flex;align-items:center;gap:8px;margin:0}
.th-sort__label{font-size:14px;color:var(--th-muted)}
.th-list-count{margin:16px 0 0;font-size:14px;color:var(--th-muted)}
.th-empty{padding:40px 0;color:var(--th-muted)}
.th-results{transition:opacity .2s}
.th-results.is-loading{opacity:.45;pointer-events:none}
.th-pagination{padding-top:32px}
.th-pagination__list{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px}
.th-pagination__num{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 8px;border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-btn-radius,0);background:var(--th-card);color:var(--th-text);font-weight:500}
.th-pagination__num:hover{border-color:var(--th-text);color:var(--th-text)}
.th-pagination__num.is-current{background:var(--th-btn2-bg);border-color:var(--th-btn2-bg);color:var(--th-btn2-text)}
.th-pagination__gap{padding:0 4px;color:var(--th-muted)}
.th-pagination--more{display:flex;justify-content:center}

.th-withside{display:block}
.th-withside.has-side{display:grid;grid-template-columns:minmax(0,1fr) var(--th-side-w,33%);gap:56px;align-items:start}
.th-withside.th-side--left{grid-template-columns:var(--th-side-w,33%) minmax(0,1fr)}
.th-withside.th-side--left .th-withside__side{order:-1}
.th-withside__side{display:flex;flex-direction:column;gap:32px;padding-top:24px}
.th-withside__main{min-width:0}

/* ==========================================================================
   9. Boxes (sidebar blocks)
   ========================================================================== */
.th-box{background:var(--th-card);border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-radius);padding:24px;box-shadow:var(--th-shadow)}
.th-withside__side .th-box:not(.th-box--accent):not(.th-subbox){background:none;border:0;padding:0;box-shadow:none;border-radius:0}
.th-box__title{padding-bottom:10px;margin-bottom:6px;border-bottom:2px solid var(--th-border-strong)}
.th-box--accent{background:var(--th-primary);color:var(--th-on-primary);border-color:var(--th-primary)}
.th-box--accent .th-label,.th-box--accent h2,.th-box--accent a{color:var(--th-on-primary)}
.th-mostread__list{list-style:none}
.th-mostread__item{display:flex;gap:14px;padding:16px 0;border-bottom:var(--th-border-w) solid var(--th-border)}
.th-mostread__item:last-child{border-bottom:0}
.th-mostread__num{font-family:var(--th-heading-font);font-size:28px;line-height:1;color:var(--th-primary);min-width:22px}
.th-mostread__item a{font-family:var(--th-heading-font);font-size:19px;line-height:1.3;color:var(--th-heading)}
.th-concepts .th-pills{margin-top:12px}
.th-serieslist__list,.th-dates__list{list-style:none}
.th-serieslist__list li{padding:12px 0;border-bottom:var(--th-border-w) solid var(--th-border)}
.th-serieslist__list a{font-weight:600}
.th-progressline{display:block;height:5px;margin-top:8px;background:var(--th-border);border-radius:3px;overflow:hidden}
.th-progressline span{display:block;height:100%;background:var(--th-primary)}
.th-dates__list li{display:flex;justify-content:space-between;padding:7px 0;font-size:15px}
.th-dates__n{font-family:var(--th-meta-font);font-size:12px;color:var(--th-muted)}
.th-subbox{border-color:var(--th-border-strong)}
.th-subbox__title{font-size:26px;line-height:1.15;margin:0 0 6px}
.th-subbox__text{font-size:14px;color:var(--th-muted);margin-bottom:14px}

/* ==========================================================================
   10. Homepage sections
   ========================================================================== */
.th-lead__grid{display:grid;grid-template-columns:var(--th-lead-split,42%) minmax(0,1fr);gap:56px;align-items:center}
.th-lead--text-right .th-lead__media{order:-1}
.th-lead--text-right .th-lead__grid{grid-template-columns:minmax(0,1fr) var(--th-lead-split,42%)}
.th-lead--stacked .th-lead__grid{grid-template-columns:minmax(0,1fr)}
.th-lead--stacked .th-lead__media{order:-1}
.th-lead--text-only .th-lead__grid{grid-template-columns:minmax(0,1fr);max-width:960px}
.th-lead__title{font-size:var(--th-lead-title,76px);line-height:.98;letter-spacing:-.035em;margin:0}
.th-lead__title a{color:var(--th-heading)}
.th-lead__title a:hover{color:var(--th-link-hover)}
.th-lead__excerpt{margin-top:24px}
.th-lead__foot{display:flex;flex-wrap:wrap;align-items:center;gap:14px 18px;margin-top:28px}
.th-lead__meta{margin:0;font-size:14px;color:var(--th-muted)}
.th-lead__media{display:block}
.th-lead__media .th-img{aspect-ratio:var(--th-lead-ratio,4/3)}
.th-featured .th-grid{align-items:start}

.th-index__head .th-section__head{margin-bottom:0}
.th-index__head--large .th-section__head{margin-bottom:8px}

.th-tiles{align-items:stretch}
.th-tile__link{display:flex;flex-direction:column;height:100%;background:var(--th-card);border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-radius);overflow:hidden;color:var(--th-text);box-shadow:var(--th-shadow)}
.th-tile__link .th-img{aspect-ratio:var(--th-subjects-ratio,4/3);border-radius:0}
.th-tile__body{display:flex;flex-direction:column;gap:4px;padding:14px 14px 16px}
.th-tile__num{font-family:var(--th-meta-font);font-size:11px;color:var(--th-primary-dark)}
.th-tile__name{font-weight:600;font-size:15px;line-height:1.3}
.th-tile__count{font-size:12px;color:var(--th-muted)}
.th-tile__link:hover{border-color:var(--th-text);color:var(--th-text)}

.th-spot__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:center}
.th-spot--image-right .th-spot__media{order:2}
.th-spot--no-image .th-spot__grid{grid-template-columns:minmax(0,1fr);max-width:820px}
.th-spot__media .th-img{aspect-ratio:16/10}
.th-spot__title{font-size:calc(var(--th-h2) * 1.2);margin:0}
.th-spot__title a{color:var(--th-heading)}
.th-spot__desc{margin:14px 0 0;color:var(--th-muted)}
.th-spot__parts{list-style:none;margin-top:24px}
.th-spot__part{display:flex;align-items:baseline;gap:12px;padding:14px 0;border-top:var(--th-border-w) solid var(--th-border)}
.th-spot__part:last-child{border-bottom:var(--th-border-w) solid var(--th-border)}
.th-spot__n{font-family:var(--th-heading-font);color:var(--th-muted);min-width:34px}
.th-spot__part a{flex:1}
.th-spot__future{flex:1;color:var(--th-muted)}
.th-spot__flag{font-size:13px;color:var(--th-muted)}
.th-spot__flag.is-new{color:var(--th-primary-dark);font-weight:600}

.th-subband{background:var(--th-band-bg,var(--th-primary,#cf2e2e));color:var(--th-band-color,#fff);padding-bottom:var(--th-section-space);margin-top:var(--th-section-space)}
.th-subband__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:64px;align-items:center}
.th-subband__title{font-size:calc(var(--th-h2) * 1.3);line-height:1.05;margin:0;color:var(--th-band-color,#fff)}
.th-subband .th-subform__small,.th-subband .th-subform__status,.th-subband legend,.th-subband .th-choice{color:var(--th-band-color,#fff)}

.th-hometext__inner{max-width:880px}
.th-hometext--center .th-hometext__inner{margin:0 auto;text-align:center}
.th-hometext__inner .th-section__title{margin-bottom:16px}

/* ==========================================================================
   11. Subscribe forms, modal, slide-in
   ========================================================================== */
.th-subform__row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.th-subform__row .th-field{flex:1 1 220px;margin:0}
.th-subform--modal .th-subform__row .th-field,.th-subform--box .th-subform__row .th-field,.th-subform--inline .th-subform__row .th-field,.th-subform--follow .th-subform__row .th-field{flex-basis:100%}
.th-subform__row+.th-field,.th-subform__row+.th-btn{margin-top:14px}
.th-subform .th-btn--block{margin-top:14px}
.th-subform__small{margin:10px 0 0;font-size:13px;line-height:1.5;color:var(--th-muted)}
.th-subform__small a{text-decoration:underline}
.th-subform__status{margin:8px 0 0;font-size:14px;font-weight:600;min-height:1em}
.th-subform__status:empty{display:none}
.th-subform.is-done .th-subform__row,.th-subform.is-done fieldset,.th-subform.is-done .th-btn,.th-subform.is-done .th-field{display:none}
.th-btn--band{background:var(--th-band-btn-bg,#111);color:var(--th-band-btn-color,#fff)}
.th-btn--band:hover{background:var(--th-band-btn-color,#fff);color:var(--th-band-btn-bg,#111)}
.th-subband .th-input{border-color:transparent}
.th-box--accent .th-input{border-color:transparent}
.th-box--accent .th-btn{background:var(--th-btn2-bg);color:var(--th-btn2-text)}
.th-box--accent .th-subform__small,.th-box--accent .th-subform__status{color:var(--th-on-primary)}
.th-subform--follow .th-field>label{color:var(--th-on-primary)}
.th-follow__kicker{font-size:11px;margin-bottom:8px;color:var(--th-on-primary)}
.th-follow__title{font-size:26px;line-height:1.2;margin:0 0 14px}

.th-modal{width:min(560px,calc(100% - 32px));max-height:calc(100vh - 32px);padding:0;border:var(--th-border-w) solid var(--th-border-strong);border-radius:var(--th-radius);background:var(--th-card);color:var(--th-text);box-shadow:0 30px 80px rgba(0,0,0,.25)}
.th-modal::backdrop{background:rgba(17,17,17,.45)}
.th-modal__inner{position:relative;padding:36px}
.th-modal__close{position:absolute;top:12px;right:12px;border-color:var(--th-border)}
.th-modal__kicker{color:var(--th-primary);margin-bottom:10px;font-size:11px}
.th-modal__title{font-size:34px;line-height:1.1;margin:0 0 8px;padding-right:40px}
.th-modal__text{color:var(--th-muted);margin-bottom:20px}

.th-slidein{position:fixed;right:20px;bottom:20px;z-index:150;width:min(380px,calc(100% - 40px));padding:24px;background:var(--th-card);border:var(--th-border-w) solid var(--th-border-strong);border-radius:var(--th-radius);box-shadow:0 20px 50px rgba(0,0,0,.18);animation:th-up .25s ease-out}
.th-slidein[hidden]{display:none}
@keyframes th-up{from{transform:translateY(20px);opacity:0}to{transform:none;opacity:1}}
.th-slidein__close{position:absolute;top:8px;right:8px;width:36px;height:36px;flex-basis:36px;border-color:var(--th-border)}
.th-slidein__title{font-size:24px;margin:0 0 4px;padding-right:36px}
.th-slidein__text{font-size:14px;color:var(--th-muted);margin-bottom:12px}

/* ==========================================================================
   12. Archives
   ========================================================================== */
.th-breadcrumbs{font-size:13px;color:var(--th-muted);margin-bottom:20px}
.th-breadcrumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.th-breadcrumbs li+li::before{content:"/";margin-right:6px;color:var(--th-border-strong);opacity:.4}
.th-breadcrumbs a{color:var(--th-muted)}
.th-breadcrumbs a:hover{color:var(--th-text)}
.th-archive-head{padding-top:28px}
.th-archive-head__box{display:block}
.th-archive-head--banner .th-archive-head__box{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);background:var(--th-surface);border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-radius);overflow:hidden}
.th-archive-head--banner .th-archive-head__text{padding:44px 48px}
.th-archive-head__media .th-img{height:100%;min-height:300px;border-radius:0;aspect-ratio:auto}
.th-archive-head__title{font-size:var(--th-h1);letter-spacing:-.035em;line-height:1;margin:0}
.th-archive-head__desc{margin-top:18px;max-width:720px}
.th-archive-head__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.th-archive-head__search{margin-top:20px;max-width:640px}
.th-archive-head__children{margin-top:20px}
.th-archive__role{margin:12px 0 0;color:var(--th-muted)}
.th-archive__avatar{max-width:220px;border-radius:50%}
.th-archive__tools{display:flex;justify-content:flex-end;padding-bottom:12px;border-bottom:var(--th-rule-w,3px) solid var(--th-border-strong)}
.th-archive .th-section{padding-top:32px}

/* All subjects page */
.th-allsub__top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:24px}
.th-allsub__top>div:first-child{max-width:760px}
.th-allsub__search{flex:0 1 440px}
.th-subjectcard{display:flex;flex-direction:column;border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-radius);background:var(--th-card);overflow:hidden;box-shadow:var(--th-shadow)}
.th-subjectcard__media .th-img{border-radius:0;aspect-ratio:16/9}
.th-subjectcard__body{display:flex;flex-direction:column;gap:12px;padding:22px 24px 24px;flex:1}
.th-subjectcard__top{display:flex;justify-content:space-between;font-family:var(--th-meta-font);font-size:12px;margin:0}
.th-subjectcard__num{color:var(--th-primary)}
.th-subjectcard__count{color:var(--th-muted)}
.th-subjectcard__title{font-size:32px;margin:0}
.th-subjectcard__desc{margin:0;color:var(--th-muted);font-size:15px;line-height:1.6}
.th-subjectcard__latest{margin:auto 0 0;padding-top:14px;border-top:var(--th-border-w) solid var(--th-border)}
.th-subjectcard__latest .th-label{display:block;font-size:11px;margin-bottom:4px;color:var(--th-muted)}
.th-subjectcard__latest a{font-family:var(--th-heading-font);font-size:18px;line-height:1.35}
.th-allsub__more .th-box{background:var(--th-card)!important;border:var(--th-border-w) solid var(--th-border)!important;padding:28px!important}

/* ==========================================================================
   13. Single essay
   ========================================================================== */
.th-progress{position:fixed;top:0;left:0;right:0;height:var(--th-progress-h,3px);z-index:300;background:transparent;pointer-events:none}
.th-progress__bar{height:100%;width:0;background:var(--th-progress,var(--th-primary,#cf2e2e));transition:width .1s linear}
.admin-bar .th-progress{top:32px}
.th-essay__head{padding-top:28px;padding-bottom:36px}
.th-essay__headinner{max-width:var(--th-single-head-w,960px)}
.th-essay--center .th-essay__headinner{margin:36px auto 0;text-align:center}
.th-essay--left .th-essay__headinner{margin-top:24px}
.th-essay__badges{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
.th-essay--center .th-essay__badges{justify-content:center}
.th-essay__title{font-size:var(--th-single-title,64px);line-height:1.02;letter-spacing:-.03em;margin:0}
.th-essay__standfirst{margin:22px auto 0;max-width:760px;font-style:italic}
.th-essay--left .th-essay__standfirst{margin-left:0}
.th-byline{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;margin-top:28px;font-size:14px;color:var(--th-muted)}
.th-essay--center .th-byline{justify-content:center}
.th-byline__author{display:inline-flex;align-items:center;gap:10px;color:var(--th-text)}
.th-byline__author a{font-weight:600}
.th-byline__avatar{width:40px;height:40px;border-radius:50%}
.th-essay__image{margin-bottom:48px}
.th-essay__image--full{padding:0}
.th-essay__image--full .th-img{border-radius:0}
.th-essay__image--content{max-width:calc(var(--th-prose-w,700px) + 2 * var(--th-gutter));margin-left:auto;margin-right:auto}
.th-essay__image--above{padding-top:24px;margin-bottom:0}
.th-essay__figure{margin:0}
.th-essay__figure .th-img{aspect-ratio:var(--th-single-ratio,21/9)}
.th-caption{margin-top:10px;font-size:13px;color:var(--th-muted);text-align:center}

.th-essay__layout{display:grid;grid-template-columns:minmax(0,var(--th-prose-w,700px));justify-content:center;gap:48px;padding-bottom:56px}
.th-essay__layout.has-side{grid-template-columns:220px minmax(0,var(--th-prose-w,700px)) 220px}
.th-essay__side{min-width:0}
.th-essay__sticky{position:sticky;top:calc(var(--th-header-h,72px) + 24px);display:flex;flex-direction:column;gap:20px}
.th-essay__main{min-width:0}
.th-toc{font-size:14px}
.th-toc__title{font-size:11px;color:var(--th-muted);margin-bottom:10px}
.th-toc__list{list-style:none}
.th-toc__item a{display:block;padding:7px 0 7px 12px;border-left:2px solid var(--th-border);color:var(--th-muted);line-height:1.35}
.th-toc__item--h3 a{padding-left:24px;font-size:13px}
.th-toc__item a:hover{color:var(--th-text)}
.th-toc__item a.is-active{border-left-color:var(--th-primary);color:var(--th-primary-dark);font-weight:500}
.th-toc__num{font-family:var(--th-meta-font);font-size:11px;color:var(--th-muted)}
.th-toc--top{border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-radius);background:var(--th-card);padding:20px 22px;margin-bottom:36px}
.th-tools{display:flex;flex-wrap:wrap;gap:6px}
.th-tool{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-btn-radius,0);background:var(--th-card);color:var(--th-text);cursor:pointer}
.th-tool:hover{border-color:var(--th-text);color:var(--th-text)}
.th-tool--text{font-family:var(--th-heading-font);font-size:17px}
.th-tool.is-done{border-color:#2e7d32;color:#2e7d32}

/* Prose */
.th-prose{font-family:var(--th-prose-font,Georgia,serif);font-size:var(--th-prose-size,21px);line-height:var(--th-prose-lh,1.7);font-weight:var(--th-prose-weight,400);color:var(--th-prose-color,#222)}
.th-prose>*{margin-top:0;margin-bottom:var(--th-p-space,1.25em)}
.th-prose h2{font-size:calc(var(--th-h2) * .85);margin-top:2em;margin-bottom:.6em}
.th-prose h3{font-size:calc(var(--th-h3) * .95);margin-top:1.6em;margin-bottom:.5em}
.th-prose h4{font-size:var(--th-h4);margin-top:1.4em}
.th-prose>h2:first-child,.th-prose>h3:first-child{margin-top:0}
.th-prose a{color:var(--th-body-link,#a82222)}
.th-underline-links .th-prose a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
.th-prose a:hover{color:var(--th-text)}
.th-prose ul,.th-prose ol{padding-left:1.3em}
.th-prose li{margin-bottom:.4em}
.th-prose li::marker{color:var(--th-primary)}
.th-prose img{border-radius:var(--th-img-radius,0)}
.th-prose figure{margin-left:0;margin-right:0}
.th-prose figcaption,.th-prose .wp-element-caption{font-family:var(--th-body-font);font-size:14px;line-height:1.5;color:var(--th-muted);margin-top:10px}
.th-prose hr{border:0;border-top:var(--th-border-w) solid var(--th-border);margin:2.4em auto}
.th-prose table{width:100%;border-collapse:collapse;font-family:var(--th-body-font);font-size:15px}
.th-prose th,.th-prose td{padding:10px 12px;border-bottom:var(--th-border-w) solid var(--th-border);text-align:left;vertical-align:top}
.th-prose th{font-weight:600;border-bottom-color:var(--th-border-strong)}
.th-prose .wp-block-table{overflow-x:auto}
.th-prose code,.th-prose kbd{font-family:var(--th-meta-font);font-size:.82em;background:var(--th-surface);padding:.1em .35em;border-radius:3px}
.th-prose pre{font-family:var(--th-meta-font);font-size:14px;line-height:1.6;background:var(--th-surface);padding:18px 20px;overflow-x:auto;border-radius:var(--th-radius)}
.th-prose pre code{background:none;padding:0}
.th-hyphens .th-prose{hyphens:auto;-webkit-hyphens:auto}
.th-justify .th-prose p{text-align:justify}
.th-dropcap .th-essay .th-prose>p:first-of-type::first-letter{float:left;font-size:4.2em;line-height:.82;padding:.08em .12em 0 0;color:var(--th-dropcap,var(--th-primary,#cf2e2e));font-family:var(--th-heading-font)}
.th-prose blockquote{margin-left:0;margin-right:0}
.th-quote--centered .th-prose blockquote,.th-prose .is-style-theoria-pull{margin:2em 0;padding:0;border:0;text-align:center;font-size:1.4em;line-height:1.35;font-style:italic;color:var(--th-heading)}
.th-quote--centered .th-prose blockquote p::before,.th-prose .is-style-theoria-pull p::before{content:"“";color:var(--th-quote,var(--th-primary,#cf2e2e))}
.th-quote--centered .th-prose blockquote p::after,.th-prose .is-style-theoria-pull p::after{content:"”";color:var(--th-quote,var(--th-primary,#cf2e2e))}
.th-quote--centered .th-prose blockquote cite,.th-prose blockquote cite{display:block;margin-top:12px;font-family:var(--th-body-font);font-size:13px;font-style:normal;letter-spacing:.08em;text-transform:uppercase;color:var(--th-muted)}
.th-quote--rule .th-prose blockquote{padding-left:1.2em;border-left:3px solid var(--th-quote,var(--th-primary,#cf2e2e));font-style:italic}
.th-quote--box .th-prose blockquote{padding:1.4em 1.6em;background:var(--th-surface);border-radius:var(--th-radius);font-style:italic}
.th-prose .is-style-theoria-lead{font-size:1.15em;line-height:1.55;color:var(--th-heading)}
.th-prose .is-style-theoria-small{font-family:var(--th-body-font);font-size:14px;color:var(--th-muted)}
.th-prose .is-style-theoria-box{padding:24px 28px;background:var(--th-surface);border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-radius);font-family:var(--th-body-font);font-size:16px}
.th-prose .is-style-theoria-box h3{margin-top:0;font-size:20px}
.th-prose .is-style-theoria-references{font-size:.82em;line-height:1.6;color:var(--th-muted)}
.th-prose .is-style-theoria-asterism{border:0;text-align:center}
.th-prose .is-style-theoria-asterism::before{content:"⁂";color:var(--th-primary);font-size:1.2em}
.th-prose .alignwide{width:min(calc(var(--th-prose-w,700px) + 280px),calc(100vw - 2 * var(--th-gutter)));margin-left:50%;transform:translateX(-50%)}
.th-prose .alignfull{width:100vw;margin-left:50%;transform:translateX(-50%)}
.th-prose .aligncenter{margin-left:auto;margin-right:auto}
.th-prose .alignleft{float:left;margin:.3em 1.2em .8em 0;max-width:50%}
.th-prose .alignright{float:right;margin:.3em 0 .8em 1.2em;max-width:50%}

/* Side-notes */
.th-noteref{font-family:var(--th-meta-font);font-size:.6em;line-height:0;vertical-align:super}
.th-noteref a,.th-noteref__btn{color:var(--th-primary-dark);font-weight:600;border:0;background:none;padding:0 2px;cursor:pointer}
.th-sidenote{display:none;font-family:var(--th-body-font);font-size:14px;line-height:1.55;color:var(--th-muted)}
.th-sidenote.is-open{display:block;float:none;margin:.6em 0 1em;padding:12px 14px;background:var(--th-surface);border-radius:var(--th-radius)}
.th-sidenote__num{font-family:var(--th-meta-font);color:var(--th-primary);margin-right:4px}
@media (min-width:1200px){
	.th-notes--margin .th-essay__layout.has-side .th-sidenote,.th-notes--margin .th-essay__layout .th-sidenote{display:block;float:right;clear:right;width:220px;margin:0 -268px 1em 0;padding:0;background:none}
	.th-notes--margin .th-essay__layout:not(.has-side){grid-template-columns:minmax(0,var(--th-prose-w,700px)) 220px;padding-left:268px}
}
.th-footnotes{margin-top:40px;padding-top:18px;border-top:2px solid var(--th-border-strong);font-size:15px;color:var(--th-muted)}
.th-footnotes ol{padding-left:1.2em;margin-top:12px}
.th-footnotes li{margin-bottom:8px}
.th-footnotes__back{margin-left:4px}
.th-pagelinks{display:flex;gap:8px;margin:24px 0;font-family:var(--th-body-font)}

/* After the essay */
.th-after{display:flex;flex-direction:column;gap:22px;margin-top:48px;font-family:var(--th-body-font);font-size:16px}
.th-after__concepts{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.th-after__concepts .th-label{margin-right:6px;color:var(--th-muted);font-size:12px}
.th-cite__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.th-cite__tabs{display:flex;flex-wrap:wrap;gap:4px}
.th-cite__tab{min-height:36px;padding:0 14px;border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-btn-radius,0);background:var(--th-card);font-size:12px;cursor:pointer}
.th-cite__tab.is-active{background:var(--th-btn2-bg);border-color:var(--th-btn2-bg);color:var(--th-btn2-text)}
.th-cite__text{white-space:pre-wrap;word-break:break-word;font-family:var(--th-meta-font);font-size:13px;line-height:1.6;color:#444;background:var(--th-surface);padding:14px 16px;margin:0 0 12px;border-radius:var(--th-radius)}
.th-authorbox{display:flex;gap:20px;align-items:flex-start}
.th-authorbox__avatar{width:72px;height:72px;border-radius:50%;flex:0 0 72px}
.th-authorbox .th-label{font-size:12px;color:var(--th-muted)}
.th-authorbox__name{font-size:24px;margin:6px 0 4px}
.th-authorbox__role{color:var(--th-muted);margin:0 0 8px;font-size:14px}
.th-authorbox__bio{margin:0 0 8px;line-height:1.6}
.th-authorbox__more{color:var(--th-primary-dark);font-weight:600}
.th-aftersub__title{font-size:30px;line-height:1.15;margin:0 0 6px;color:var(--th-on-primary)}
.th-aftersub__text{margin:0 0 16px;color:var(--th-on-primary)}
.th-aftersub .th-btn--band{background:var(--th-btn2-bg);color:var(--th-btn2-text)}
.th-aftersub .th-subform__small{color:var(--th-on-primary)}
.th-prevnext{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:22px 0;border-top:var(--th-border-w) solid var(--th-border);border-bottom:var(--th-border-w) solid var(--th-border)}
.th-prevnext__link{display:flex;flex-direction:column;gap:6px;color:var(--th-text)}
.th-prevnext__link--next{text-align:right}
.th-prevnext__link .th-label{font-size:12px;color:var(--th-muted);font-weight:500}
.th-prevnext__title{font-family:var(--th-heading-font);font-size:20px;line-height:1.25}
.th-prevnext__link.is-future .th-prevnext__title{color:var(--th-muted)}
.th-after__widgets{margin-top:32px}

/* Comments */
.th-comments{margin-top:48px;font-family:var(--th-body-font);font-size:16px}
.th-comments__list{list-style:none}
.th-comments .comment-body{padding:18px 0;border-bottom:var(--th-border-w) solid var(--th-border)}
.th-comments .children{list-style:none;padding-left:28px}
.th-comments input[type=text],.th-comments input[type=email],.th-comments input[type=url],.th-comments textarea{width:100%;min-height:var(--th-input-h);padding:10px 14px;border:var(--th-border-w) solid var(--th-input-border);border-radius:var(--th-input-radius);font:inherit}

/* ==========================================================================
   14. Pages
   ========================================================================== */
.th-page__head{padding-top:28px;padding-bottom:28px}
.th-page--center .th-page__head{text-align:center}
.th-page--center .th-breadcrumbs ol{justify-content:center}
.th-page__title{font-size:var(--th-h1);letter-spacing:-.035em;line-height:1;margin:0 0 16px}
.th-page__content{max-width:var(--th-page-w,760px)}
.th-page--center .th-page__content{margin:0 auto}
.th-page__image{margin-bottom:40px}
.th-page__comments{max-width:var(--th-page-w,760px)}
.th-about__hero{padding-top:28px}
.th-about__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px;align-items:center;margin-top:24px}
.th-about__title{font-size:calc(var(--th-h1) * 1.06);line-height:.98;letter-spacing:-.035em;margin:0 0 20px}
.th-about__content{font-size:calc(var(--th-prose-size) * 1.05)}
.th-principle__num{font-family:var(--th-heading-font);font-size:48px;line-height:1;color:var(--th-primary);margin:0 0 12px}
.th-principle__title{font-size:26px;margin:0 0 10px}
.th-principle p:last-child{color:var(--th-muted);line-height:1.65}
.th-steps{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:72px}
.th-steps__list{list-style:none}
.th-steps__item{display:flex;gap:24px;padding:22px 0;border-top:var(--th-border-w) solid var(--th-border)}
.th-steps__item:last-child{border-bottom:var(--th-border-w) solid var(--th-border)}
.th-steps__num{font-family:var(--th-meta-font);color:var(--th-primary);min-width:28px}
.th-steps__item h3{font-family:var(--th-body-font);font-size:17px;font-weight:600;letter-spacing:0;margin:0 0 6px}
.th-steps__item p{margin:0;color:var(--th-muted);font-size:15px}
.th-team{list-style:none}
.th-team__person a{display:flex;flex-direction:column;gap:4px;color:var(--th-text)}
.th-team__photo{margin-bottom:12px}
.th-team__name{font-family:var(--th-heading-font);font-size:22px}
.th-team__role{font-size:14px;color:var(--th-muted)}
.th-team__count{font-family:var(--th-meta-font);font-size:11px;color:var(--th-primary-dark);text-transform:uppercase}
.th-cta{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;padding:40px 48px;background:var(--th-primary);color:var(--th-on-primary);border-radius:var(--th-radius)}
.th-cta__title{color:var(--th-on-primary);margin:0 0 8px}
.th-cta p{margin:0;max-width:640px}
.th-about__cta{padding-bottom:var(--th-section-space)}
.th-contactpage .th-withside{padding-bottom:var(--th-section-space)}
.th-contactpage__intro{max-width:680px}
.th-contactpage .th-withside__side{gap:16px;padding-top:0}
.th-contactpage .th-withside__side .th-box{background:var(--th-card);border:var(--th-border-w) solid var(--th-border);padding:22px;border-radius:var(--th-radius)}
.th-contactpage .th-withside__side .th-label{margin-bottom:8px;font-size:12px}
.th-contactpage__email{font-family:var(--th-heading-font);font-size:21px}
.th-contact{background:var(--th-card)}
.th-404__inner{max-width:880px;padding-bottom:var(--th-section-space)}
.th-404__title{font-size:var(--th-h1);line-height:1.02}
.th-404__search{margin:24px 0 48px}

/* ==========================================================================
   15. Footer
   ========================================================================== */
.th-footer{background:var(--th-footer-bg,#f4f4f2);color:var(--th-footer-color,#111);border-top:var(--th-border-w) solid var(--th-footer-border,#111);font-size:14px;margin-top:0}
.th-footer a{color:var(--th-footer-color,#111)}
.th-footer a:hover{color:var(--th-primary-dark)}
.th-footer__grid{display:grid;grid-template-columns:repeat(var(--th-footer-cols,4),minmax(0,1fr));gap:32px;padding-top:56px;padding-bottom:40px}
.th-footer__heading{font-family:var(--th-body-font);font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;margin:0 0 12px;color:var(--th-footer-color)}
.th-footer__links{list-style:none;display:flex;flex-direction:column;gap:8px}
.th-footer__tagline{margin:12px 0 0;line-height:1.6;color:var(--th-footer-muted,#555)}
.th-footer__bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding-top:18px;padding-bottom:28px;border-top:var(--th-border-w) solid var(--th-border);font-size:13px;color:var(--th-footer-muted,#555)}
.th-footer__bar a{color:var(--th-footer-muted,#555)}
.th-footer__copy{margin:0}
.th-footer__bar-right{display:flex;flex-wrap:wrap;align-items:center;gap:20px}
.th-footer__legal{list-style:none;display:flex;flex-wrap:wrap;gap:6px 20px}
.th-social{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
.th-social a{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:var(--th-border-w) solid var(--th-border);border-radius:var(--th-btn-radius,0)}
.th-social a:hover{border-color:var(--th-text)}
.th-footer .th-subform .th-btn{min-height:var(--th-input-h)}

/* ==========================================================================
   16. Responsive
   ========================================================================== */
@media (max-width:1199px){
	.th-essay__layout.has-side{grid-template-columns:200px minmax(0,1fr)}
}
@media (max-width:1023px){
	.th-withside.has-side,.th-withside.th-side--left{grid-template-columns:minmax(0,1fr);gap:24px}
	.th-withside.th-side--left .th-withside__side{order:0}
	.th-lead__grid,.th-lead--text-right .th-lead__grid{grid-template-columns:minmax(0,1fr);gap:28px}
	.th-lead__media{order:-1}
	.th-spot__grid,.th-subband__grid,.th-about__grid,.th-steps{grid-template-columns:minmax(0,1fr);gap:28px}
	.th-archive-head--banner .th-archive-head__box{grid-template-columns:minmax(0,1fr)}
	.th-archive-head--banner .th-archive-head__media{order:-1}
	.th-archive-head__media .th-img{min-height:220px}
	.th-mega__grid,.th-mega__grid.has-featured{grid-template-columns:repeat(2,minmax(0,1fr))}
	.th-mega__featured{display:none}
	.th-essay__layout.has-side{grid-template-columns:minmax(0,1fr)}
	.th-essay__side{order:2}
	.th-essay__sticky{position:static}
	.th-essay__side .th-toc{display:none}
	.th-essay__main .th-toc--top{display:block}
}
@media (max-width:639px){
	.th-row{grid-template-columns:var(--th-row-img,110px) minmax(0,1fr);gap:16px}
	.th-row-img--right .th-row{grid-template-columns:minmax(0,1fr) var(--th-row-img,110px)}
	.th-row .th-row__arrow{display:none}
	.th-row__excerpt{display:none}
	.th-form__row--2{grid-template-columns:minmax(0,1fr)}
	.th-prevnext{grid-template-columns:minmax(0,1fr)}
	.th-prevnext__link--next{text-align:left}
	.th-archive-head--banner .th-archive-head__text{padding:28px 22px}
	.th-cta{padding:28px 22px}
	.th-modal__inner{padding:28px 22px}
	.th-section__head{align-items:flex-start}
	.th-list-tools{width:100%}
	.th-filters{width:100%;overflow-x:auto;scrollbar-width:none}
	.th-filters__list{flex-wrap:nowrap;width:max-content}
	.th-authorbox{flex-direction:column}
}

/* ==========================================================================
   17. Print — essays print cleanly (great for "save as PDF")
   ========================================================================== */
@media print{
	.th-utility,.th-header,.th-footer,.th-essay__side,.th-after__widgets,.th-aftersub,.th-related,.th-prevnext,.th-progress,.th-slidein,.th-modal,.th-drawer,.th-searchpanel,.th-breadcrumbs,.th-tools,.th-subband,.th-cite__tabs,.th-cite button,.th-comments{display:none!important}
	body{background:#fff;color:#000;font-size:11pt}
	.th-essay__layout,.th-essay__layout.has-side{display:block;padding:0}
	.th-prose{font-size:11.5pt;line-height:1.5;color:#000}
	.th-prose a{color:#000;text-decoration:underline}
	.th-prose a[href^="http"]::after{content:" (" attr(href) ")";font-size:9pt;color:#555}
	.th-sidenote{display:block!important;float:none!important;margin:4pt 0 8pt!important;width:auto!important;font-size:9pt}
	.th-cite__panel[hidden]{display:block!important}
	.th-essay__title{font-size:26pt}
	h2,h3{break-after:avoid}
	img,figure,blockquote{break-inside:avoid}
}

/* Search panel (mega) with live results */
.th-searchpanel__box{max-height:calc(100vh - 40px);overflow:auto}
.th-searchpanel__box .th-wrap.th-sp{display:block}
.th-sp__form{display:flex;gap:10px;align-items:center}
.th-sp__input{font-size:clamp(18px,2.2vw,24px);padding:14px 16px}
.th-sp__form.is-loading .th-sp__input{background-image:linear-gradient(90deg,transparent 0,var(--th-border,#e5e5e5) 50%,transparent 100%);background-size:200% 2px;background-repeat:no-repeat;background-position:0 100%;animation:th-sp-load 1s linear infinite}
@keyframes th-sp-load{to{background-position:-200% 100%}}
.th-sp__hint{margin:10px 0 0;color:var(--th-muted,#555);font-size:13px}
.th-sp__start,.th-sp__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:28px;margin-top:24px}
.th-sp__start[hidden],.th-sp__results[hidden]{display:none}
.th-sp__grid .th-sp__col:first-child{grid-column:span 2}
.th-sp__head{margin:0 0 10px}
.th-sp__list{list-style:none;margin:0;padding:0;counter-reset:sp}
ol.th-sp__list li{counter-increment:sp;display:flex;gap:10px;padding:8px 0;border-bottom:1px solid var(--th-border,#e5e5e5)}
ol.th-sp__list li::before{content:counter(sp,decimal-leading-zero);color:var(--th-primary,#cf2e2e);font-weight:700;font-size:13px}
.th-sp__list a{color:inherit;text-decoration:none}
.th-sp__list a:hover .th-sp__title,.th-sp__item:focus .th-sp__title{color:var(--th-primary,#cf2e2e)}
.th-sp__list--results li{border-bottom:1px solid var(--th-border,#e5e5e5)}
.th-sp__item{display:flex;gap:12px;align-items:center;padding:10px 4px}
.th-sp__item:focus{outline:2px solid var(--th-primary,#cf2e2e);outline-offset:0}
.th-sp__img{width:56px;height:56px;object-fit:cover;flex:0 0 56px;border-radius:var(--th-img-radius,0)}
.th-sp__text{display:flex;flex-direction:column;gap:3px;min-width:0}
.th-sp__title{font-family:var(--th-font-heading,inherit);font-size:17px;line-height:1.3}
.th-sp__meta{font-size:12px;color:var(--th-muted,#555);text-transform:uppercase;letter-spacing:.06em}
.th-sp__pills{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.th-sp__none{margin:24px 0 0;color:var(--th-muted,#555)}
.th-sp__all{margin:20px 0 0}
.th-search-suggest{margin:14px 0 0;font-size:15px}
@media (max-width:760px){.th-sp__grid .th-sp__col:first-child{grid-column:auto}.th-sp__start,.th-sp__grid{grid-template-columns:1fr}}
/* Meta extras */
.th-meta__tags a,.th-essay__tags a{color:inherit}
.th-essay__tags{margin:14px 0 0;font-size:14px;color:var(--th-muted,#555)}
.th-footer__credit{margin:0}
.th-footer__bar-right .th-footer__copy,.th-footer__bar-right .th-footer__credit{margin:0}
