/*
Theme Name: Okapi Solingen Heritage
Theme URI: https://okapi-solingen.de/
Author: Heritage Reconstruction
Description: Historical Ernst Gerling / Okapi Solingen archive layout with editable theme options.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: okapi-heritage
*/
:root{--ok-black:#050505;--ok-grey:#bcbcbc;--ok-body:#666;--ok-width:1090px}*{box-sizing:border-box}body{margin:0;background:#fff;color:#222;font-family:Georgia,'Times New Roman',serif}.ok-wrap{max-width:var(--ok-width);margin:28px auto 0;border:2px solid #161616;border-radius:70px 0 0 0;overflow:hidden;min-height:90vh;background:#fff}.ok-header{background:var(--ok-black);color:#bdbdbd;text-align:center;font:700 26px Arial,sans-serif;padding:9px 10px 12px}.ok-nav{background:var(--ok-grey);display:flex;flex-wrap:wrap;font:700 15px Arial,sans-serif}.ok-nav a{flex:1;text-align:center;min-width:110px;padding:6px 12px;text-decoration:none;color:#444;border-right:2px dotted #fff}.ok-nav a:hover,.ok-nav .current-menu-item a,.ok-nav a[aria-current=page]{color:#000;background:#aaa}.ok-main{padding:28px 20px 45px;min-height:650px}.ok-home-hero{text-align:center;margin:60px auto 90px}.ok-home-hero img{display:block;width:min(750px,100%);height:auto;margin:auto}.ok-home-hero .ok-image-placeholder{height:310px;width:min(750px,100%);margin:auto;background:#eee;border:1px solid #ccc;display:grid;place-items:center;color:#777;font:20px Arial,sans-serif}.ok-home-intro{color:var(--ok-body);font-size:20px;font-weight:bold;line-height:1.16}.ok-home-intro p{margin:0 0 5px}.ok-counter{text-align:center;font:bold 23px Arial,sans-serif;margin-top:310px;color:#000}.ok-footer{background:#000;color:#bbb;text-align:right;padding:8px 14px;font:12px Arial,sans-serif}.ok-page-title{font:700 20px Arial,sans-serif;color:#000;margin:0 0 28px}.ok-prose{font:15px/1.55 Georgia,serif;color:#444}.ok-prose p{margin:0 0 16px}.ok-prose img{max-width:100%;height:auto}.ok-history{font:15px/1.5 Georgia,serif}.ok-history figure{margin:8px 15px 15px 0;float:left;max-width:170px}.ok-history figure:nth-of-type(even){float:right;margin:8px 0 15px 15px}.ok-history img{max-width:100%;height:auto}.ok-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}.ok-gallery figure{margin:0}.ok-gallery img{width:100%;height:auto;display:block}.ok-products{max-width:660px}.ok-products figure{margin:0 0 8px}.ok-products img{max-width:100%;height:auto;display:block}.ok-products .ok-photo{margin:0 0 10px}.ok-contact-banner{max-width:690px;margin:0 auto 60px}.ok-contact-banner img{width:100%;height:auto}.ok-contact p{font-size:19px;line-height:1.5;color:#666;font-weight:bold}.ok-contact a{color:#000}.ok-empty{border:1px dashed #aaa;background:#fafafa;padding:30px;color:#777;font:14px Arial,sans-serif}.ok-note{font:12px Arial,sans-serif;color:#777;margin-top:30px}.ok-screenreader{position:absolute;left:-9999px}@media(max-width:700px){.ok-wrap{margin:8px;border-radius:35px 0 0 0}.ok-header{font-size:22px}.ok-nav a{font-size:12px;min-width:33%;padding:10px 4px}.ok-main{padding:20px 14px}.ok-home-hero{margin:35px auto 45px}.ok-home-intro{font-size:17px}.ok-counter{margin-top:130px}.ok-gallery{grid-template-columns:1fr}.ok-history figure,.ok-history figure:nth-of-type(even){float:none;max-width:240px;margin:10px auto}}

/* Original-style layout restoration */
html{scroll-behavior:smooth}body{background:#fff!important} .ok-wrap{width:calc(100% - 48px);max-width:var(--ok-width);margin:28px auto 0;min-height:calc(100vh - 28px);display:flex;flex-direction:column;border:2px solid #111;border-radius:75px 0 0 0;overflow:hidden} .ok-header{flex:none;padding:8px 12px 13px;line-height:1.15;letter-spacing:.3px;font-size:26px} .ok-nav{flex:none;min-height:26px;align-items:stretch;border-bottom-right-radius:34px;overflow:hidden}.ok-nav a{flex:0 0 15%;min-width:0;font-size:15px;font-weight:400;padding:4px 8px;border-right:2px dotted #f4f4f4;line-height:1.15}.ok-nav a[aria-current=page]{font-weight:bold;background:transparent}.ok-nav a:hover{background:#aaa}.ok-main{flex:1;min-height:0;padding:0 20px 24px;display:flex;flex-direction:column}.ok-home-hero{margin:90px auto 95px;width:100%;text-align:center}.ok-home-hero img{width:min(750px,100%);height:auto;display:block;margin:auto}.ok-home-intro{font-family:Georgia,'Times New Roman',serif;font-size:19px;font-weight:700;line-height:1.16;color:var(--ok-body)}.ok-home-intro p{margin:0 0 2px}.ok-counter{margin-top:auto!important;padding-top:300px;padding-bottom:0;font:700 23px Arial,sans-serif}.ok-footer{flex:none;min-height:31px;padding:8px 14px;background:#000}.ok-page-title{margin-top:24px}.ok-gallery,.ok-products,.ok-contact,.ok-history{margin-top:12px} @media(max-width:700px){.ok-wrap{width:calc(100% - 16px);margin:8px auto 0;border-radius:38px 0 0 0}.ok-header{font-size:22px}.ok-nav{border-bottom-right-radius:15px}.ok-nav a{flex:1 1 33.333%;min-width:0;font-size:12px;padding:9px 4px}.ok-main{padding:0 13px 20px}.ok-home-hero{margin:45px auto 55px}.ok-home-intro{font-size:16px}.ok-counter{padding-top:150px}}

/* v1.2: proper paragraph spacing and clickable inline links */
.ok-home-intro p{margin:0 0 20px!important}
.ok-home-intro h2,.ok-home-intro h3{font-family:Georgia,'Times New Roman',serif;color:#555;margin:32px 0 17px;line-height:1.3}
.ok-home-intro h2{font-size:22px}.ok-home-intro h3{font-size:20px}
.ok-home-intro a,.ok-history a,.ok-prose a{color:#444;text-decoration:underline;text-underline-offset:2px}
.ok-home-intro a:hover,.ok-history a:hover{color:#111}
.ok-home-intro{overflow-wrap:anywhere}

/* v1.3: distinct paragraphs and working linked anchors in saved homepage text */
.ok-home-intro p{display:block;margin:0 0 22px!important;line-height:1.42!important}
.ok-home-intro h2{display:block;margin:36px 0 20px!important;font-size:22px;line-height:1.3!important}
.ok-home-intro a{color:#385d12!important;text-decoration:underline!important;text-underline-offset:3px;overflow-wrap:break-word}
.ok-home-intro a:hover{color:#192c08!important}
