/* Component geometry measured against the accepted desktop + mobile references.
   Decorative frames are independent from live HTML labels and 44px hit areas. */
@font-face{font-family:"Kronika Serif";src:url(fonts/kronika-serif-regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Kronika Serif";src:url(fonts/kronika-serif-bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Kronika Serif";src:url(fonts/kronika-serif-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Kronika Serif";src:url(fonts/kronika-serif-bold-italic.woff2) format("woff2");font-weight:700;font-style:italic;font-display:swap}
.theme-kronika{font-family:var(--kr-font);font-size:16px;line-height:1.35;font-synthesis:none}
.theme-kronika .scroll-document{font-family:var(--kr-font)}
.kr-navigation a{font-size:clamp(17px,1.4vw,20px);font-weight:400;line-height:1.2}
.kr-navigation a:hover,.kr-languages a:hover{color:#fff3d6}
.kr-hero-copy h1{font-size:clamp(38px,3.6vw,52px);font-weight:700;line-height:.98;letter-spacing:0}
.kr-hero-subtitle{font-size:clamp(18px,1.52vw,22px);line-height:1.2}
.kr-hero-download p{font-size:17px;line-height:1.35}
.kr-section-title{font-size:clamp(28px,2.5vw,36px);line-height:1.1;font-weight:700;letter-spacing:0}
.kr-section-title--large{font-size:clamp(34px,3.87vw,56px);line-height:1.05;letter-spacing:0}
.kr-news-copy h3{font-size:26px;line-height:1.1;font-weight:700;letter-spacing:0}
.kr-news-copy p{font-size:16px;line-height:1.3}
.kr-news-meta{font:700 12px/1.35 var(--kr-font);letter-spacing:.18em;color:#274b38}
.kr-news-article--compact h3{font-size:19px;line-height:1.25;font-weight:400}
.kr-news-article--compact .kr-news-meta{font-size:12px;line-height:1.4;letter-spacing:.08em}
.kr-text-link{font:700 19px/1.25 var(--kr-font)}
.kr-ranking-list li{font-size:16px}
.kr-community h2{font-size:36px;line-height:1.1;font-weight:700}

/* Nine-sliced frames keep their corner cuts at the same physical size. */
.kr-button{position:relative;isolation:isolate;min-height:44px;border:0;border-radius:0;background:none;box-shadow:none;padding:10px 24px;gap:10px;color:#fff4dc!important;font:700 20px/1.15 var(--kr-font);filter:drop-shadow(0 3px 2px #071a1459);text-shadow:0 1px 1px #0c261d80}
.kr-button::before{content:"";position:absolute;inset:0;z-index:-1;border:12px solid transparent;border-image:url(images/controls/button-brass.svg) 12 fill stretch;pointer-events:none;transition:filter .18s ease}
.kr-button:hover,.kr-button:active{background:none;border-color:transparent}
.kr-button:hover::before{filter:brightness(1.13)}
.kr-button:active::before{filter:brightness(.96)}
.kr-button--download{min-width:250px;min-height:55px;font-size:26px;padding:11px 24px}
.kr-button--paper{min-height:44px;background:none;border:0;box-shadow:none;color:var(--kr-ink)!important;font-size:18px;font-weight:400;filter:none;text-shadow:none}
.kr-button--paper::before{inset:2px 0;border-width:8px;border-image:url(images/controls/button-paper.svg) 8 fill stretch}
.kr-button--paper:hover{background:none}
.kr-button--paper:hover::before{filter:brightness(.8)}
.kr-button svg{width:24px;height:24px;flex:0 0 24px}

/* Small brass joints sit inside the wood rail; no full-height leather strips. */
.kr-header::before,.kr-header::after{top:calc(50% - 24px);bottom:auto;width:10px;height:48px;border:0;background:url(images/controls/header-joint.svg) center/contain no-repeat;box-shadow:none}
.kr-navigation{position:relative;border-inline-start:0}
.kr-navigation::before,.kr-header-actions::before{content:"";position:absolute;left:0;top:50%;width:7px;height:30px;transform:translateY(-50%);background:url(images/controls/header-divider.svg) center/contain no-repeat;pointer-events:none}
/* Visible language plaques are compact; the entire control remains tappable. */
.kr-header-actions{position:relative;padding-left:23px;border-left:0}
.kr-languages a{position:relative;isolation:isolate;min-height:44px;min-width:44px;padding:8px 5px;font-size:16px;line-height:1.2}
.kr-languages a[aria-current]{border:0;border-radius:0;background:none;box-shadow:none}
.kr-languages a[aria-current]::before{content:"";position:absolute;inset:9px 0;z-index:-1;background:url(images/controls/language-brass.svg) center/100% 100% no-repeat;pointer-events:none}
.kr-language-toggle{position:relative;isolation:isolate;min-width:52px;min-height:44px;border:0;border-radius:0;background:none;box-shadow:none;font-size:16px}
.kr-language-toggle::before{content:"";position:absolute;inset:10px 0;z-index:-1;background:url(images/controls/language-brass.svg) center/100% 100% no-repeat;pointer-events:none}

/* Chapter labels share the top baseline. Only the active V-cut tail hangs down. */
.kr-chapters{height:44px;align-self:center;gap:14px}
.kr-chapters a{position:relative;isolation:isolate;gap:12px;min-width:160px;min-height:44px;padding:8px 18px;border:0;border-radius:0;background:none;box-shadow:none;font:400 18px/1.2 var(--kr-font);transform:none}
.kr-chapters a::before{content:"";position:absolute;inset:2px 0;z-index:-1;border:8px solid transparent;border-image:url(images/controls/chapter-green.svg) 8 fill stretch;pointer-events:none}
.kr-chapters a[aria-current]{border:0;background:none;box-shadow:none;transform:none}
.kr-chapters a[aria-current]::before{inset:0 0 -15px;border:0;background:url(images/controls/chapter-active.svg) center/100% 100% no-repeat;filter:drop-shadow(0 2px 1px #1a291e55)}
.kr-chapter-number{color:#d7b66c;font-size:19px;line-height:1;flex:0 0 auto}
.kr-chapters a:hover{color:#fff6dc}
.kr-chapters a:hover::before{filter:brightness(1.1)}

/* The same wood/brass plate is used by the submit and collapsed preview. */
.kr-account-toggle{position:relative;font:700 22px/1.15 var(--kr-font)}
.kr-account-toggle::after{content:"";position:absolute;bottom:-3px;left:calc(50% - 3px);width:6px;height:6px;border:1px solid #b29256;background:#f7ecd2;transform:rotate(45deg);pointer-events:none}
.kr-account-field label{font:400 14px/1.25 var(--kr-font)}
.theme-kronika .kr-account .kr-account-field input{font:400 16px/1.3 var(--kr-font)}
.theme-kronika .kr-account .kr-account-field input::placeholder{font-family:var(--kr-font);font-style:italic;color:transparent;opacity:1}
.kr-remember{font:400 14px/1.3 var(--kr-font)}
.theme-kronika .kr-account button.kr-login-seal{width:96px;height:96px;padding:15px;background-image:url(images/seal-fidelity.png);font:400 15px/1.1 var(--kr-font);letter-spacing:0;box-shadow:0 4px 5px #39271338;text-shadow:0 1px 2px #24140699}
.kr-account-help{font:400 13px/1.25 var(--kr-font)}
.kr-account-help a{text-decoration-thickness:1px;text-underline-offset:2px}
.kr-rank-medallion{font-size:16px}

.kr-community-links{position:relative;gap:44px;align-items:center;flex-wrap:nowrap}
.kr-community-links::before{content:"";position:absolute;left:50%;top:10px;width:1px;height:24px;background:#776f50;pointer-events:none}
.kr-community .kr-button{flex:1 1 170px;min-width:0;max-width:170px;padding:8px 14px;font-size:18px;font-weight:400;gap:8px}
.kr-social-arrow{font-size:18px;line-height:1;flex:0 0 auto;align-self:center}
.kr-community h2::after{content:"";display:block;width:160px;height:1px;margin:4px auto 0;background:#315b42}

/* The ranking strip keeps its compact drawn face inside a 44px click area. */
.kr-ranking-tabs{position:relative;isolation:isolate;min-height:44px;border:0;border-radius:0;overflow:visible;background:none}
.kr-ranking-tabs::before{content:"";position:absolute;inset:4px 0;z-index:-2;border:1px solid #b29b72;border-radius:4px;background:#e6d8ba44;pointer-events:none}
.kr-ranking-tabs button{position:relative;isolation:isolate;min-height:44px;padding:7px 8px;border:0;border-radius:0;background:none;font:400 16px/1.15 var(--kr-font)}
.kr-ranking-tabs button::before{content:"";position:absolute;inset:4px 0;z-index:-1;border-right:1px solid #b29b72;pointer-events:none}
.kr-ranking-tabs button:first-child::before{border-radius:4px 0 0 4px}
.kr-ranking-tabs button:last-child::before{border-right:0;border-radius:0 4px 4px 0}
.kr-ranking-tabs button[aria-pressed=true]{background:none}
.kr-ranking-tabs button[aria-pressed=true]::before{background:linear-gradient(#234c36,#143525)}

/* Actions on existing subpages inherit the same frame, with real HTML labels. */
.theme-kronika .scroll-document :is(button[type=submit]:not(.kr-login-seal),.btn,.btn-show,.dashboard-action,.payment-promo__button),.kr-logout,.kr-appearance button{border:8px solid transparent;border-image:url(images/controls/button-brass.svg) 12 fill stretch;border-radius:0;background:none;box-shadow:none;min-height:44px;padding:3px 14px;color:#fff1d9;font:400 17px/1.2 var(--kr-font)}
.theme-kronika .scroll-document :is(button[type=submit]:not(.kr-login-seal),.btn,.btn-show,.dashboard-action):hover{background:none;filter:brightness(1.1)}
.kr-appearance button{border-image-source:url(images/controls/button-paper.svg);border-image-slice:8 fill;color:var(--kr-ink)}
.kr-appearance button[aria-pressed=true]{border-image-source:url(images/controls/chapter-green.svg);background:none;color:#fff1d9}
.kr-download-action{border:8px solid transparent;border-image:url(images/controls/button-brass.svg) 12 fill stretch;background:none;color:#fff1d9;padding:2px 8px;font:400 17px/1.2 var(--kr-font)}
.kr-download-link:hover .kr-download-action{background:none;filter:brightness(1.12)}

@media(max-width:1199px){
 .kr-navigation a{font-size:18px}
 .kr-header-actions{padding-left:0;border-left:0;gap:16px}
 .kr-navigation::before,.kr-header-actions::before{display:none}
 .kr-menu-toggle{position:relative;min-height:44px;padding-left:16px;border-left:0;font:400 18px/1.2 var(--kr-font)}
 .kr-menu-toggle::before{content:"";position:absolute;left:0;top:50%;width:7px;height:24px;transform:translateY(-50%);background:url(images/controls/header-divider.svg) center/contain no-repeat;pointer-events:none}
 .kr-language-toggle{border:0;background:none}
 .kr-hero-copy h1{font-size:clamp(34px,4.1vw,46px);line-height:1.02}
 .kr-section-title{font-size:28px}.kr-section-title--large{font-size:40px}
 .kr-chapters a{min-width:145px;font-size:17px;gap:10px;padding-inline:14px}
 .kr-community-links{gap:24px}
 .kr-community .kr-button{padding-inline:10px;font-size:17px;gap:7px}
 .kr-community h2{font-size:30px}
}
@media(min-width:768px) and (max-width:1199px){
 .kr-community-links{display:grid;grid-template-columns:minmax(0,1fr);width:min(100%,190px);margin-inline:auto;gap:12px}
 .kr-community-links::before{display:none}
 .kr-community .kr-button{width:100%;max-width:none}
}
@media(max-width:767px){
 .kr-header::before,.kr-header::after{display:none}
 .kr-header-actions{gap:14px}.kr-menu-toggle{padding-left:14px;font-size:18px;gap:9px}
 .kr-menu-icon{width:23px;gap:5px}.kr-menu-icon span{height:2.5px;border-radius:2px}
 .kr-navigation a{font-size:17px}.kr-language-toggle{min-width:50px;font-size:16px}
 .kr-hero-copy h1{font-size:clamp(27px,7.18vw,32px);line-height:1.02;letter-spacing:0}
 .kr-hero-subtitle{font-size:16px;line-height:1.25;margin-bottom:17px}
 .kr-hero-download p{font-size:14px;line-height:1.35;margin-top:6px}
 .kr-button--download{min-width:180px;min-height:44px;font-size:19px;padding:8px 18px}
 .kr-button--download::before{inset:4px 0;border-width:7px}
 .kr-section-title{font-size:25px;line-height:1.1}
 .kr-section-title--large{font-size:clamp(29px,7.7vw,33px);line-height:1.05}
 .kr-news-copy h3{font-size:23px;line-height:1.08}
 .kr-news-copy p{font-size:16px;line-height:1.32}
 .kr-news-meta{font-size:12px;letter-spacing:.14em}
 .kr-news-article--compact h3{font-size:17px;line-height:1.25}
 .kr-news-article--compact .kr-news-meta{font-size:12px;letter-spacing:.04em}
 .kr-chapters{height:52px;padding-block:8px 0;gap:7px;align-self:stretch}
 .kr-chapters a{min-width:0;min-height:44px;padding:7px 5px;font-size:clamp(14px,3.85vw,18px);line-height:1.15;gap:0}
 .kr-chapter-number{display:none}
 .kr-chapters a::before{inset:7px 0;border-width:6px}
 .kr-chapters a[aria-current]{transform:none}
 .kr-chapters a[aria-current]::before{inset:0;border:0;background-image:url(images/controls/chapter-active-mobile.svg)}
 .kr-account-toggle{font-size:23px}.kr-account-toggle::after{bottom:-3px}
 .theme-kronika .kr-account .kr-account-field input{font-size:16px}
 .theme-kronika .kr-account .kr-account-field input::placeholder{color:#828775;font-style:italic}
 .kr-account-field label{font-size:16px;line-height:1.25}.kr-remember{font-size:16px;line-height:1.3}
 .theme-kronika .kr-account button.kr-login-seal{width:100px;height:100px;font-size:17px}
 .kr-account-help{font-size:14px;line-height:1.25}
 :is(.kr-account[data-kr-account-expanded=false],.kr-js .kr-account[data-kr-account-initial-open=false]:not([data-kr-account-ready])) .kr-account-toggle{height:60px;min-height:60px;padding:0 100px 0 32px;font-size:20px}
 :is(.kr-account[data-kr-account-expanded=false],.kr-js .kr-account[data-kr-account-initial-open=false]:not([data-kr-account-ready])) .kr-account-toggle::after{display:none}
 :is(.kr-account[data-kr-account-expanded=false],.kr-js .kr-account[data-kr-account-initial-open=false]:not([data-kr-account-ready])) .kr-account-preview-seal{position:absolute;right:25px;top:50%;transform:translateY(-50%);width:68px;height:68px;flex-basis:68px;background-image:url(images/seal-fidelity.png);font:400 12px/1.05 var(--kr-font)}
 :is(.kr-account[data-kr-account-expanded=false],.kr-js .kr-account[data-kr-account-initial-open=false]:not([data-kr-account-ready])) .kr-account-chevron{position:absolute;right:6px;top:calc(50% - 3px);margin:0;transform:translateY(-50%) rotate(45deg)}
 .kr-community-links{gap:16px}.kr-community-links::before{top:10px}
 .kr-community .kr-button{flex:1;min-width:0;max-width:none;font-size:18px;padding-inline:10px;gap:8px}
 .kr-community h2{font-size:29px}
 .kr-ranking-tabs button{font-size:16px;min-height:44px;padding:7px 6px}
 .kr-ranking-list li{font-size:16px}
 .kr-document-heading h1{font-size:30px;letter-spacing:0}
}
@media(max-width:359px){
 .kr-header-actions{gap:8px}.kr-menu-toggle{font-size:16px;padding-left:10px;gap:7px}.kr-language-toggle{min-width:46px}
 .kr-hero-copy h1{font-size:27px}
 :is(.kr-account[data-kr-account-expanded=false],.kr-js .kr-account[data-kr-account-initial-open=false]:not([data-kr-account-ready])) .kr-account-toggle{padding-inline:20px 90px;font-size:19px}
 :is(.kr-account[data-kr-account-expanded=false],.kr-js .kr-account[data-kr-account-initial-open=false]:not([data-kr-account-ready])) .kr-account-preview-seal{width:60px;height:60px;flex-basis:60px;font-size:11px}
 .kr-community-links::before{display:none}.kr-community .kr-button{flex:auto;width:100%}
}

/* One full-width community footer shared by the homepage and every subpage. */
.theme-kronika #app{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
.theme-kronika #main-content{flex:1 0 auto}
.kr-community.kr-community--footer{margin:0;border-block:1px solid #a58a52;background:linear-gradient(110deg,#193e2d,#102d22);color:#fff0d5;text-align:left;box-shadow:inset 0 1px #d2b87526,inset 0 -1px #071b16aa}
.kr-community--footer .kr-community-inner{display:flex;align-items:center;justify-content:space-between;gap:24px 36px;min-height:96px;padding-block:22px}
.kr-community--footer h2{margin:0;color:#fff0d5;font:700 clamp(25px,2.4vw,34px)/1.15 var(--kr-font)}
.kr-community--footer h2::after,.kr-community--footer .kr-community-links::before{display:none}
.kr-community--footer .kr-community-links{display:flex;flex-direction:row;flex-wrap:nowrap;gap:18px;flex:0 0 auto;width:auto;margin:0}
.kr-community--footer .kr-button{flex:0 0 auto;width:auto;max-width:none;min-width:158px;padding:9px 17px;color:#fff0d5!important;font:400 18px/1.2 var(--kr-font)}
.kr-community--footer .kr-button::before{inset:0;border-width:10px}
@media(max-width:767px){
 .kr-community--footer .kr-community-inner{flex-direction:column;align-items:center;gap:20px;padding-block:25px;text-align:center}
 .kr-community--footer h2{font-size:28px}
 .kr-community--footer .kr-community-links{width:min(100%,380px);gap:12px}
 .kr-community--footer .kr-button{flex:1 1 0;min-width:0;padding-inline:10px;font-size:17px}
}
@media(max-width:359px){
 .kr-community--footer .kr-community-links{flex-direction:column;max-width:240px;gap:10px}
 .kr-community--footer .kr-button{flex:0 0 auto;width:100%}
 .kr-community--footer h2{font-size:25px}
}
