/* O’Phys ceramic edition. Original vector ornaments, quiet learning surfaces. */
:root{--bg:#071c30;--panel:#0d263d;--gold:#dfc087;--ivory:#f6efdf;--muted:#bcc8d1}
body{background:radial-gradient(ellipse at 50% 10%,#11334d99,transparent 65%),#071c30}
body:after{display:none}
header{background:#071c30e8;border-bottom-color:#d9bd7933;backdrop-filter:blur(12px)}
header nav{background:transparent;border:0;border-radius:0}
.header-brand span,.footer-brand{font-family:Georgia,serif;letter-spacing:3px}
h1,h2{font-family:Georgia,'Times New Roman',serif;font-weight:400;letter-spacing:-.035em}
.primary{background:linear-gradient(120deg,#eed39a,#cda563);border-color:#e5c68b;color:#10253a;box-shadow:none}
main:has(.ceramic-home){max-width:1440px;padding-top:0}
.ceramic-home{position:relative;padding-top:30px;text-align:center}
.editorial-home:before{display:none}
.ceramic-hero{position:relative;padding:12px 145px 44px;isolation:isolate}
.ceramic-hero:before,.ceramic-hero:after{content:'';position:absolute;top:0;bottom:0;width:240px;max-width:23%;background:url('/assets/ceramic-floral.svg') top left / 100% 100% no-repeat;z-index:-1;pointer-events:none}
.ceramic-hero:before{left:-30px}.ceramic-hero:after{right:-30px;transform:scaleX(-1)}
.ceramic-logo{width:210px;height:auto;display:block;margin:0 auto 26px;mix-blend-mode:screen}
.ceramic-home .hero-eyebrow{color:var(--gold);max-width:680px;margin:0 auto 20px;font-size:10px;letter-spacing:2px}
.ceramic-home .tagline{font-family:Georgia,serif;font-size:clamp(40px,5.4vw,76px);font-weight:400;line-height:1.08;letter-spacing:-.035em;color:var(--ivory)}
.ceramic-home .tagline span{color:var(--ivory)}
.ceramic-home .hero-intro{font-size:15px;color:#d0d9df;max-width:620px;line-height:1.9}
.ceramic-home .hero-bottom{flex-direction:column;gap:12px;margin-top:26px}.ceramic-home .hero-bottom .button{min-width:290px;padding:17px 25px}
.ceramic-subjects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;text-align:left;margin-top:16px}
.ceramic-course{position:relative;display:flex;gap:24px;align-items:center;min-height:170px;padding:65px 30px 28px;border:1px solid #c9aa6380;border-radius:10px;background:#092238;overflow:hidden;transition:background .2s,border-color .2s}
.ceramic-course:before,.subject-module:before{content:'';position:absolute;left:8px;right:8px;top:8px;height:28px;background:#f1e9d7 url('/assets/ceramic-frieze.svg') repeat-x center / 112px 28px;border-bottom:1px solid #d4b679}
.ceramic-course:hover{background:#12334c;border-color:#eed49b}.ceramic-course:focus-visible{outline:3px solid #eacb89;outline-offset:5px}
.ceramic-course-icon{font-family:Georgia,serif;font-style:italic;font-size:57px;color:var(--gold);width:55px;text-align:center;flex-shrink:0}
.ceramic-course>div{min-width:0;flex:1}.ceramic-course strong{display:block;font:400 clamp(25px,3vw,38px)/1.2 Georgia,serif}.ceramic-course small{display:block;font-size:13px;margin-top:10px;color:#c6d2db}.ceramic-course>.ui-icon{color:var(--gold)}
.ceramic-shortcuts{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 30px;margin-top:24px;font-size:12px;color:#c9d4dc}.ceramic-shortcuts a{min-height:44px;display:inline-flex;align-items:center}.ceramic-home .scroll-link{margin-top:8px}
.ceramic-method{background:#f5edde;color:#102d47;padding:48px 50px;margin-top:36px;border:1px solid #d6bd86;border-radius:3px;position:relative}
.ceramic-method .section-heading{max-width:none;text-align:center;margin-bottom:36px}.ceramic-method .section-heading h2{font-size:clamp(28px,3.3vw,43px);margin:10px 0}.ceramic-method .eyebrow{color:#836634}
.ceramic-method .method-steps{gap:40px}.ceramic-method .method-steps p{color:#405366;font-size:14px}.ceramic-method .method-steps h3{font:400 24px Georgia,serif;color:#102d47}.ceramic-method .step-index{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #b69757;border-radius:50%;color:#8a6833;font:20px Georgia,serif;margin-bottom:18px}
.subject-module{padding-top:58px;background:#0c263e;border-color:#c9aa6355}.subject-module.is-active{border-color:var(--gold)}
.chapter-group{background:#0b243b}.chapter-tile{background:#122e46}.card{background:#0c253b}
.theory-article{background:#f5edde;color:#17334b;border-color:#cbb47d;padding:42px}
.theory-article .lead,.theory-article p,.theory-article .method-list{color:#334d61}.theory-article .eyebrow,.theory-article .formula{color:#785c2a}.theory-article .theory-section{border-color:#17334b22}.theory-article .worked-example{background:#e9dfcb}.theory-article .theory-callout{background:#ded0ae44;border-left-color:#96733b}.theory-article .theory-callout h3{color:#745722}.theory-article .muted{color:#526375}
@media(max-width:900px){.ceramic-hero{padding:20px 80px 32px}.ceramic-hero:before{left:-15px}.ceramic-hero:after{right:-15px}.ceramic-hero:before,.ceramic-hero:after{max-width:19%;opacity:.8}.ceramic-course{gap:14px;padding-left:20px;padding-right:20px}.ceramic-course-icon{font-size:42px;width:35px}.ceramic-method{padding:35px 28px}}
@media(max-width:680px){main:has(.ceramic-home){padding:0 20px 45px}.ceramic-home{padding-top:16px}.ceramic-hero{padding:14px 0 25px}.ceramic-hero:before,.ceramic-hero:after{height:210px;width:76px;max-width:22%;background-size:100% auto;opacity:.72;bottom:auto}.ceramic-hero:before{left:-14px}.ceramic-hero:after{right:-14px}.ceramic-logo{width:155px;margin-bottom:22px}.ceramic-home .hero-eyebrow{font-size:9px;letter-spacing:1.2px;max-width:290px}.ceramic-home .tagline{font-size:clamp(35px,8.8vw,52px);line-height:1.12;letter-spacing:-.04em}.ceramic-home .hero-intro{font-size:14px}.ceramic-home .hero-bottom .button{min-width:0;width:100%;max-width:360px}.ceramic-subjects{grid-template-columns:1fr;gap:14px;margin-top:8px}.ceramic-course{min-height:142px;padding:52px 22px 20px;gap:20px}.ceramic-course strong{font-size:30px}.ceramic-course small{font-size:12px}.ceramic-course:before{height:21px;background-size:84px 21px}.ceramic-shortcuts{gap:2px 20px;margin-top:16px}.ceramic-method{padding:30px 22px;margin-top:25px}.ceramic-method .method-steps{gap:24px}.ceramic-method .method-steps article{padding-left:0}.ceramic-method .step-index{position:static;margin-bottom:12px}.ceramic-method .section-heading h2{font-size:30px}.theory-article{padding:24px 20px}.subject-module{padding-top:55px}.subject-module:before{height:22px;background-size:88px 22px}}
body:before{display:none}

/* Ottoman garden: original lale ornaments and four clear entrances. */
.ceramic-hero{padding:26px 70px 30px}
.ceramic-hero:before,.ceramic-hero:after{width:170px;max-width:15%;background-size:100% auto;top:36px;opacity:1}
.ceramic-hero:before{left:-40px}.ceramic-hero:after{right:-40px}
.ceramic-portals{display:grid;grid-template-columns:minmax(0,1fr) 230px minmax(0,1fr);grid-template-rows:repeat(2,auto);gap:18px 30px;align-items:stretch;margin:32px auto 38px;max-width:1000px}
.ceramic-emblem{grid-column:2;grid-row:1 / 3;align-self:center;position:relative;padding:30px 5px}
.ceramic-emblem:before,.ceramic-emblem:after{content:'';display:block;width:50px;height:1px;background:#c9aa6380;margin:0 auto 24px}
.ceramic-emblem:after{margin:24px auto 0}.ceramic-logo{width:190px;max-width:100%;margin:0 auto 20px}.emblem-caption{font-size:8px;letter-spacing:2px;color:#dfc087}
.ceramic-portal{position:relative;text-align:left;display:flex;flex-direction:column;min-width:0;padding:22px 24px 28px;border:1px solid #cfaf6c66;border-radius:4px;background:linear-gradient(135deg,#17334aee,#0b2439f5);color:#f6efdf;box-shadow:inset 0 0 0 5px #0b243977;transition:transform .2s,border-color .2s,background .2s}
.portal-1{grid-column:1;grid-row:1}.portal-2{grid-column:3;grid-row:1}.portal-3{grid-column:1;grid-row:2}.portal-4{grid-column:3;grid-row:2}
.portal-heading{display:flex;justify-content:space-between;align-items:center;color:#dfc087;margin-bottom:13px}.portal-heading .ui-icon{width:25px;height:25px}.portal-number{font:italic 13px Georgia,serif;color:#c9aa6399}
.ceramic-portal strong{font:400 25px/1.15 Georgia,serif}.portal-subtitle{font-size:11px;color:#e6d2ab;margin-top:9px;line-height:1.5}.ceramic-portal small{font-size:10px;color:#b7c9d4;margin-top:4px;padding-right:15px;line-height:1.6}.portal-arrow{position:absolute;bottom:18px;right:15px;color:#dfc087}.portal-arrow .ui-icon{width:16px;height:16px}
.ceramic-portal:hover{transform:translateY(-3px);border-color:#e5c78c;background:#193b52}.ceramic-portal:focus-visible{outline:3px solid #f0d79e;outline-offset:4px}
.ceramic-home .tagline{font-size:clamp(36px,4.3vw,58px)}
@media(max-width:1050px){.ceramic-hero{padding-left:38px;padding-right:38px}.ceramic-portals{grid-template-columns:minmax(0,1fr) 170px minmax(0,1fr);gap:16px}.ceramic-portal{padding:20px 18px 24px}.ceramic-portal strong{font-size:23px}.ceramic-emblem .ceramic-logo{width:160px}}
@media(max-width:760px){.ceramic-hero{padding:12px 0 25px}.ceramic-portals{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto auto;gap:12px;margin:16px 0 28px}.ceramic-emblem{grid-column:1 / -1;grid-row:1;padding:0 0 20px}.ceramic-emblem:before,.ceramic-emblem:after{display:none}.ceramic-emblem .ceramic-logo{width:155px;margin-bottom:10px}.portal-1{grid-column:1;grid-row:2}.portal-2{grid-column:2;grid-row:2}.portal-3{grid-column:1;grid-row:3}.portal-4{grid-column:2;grid-row:3}.ceramic-portal{padding:17px 14px 27px}.ceramic-portal strong{font-size:23px}.portal-subtitle{font-size:11px}.ceramic-portal small{font-size:10px}.portal-heading{margin-bottom:12px}.ceramic-hero:before,.ceramic-hero:after{top:55px;width:85px;max-width:24%;height:230px;opacity:1}.ceramic-hero:before{left:-17px}.ceramic-hero:after{right:-17px}.ceramic-home .tagline{font-size:36px}.ceramic-home .hero-eyebrow{max-width:300px}.ceramic-home .hero-intro{line-height:1.7}}
@media(prefers-reduced-motion:reduce){.ceramic-portal{transition:none}.ceramic-portal:hover{transform:none}}

/* Shared horizontal ornaments on every route; the content stays unobstructed. */
#main::before,#main::after{content:'';display:block;box-sizing:border-box;width:100%;height:42px;border:0 solid transparent;border-bottom-width:42px;border-image-source:url('/assets/ottoman-garden.webp');border-image-slice:0 420 235 420;border-image-width:0 0 42px 0;border-image-repeat:round;pointer-events:none}
#main::before{margin:0 auto 34px}
#main::after{margin:48px auto 0}
.ceramic-hero{border:0;background:none;padding:8px 28px 24px}
.ceramic-hero::before,.ceramic-hero::after{display:none}
.ceramic-home{padding-top:0}
.ceramic-portals{margin-top:24px;margin-bottom:28px}
.ceramic-portal{background:linear-gradient(135deg,#102c42f5,#091f33f5)}
/* Replace the earlier ceramic strips with the approved painted frieze. */
.subject-module::before{background:none;left:12px;right:12px;top:6px;height:25px;border:0 solid transparent;border-bottom-width:25px;border-image-source:url('/assets/ottoman-garden.webp');border-image-slice:0 420 235 420;border-image-width:0 0 25px 0;border-image-repeat:round}
@media(max-width:760px){#main::before,#main::after{height:25px;border-bottom-width:25px;border-image-width:0 0 25px 0}#main::before{margin-bottom:22px}#main::after{margin-top:32px}.ceramic-hero{padding:0 0 20px;margin:0}.ceramic-emblem{background:none;min-height:0;padding:8px 25px 18px;margin:0}.ceramic-emblem .ceramic-logo{width:145px}.ceramic-portals{gap:12px}.ceramic-portal{padding:16px 12px 26px}.ceramic-portal strong{font-size:22px}.ceramic-home .tagline{font-size:34px}}
@media print{#main::before,#main::after{display:none}}
