/*
Theme Name: OCT - Gran Magistero
Description: Tema istituzionale autonomo per Ordo Custodum Templi.
Version: 1.0.5
Author: OCT
Text Domain: oct-gran-magistero
Requires PHP: 7.4
*/
:root{--red:#a60000;--ink:#20201e;--ivory:#f7f5ef;--line:#dedbd3}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:white;font:18px/1.65 Georgia,serif}a{color:var(--red)}a:focus-visible,button:focus-visible{outline:3px solid var(--red);outline-offset:4px}img{max-width:100%;height:auto}.wrap{max-width:1200px;margin:auto;padding:0 28px}.mast{display:flex;align-items:center;gap:20px;padding-top:22px;padding-bottom:22px}.mast img{width:74px;display:block}.brand{color:var(--ink);text-decoration:none;font-size:23px;letter-spacing:1px;line-height:1.3}.brand small{display:block;font:14px/1.6 Arial,sans-serif;letter-spacing:2px}.nav{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.nav ul{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 22px;list-style:none;padding:14px 0;margin:0}.nav a{font:14px/1.4 Arial,sans-serif;color:var(--ink);text-decoration:none}.nav a:hover,.nav .current-menu-item>a,.nav .current_page_item>a{color:var(--red);text-decoration:underline}.hero{text-align:center;background:var(--ivory);padding:48px 24px 52px;border-bottom:1px solid var(--line)}.hero img{width:152px}.eyebrow{font:12px/1.5 Arial,sans-serif;letter-spacing:2px;text-transform:uppercase;color:var(--red);margin:18px 0 12px}h1,h2,h3{font-weight:normal;line-height:1.2}h1{font-size:clamp(32px,5vw,58px);margin:12px 0}h2{font-size:clamp(26px,3vw,38px)}.subtitle{font-size:24px;margin:12px 0}.rule{width:56px;height:2px;background:var(--red);margin:24px auto}.values{font:14px/1.6 Arial,sans-serif;text-transform:uppercase;letter-spacing:2px}.button{display:inline-block;background:var(--red);color:white;text-decoration:none;padding:12px 24px;margin-top:24px;font:15px/1.5 Arial,sans-serif}.detail,.intro{max-width:840px;margin:auto;padding:45px 28px}.intro{text-align:center}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding-bottom:55px}.card{border:1px solid var(--line);border-top:2px solid var(--red);padding:24px}.card h3{margin:0;font-size:24px}.card p{font-size:17px}.card a{font:14px Arial,sans-serif}footer{background:var(--ivory);border-top:1px solid var(--line);padding:28px 0;font:14px/1.7 Arial,sans-serif}footer .wrap{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.skip{position:absolute;left:-10000px}.skip:focus{left:10px;top:10px;background:white;padding:12px;z-index:99999}@media(max-width:750px){.cards{grid-template-columns:1fr}.mast{gap:12px}.brand{font-size:18px}.mast img{width:56px}.nav ul{gap:10px 15px}.hero{padding:30px 18px}.hero img{width:120px}.wrap{padding-left:18px;padding-right:18px}}

/* Editorial imagery */
.oct-figure{margin:28px auto;text-align:center}.oct-figure img{display:block;margin:auto;max-height:460px;width:auto;object-fit:contain}.oct-figure figcaption,.oct-duo figcaption{font:13px/1.5 Arial,sans-serif;color:#555;margin-top:10px;text-align:center}.oct-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:28px 0}.oct-duo figure{margin:0;text-align:center;background:var(--ivory);padding:16px}.oct-duo img{height:340px;width:100%;object-fit:contain}.oct-values-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding-top:10px;padding-bottom:38px;text-align:center}.oct-values-grid img{width:72px;height:60px;object-fit:contain}.oct-values-grid span{display:block;font:14px/1.5 Arial,sans-serif;margin-top:8px}.oct-activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:28px 0}.oct-activity-grid div{background:var(--ivory);padding:18px 10px;text-align:center;border:1px solid var(--line);font:15px/1.5 Arial,sans-serif}.oct-activity-grid img{width:52px;height:52px;object-fit:contain;display:block;margin:0 auto 10px}.oct-cover img{width:100%;max-height:440px;object-fit:contain}.oct-home-cover{max-width:1000px;padding:0 28px}.oct-card-icon{height:42px;width:42px;object-fit:contain;display:block;margin-bottom:12px}@media(max-width:750px){.oct-values-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.oct-duo{gap:8px}.oct-duo figure{padding:8px}.oct-duo img{height:auto;max-height:300px}.oct-activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.4: richer editorial composition, original type and palette retained */
.oct4-hero{position:relative;overflow:hidden;isolation:isolate;min-height:530px;display:grid;place-items:center;background:radial-gradient(ellipse at center,#fff 0%,var(--ivory) 65%,#e6e1d6 100%);padding:50px 20px}.oct4-hero:before{content:"";position:absolute;inset:18px;border:1px solid #d6cec0;pointer-events:none;z-index:-1}.oct4-hero-copy{position:relative;z-index:2;width:min(760px,68%);margin:auto}.oct4-hero h1{font-size:clamp(34px,4.1vw,58px)}.oct4-hero .oct4-emblem{width:135px}.oct4-hero-art{position:absolute;bottom:0;width:25%;max-width:330px;height:95%;z-index:1;display:flex;align-items:flex-end;justify-content:center;overflow:hidden}.oct4-left{left:1.5%}.oct4-right{right:1.5%}.oct4-hero-art img{width:100%;height:100%;object-fit:contain;object-position:bottom;mix-blend-mode:multiply;mask-image:linear-gradient(to bottom,#000 85%,transparent 100%)}.oct4-intro{display:grid;grid-template-columns:32% 1fr;gap:46px;align-items:center;padding-top:56px;padding-bottom:56px}.oct4-intro .intro{text-align:left;padding:0;max-width:none}.oct4-intro .intro h2{margin-top:12px}.oct4-intro-art{background:var(--ivory);border:1px solid var(--line);padding:24px;text-align:center}.oct4-intro-art img{width:100%;height:350px;object-fit:contain;mix-blend-mode:multiply}.oct4-intro-art span{display:block;font:12px Arial,sans-serif;letter-spacing:1px;text-transform:uppercase}.oct4-values{background:#242421;color:#fff;padding:36px 0 25px}.oct4-section-heading{text-align:center;padding-top:20px;padding-bottom:18px}.oct4-section-heading h2{margin:8px 0 16px}.oct4-values .eyebrow{color:#e6c997}.oct4-values-grid{gap:16px}.oct4-values-grid>div{border:1px solid #625a4c;padding:22px 10px;background:#2e2e2a}.oct4-values-grid img{width:94px;height:80px}.oct4-values-grid span{font-size:16px}.oct4-feature{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;padding-top:60px;padding-bottom:60px}.oct4-feature-image{background:#292822;padding:20px;display:grid;place-items:center;min-height:320px}.oct4-feature-image img{width:100%;max-width:376px;object-fit:contain}.oct4-directory{background:var(--ivory);padding:24px 0}.oct4-card{padding:0;background:#fff;overflow:hidden;display:flex;flex-direction:column}.oct4-card-art{display:grid;place-items:center;height:170px;background:radial-gradient(ellipse,#fdfbf6,#e8e2d6);border-bottom:1px solid var(--line)}.oct4-card-art img{height:115px;width:115px;object-fit:contain;mix-blend-mode:multiply}.oct4-card:first-child .oct4-card-art img{height:155px;width:auto}.oct4-card:nth-child(7) .oct4-card-art{background:#292822}.oct4-card:nth-child(7) .oct4-card-art img{height:160px;width:auto;mix-blend-mode:normal}.oct4-card-copy{padding:24px;flex:1}.oct4-page-head{background:linear-gradient(110deg,var(--ivory),#e8e3d8);border-bottom:1px solid var(--line)}.oct4-page-head-inner{display:flex;align-items:center;justify-content:space-between;gap:40px;padding-top:44px;padding-bottom:44px}.oct4-page-head h1{margin:8px 0}.oct4-page-head p{font-size:22px;margin:12px 0}.oct4-page-symbol{width:190px;height:180px;flex-shrink:0;display:grid;place-items:center}.oct4-page-symbol img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.oct4-page-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:52px;padding-top:50px;padding-bottom:60px}.oct4-prose h2{font-size:30px;border-left:3px solid var(--red);padding-left:16px;margin:38px 0 15px}.oct4-prose h2:first-child{margin-top:0}.oct4-prose p{margin:0 0 18px}.oct4-side-panel{background:var(--ivory);border:1px solid var(--line);padding:22px;margin-bottom:20px}.oct4-side-panel:first-child{text-align:center}.oct4-side-panel img{width:92px}.oct4-side-panel p{font-style:italic;font-size:17px}.oct4-side-panel a{display:block;border-top:1px solid var(--line);padding:9px 0;font:14px/1.5 Arial,sans-serif;text-decoration:none}.nav a{font-size:15px}.nav ul{gap:10px 20px}.oct4-page .oct-duo img{height:370px}.oct4-page .oct-activity-grid div{padding:24px 12px}.oct4-page .oct-activity-grid img{width:75px;height:75px}
@media(max-width:1000px){.oct4-hero-copy{width:78%}.oct4-hero-art{width:19%;opacity:.65}.oct4-page-layout{grid-template-columns:minmax(0,1fr) 210px;gap:28px}.oct4-intro{gap:24px}.oct4-feature{gap:26px}}
@media(max-width:750px){.oct4-hero{min-height:0;padding:36px 18px 30px}.oct4-hero-copy{width:100%}.oct4-hero-art{display:none}.oct4-hero .oct4-emblem{width:112px}.oct4-intro,.oct4-feature,.oct4-page-layout{grid-template-columns:1fr;gap:24px;padding-top:30px;padding-bottom:30px}.oct4-intro-art img{height:240px}.oct4-page-head-inner{gap:12px;padding-top:30px;padding-bottom:30px}.oct4-page-symbol{width:80px;height:90px}.oct4-page-head h1{font-size:32px}.oct4-page-head p{font-size:18px}.oct4-side{display:none}.oct4-values-grid>div{padding:14px 5px}.oct4-values-grid img{width:65px;height:55px}.oct4-feature-image{min-height:0}.oct4-page .oct-duo img{height:auto}.oct4-card-art{height:145px}}

/* v0.6: wider navigation only; typography and other layout unchanged. */
@media (min-width:1200px){.nav .wrap{max-width:1500px}.nav ul{column-gap:clamp(12px,1.3vw,20px)}.nav li>a{white-space:nowrap}}

.oct8-access{margin-left:auto;border:1px solid var(--red);padding:9px 16px;text-decoration:none;font:14px/1.4 Arial,sans-serif;white-space:nowrap}.oct8-library{padding-top:36px;padding-bottom:50px}.oct8-document{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);padding:16px;margin:12px 0}.oct8-document .button{margin:0;border:0;cursor:pointer}.oct8-document small{font:14px Arial,sans-serif}@media(max-width:600px){.mast{flex-wrap:wrap}.oct8-access{margin-left:0}.oct8-document{flex-wrap:wrap}}
/* v0.9 - institutional member portal */
.oct9-portal .oct8-library{padding-top:40px;padding-bottom:60px}.oct9-welcome{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px 30px;background:var(--ivory);border:1px solid var(--line);border-left:3px solid var(--red)}.oct9-welcome .eyebrow{margin:0 0 8px}.oct9-welcome h2{font-size:30px;margin:0 0 8px}.oct9-welcome p{margin:0;font-size:17px}.oct9-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}.oct9-outline{display:inline-block;border:1px solid var(--red);padding:10px 16px;text-decoration:none;font:14px/1.4 Arial,sans-serif}.oct9-outline:hover{background:var(--red);color:#fff}.oct9-library-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:34px 0 14px}.oct9-library-title h2{margin:0;font-size:30px}.oct9-library-title span{font:13px Arial,sans-serif;color:#555}.oct9-group{border:1px solid var(--line);margin:0 0 20px}.oct9-group-head{display:flex;align-items:center;gap:16px;background:var(--ivory);padding:14px 20px;border-bottom:1px solid var(--line)}.oct9-group-head img{width:44px;height:44px;object-fit:contain;mix-blend-mode:multiply}.oct9-group-head h3{margin:0;font-size:24px}.oct9-group .oct8-document{margin:0;border:0;border-bottom:1px solid var(--line);padding:18px 20px}.oct9-group .oct8-document:last-child{border-bottom:0}.oct9-doc-info{display:flex;align-items:center;gap:15px;min-width:0;overflow-wrap:anywhere}.oct9-pdf{font:bold 12px Arial,sans-serif;color:var(--red);border:1px solid var(--red);padding:12px 8px;flex-shrink:0}.oct9-empty{text-align:center;border:1px dashed #c9c4b8;padding:34px 20px;background:#fdfcf9}.oct9-empty img{width:65px;height:65px;object-fit:contain;mix-blend-mode:multiply}.oct9-empty h3{font-size:25px;margin:10px 0}.oct9-empty p{margin:0;font-size:17px}.oct9-portal .button:hover{background:#780000}@media(max-width:750px){.oct9-welcome{align-items:flex-start;flex-direction:column;padding:20px}.oct9-actions{flex-shrink:1}.oct9-library-title h2{font-size:25px}.oct9-group-head h3{font-size:21px}.oct9-group .oct8-document{padding:14px}.oct9-portal .oct8-library{padding-top:24px;padding-bottom:36px}}

/* v0.10: PDF preview */
.oct10-doc-actions,.oct10-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.oct10-doc-actions form,.oct10-toolbar form{margin:0}.oct10-toolbar .button{margin:0;border:0;cursor:pointer}.oct10-viewer{max-width:1500px;padding-top:28px;padding-bottom:38px}.oct10-toolbar{margin-bottom:16px}.oct10-frame{display:block;width:100%;height:78vh;min-height:440px;border:1px solid var(--line);background:var(--ivory)}.oct10-help{font:14px/1.5 Arial,sans-serif;color:#555}@media(max-width:750px){.oct10-frame{height:65vh;min-height:320px}.oct10-doc-actions{width:100%}}

/* v0.13 - Home and institutional footer. Scope editorial styles to home. */
.oct13-home .wrap,.oct13-footer .wrap{max-width:1380px}.oct13-home .oct4-intro{grid-template-columns:minmax(230px,30%) minmax(0,1fr);gap:clamp(28px,5vw,76px)}.oct13-home .intro p{max-width:78ch}.oct13-link{display:inline-block;font:15px/1.5 Arial,sans-serif;text-underline-offset:4px;margin-top:8px}.oct13-values-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;padding-bottom:38px;text-align:center}.oct13-values-grid article{padding:22px 12px;border:1px solid #625a4c;background:#2e2e2a}.oct13-values-grid img{width:88px;height:80px;object-fit:contain;filter:brightness(1.3)}.oct13-values-grid h3{font-size:23px;margin:12px 0 8px;color:#fff}.oct13-values-grid p{font-size:16px;line-height:1.55;margin:0;color:#f0ece4}.oct13-story{display:grid;grid-template-columns: minmax(220px,30%) minmax(0,1fr);align-items:center;gap:clamp(28px,5vw,76px);padding-top:62px;padding-bottom:62px}.oct13-symbol{display:grid;place-items:center;gap:15px;background:radial-gradient(ellipse,#fff,var(--ivory));border:1px solid var(--line);padding:30px;text-align:center}.oct13-symbol img{width:170px;height:170px;object-fit:contain}.oct13-symbol span{font:12px/1.5 Arial,sans-serif;text-transform:uppercase;letter-spacing:1px}.oct13-service{background:var(--ivory);padding:24px 0 42px}.oct13-service-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.oct13-service-grid>div{background:#292822;color:white;text-align:center;padding:20px 10px}.oct13-service-grid img{width:65px;height:65px;object-fit:contain;filter:brightness(1.2)}.oct13-service-grid h3{font-size:18px;margin:10px 0}.oct13-service-end{text-align:center}.oct13-service-end .button{margin:0 12px 0 0}.oct13-home .oct4-feature-image{min-height:290px}.oct13-home .oct4-feature-image img{max-width:100%;max-height:340px}.oct13-directory .oct4-card-art{background:#292822;height:160px}.oct13-directory .oct4-card-art img{height:94px;width:94px;mix-blend-mode:normal;filter:brightness(1.15)}.oct13-directory .oct13-art-ordine,.oct13-directory .oct13-art-radici-storiche{background:radial-gradient(ellipse,#fff,#e8e2d6)}.oct13-directory .oct13-art-ordine img{height:150px;width:auto;filter:none}.oct13-directory .oct13-art-radici-storiche img{height:105px;width:105px;filter:none}.oct13-directory .oct13-art-academia img{height:150px;width:auto;filter:none}.oct13-directory .oct4-card-copy{padding:22px}.oct13-news{padding-top:40px;padding-bottom:48px}.oct13-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:16px}.oct13-news-grid article{border:1px solid var(--line);border-top:2px solid var(--red)}.oct13-news-grid img{display:block;width:100%;height:180px;object-fit:cover}.oct13-news-copy{padding:20px}.oct13-news-copy time{font:13px Arial,sans-serif;color:#555}.oct13-news-copy h3{font-size:24px;margin:10px 0}.oct13-news-copy h3 a{color:var(--ink)}.oct13-join{background:var(--ivory);border-top:1px solid var(--line);padding:38px 0}.oct13-join .wrap{display:flex;align-items:center;justify-content:space-between;gap:30px}.oct13-join h2{margin:8px 0}.oct13-join p{max-width:75ch}.oct13-join .button{flex-shrink:0;margin:0}.oct13-motto{text-align:center;padding:48px 0;background:#242421;color:#f7f5ef}.oct13-motto img{width:85px}.oct13-motto .eyebrow{color:#e6c997}.oct13-motto p{font-size:clamp(24px,3vw,38px);font-style:italic;line-height:1.35;margin:16px 0}.oct13-motto span{font-size:17px;color:#e3ddcf}.oct13-footer .oct13-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:32px}.oct13-footer-brand{display:flex;gap:14px;align-items:flex-start}.oct13-footer-brand img{width:58px;flex-shrink:0}.oct13-footer-grid>div:not(:first-child) a,.oct13-footer-grid>div:not(:first-child) span{display:block;margin-top:5px}.oct13-footer .oct13-footer-bottom{border-top:1px solid var(--line);margin-top:22px;padding-top:15px;font-size:12px;color:#555}.oct13-footer a{text-underline-offset:3px}.oct13-home .oct4-section-heading p{margin:0 0 12px}@media(max-width:1050px){.oct13-values-grid,.oct13-service-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:750px){.oct13-home .oct4-intro,.oct13-story{grid-template-columns:1fr;gap:24px;padding-top:32px;padding-bottom:32px}.oct13-values-grid,.oct13-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.oct13-news-grid,.oct13-footer .oct13-footer-grid{grid-template-columns:1fr}.oct13-join .wrap{align-items:flex-start;flex-direction:column;gap:12px}.oct13-join .button{white-space:normal}.oct13-directory .oct4-card-art{height:135px}.oct13-values-grid img{width:65px;height:60px}.oct13-symbol img{width:115px;height:115px}.oct13-footer .oct13-footer-bottom{gap:8px}}

/* v0.14 — compact homepage and editorial articles */
.oct14-home .wrap{max-width:1380px}.oct14-home .oct4-hero{min-height:400px;padding:24px 20px}.oct14-home .oct4-hero .oct4-emblem{width:105px}.oct14-home .oct4-hero .eyebrow{margin:8px 0}.oct14-home .oct4-hero h1{font-size:clamp(30px,3.8vw,52px);margin:8px 0}.oct14-home .subtitle{font-size:22px;margin:6px 0}.oct14-home .rule{margin:14px auto}.oct14-home .button{margin-top:8px;padding:10px 20px}.oct14-identity{background:#242421;color:#f7f5ef;padding:24px 0}.oct14-identity-inner{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.oct14-identity .eyebrow{color:#e6c997;margin:0 0 5px}.oct14-identity h2{font-size:27px;margin:0 0 8px}.oct14-identity p{font-size:16px;line-height:1.55;margin:0 0 5px}.oct14-identity a{color:#e6c997}.oct14-values{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;text-align:center}.oct14-values img{width:48px;height:48px;object-fit:contain;filter:brightness(1.3)}.oct14-values span{display:block;font:13px/1.4 Arial,sans-serif}.oct14-news{padding-top:18px;padding-bottom:22px}.oct14-news-head{display:flex;justify-content:space-between;align-items:baseline;gap:15px;flex-wrap:wrap;margin-bottom:12px}.oct14-news-head h2{font-size:28px;margin:0}.oct14-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.oct14-news-grid.oct14-count-1{grid-template-columns:1fr}.oct14-news-grid.oct14-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}.oct14-news-card{border:1px solid var(--line);border-top:2px solid var(--red);padding:12px 16px}.oct14-news-card time{font:12px Arial,sans-serif;color:#555}.oct14-news-card h3{font-size:21px;margin:5px 0}.oct14-news-card h3 a{color:var(--ink);text-decoration:none}.oct14-news-card h3 a:hover{text-decoration:underline}.oct14-news-card p{font-size:15px;line-height:1.5;margin:6px 0}.oct14-news-card .oct13-link{font-size:13px;margin:3px 0}.oct14-news-list{display:grid;gap:16px;margin-top:24px}.oct14-paging{margin-top:20px}.oct14-motto{background:var(--ivory);text-align:center;padding:18px 0;border-top:1px solid var(--line)}.oct14-motto p{font-size:clamp(19px,2.1vw,27px);font-style:italic;line-height:1.4;margin:0 0 4px}.oct14-motto span{font-size:14px}.oct13-footer{padding:18px 0;font-size:13px;line-height:1.5}.oct13-footer .oct13-footer-bottom{margin-top:12px;padding-top:8px}.oct4-page-symbol{overflow:hidden}.oct4-page-symbol img{max-height:100%;min-height:0;display:block}.oct4-prose h2{font-size:27px}.oct14-single{max-width:980px;padding-top:38px;padding-bottom:45px}.oct14-article-head{border-bottom:1px solid var(--line);margin-bottom:26px;padding-bottom:18px}.oct14-article-head .eyebrow{margin:0 0 10px}.oct14-article-head h1{font-size:clamp(29px,3vw,42px);line-height:1.2;margin:0 0 12px}.oct14-meta{font:14px/1.5 Arial,sans-serif;color:#555;margin:0}.oct14-article-body{font-size:18px;line-height:1.7}.oct14-article-body h2{font-size:27px}.oct14-article-body p{margin:0 0 18px}@media(max-width:1000px){.oct14-values{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:750px){.oct14-home .oct4-hero{min-height:0;padding:24px 18px}.oct14-identity-inner{grid-template-columns:1fr;gap:18px}.oct14-news-grid,.oct14-news-grid.oct14-count-2{grid-template-columns:1fr}.oct14-news-head h2{font-size:24px}.oct14-article-body{font-size:17px}.oct14-single{padding-top:24px;padding-bottom:28px}}

/* v0.15: nine compact values */
.oct14-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 12px}.oct14-values img{width:34px;height:34px;filter:none;display:block;margin:0 auto 3px}.oct14-values span{font-size:12px;line-height:1.25}.oct14-values>div{min-width:0}.oct-values-grid{grid-template-columns:repeat(3,minmax(0,1fr))}

/* v0.16: compact news, stronger identity */
.oct14-identity{padding:32px 0}.oct14-identity-inner{gap:48px}.oct14-identity h2{font-size:clamp(25px,2.4vw,32px)}.oct14-identity p{font-size:17px;line-height:1.55}.oct14-values{gap:9px 14px}.oct14-values img{width:50px;height:50px;filter:brightness(1.15)}.oct14-values span{font-size:14px;line-height:1.3}.oct16-news{padding-top:12px;padding-bottom:14px}.oct16-news-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.oct16-news-head h2{font-size:21px;margin:0}.oct16-news-head a{font:13px/1.5 Arial,sans-serif}.oct16-news ul{padding:0;margin:6px 0 0;list-style:none;border-top:1px solid var(--line)}.oct16-news li{display:flex;align-items:baseline;gap:14px;padding:5px 0;border-bottom:1px solid var(--line);font-size:16px;line-height:1.35}.oct16-news time{font:12px/1.5 Arial,sans-serif;color:#555;flex-shrink:0}.oct16-news li a{color:var(--ink);text-decoration:none}.oct16-news li a:hover{text-decoration:underline}@media(max-width:750px){.oct14-identity{padding:24px 0}.oct14-identity-inner{gap:22px}.oct14-values img{width:44px;height:44px}.oct14-values span{font-size:13px}.oct16-news li{align-items:flex-start;gap:10px}}

/* v0.17 internal pages only */
.oct4-page .oct17-values,.oct4-page .oct17-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0 28px}.oct4-page .oct17-values{grid-template-columns:repeat(3,minmax(0,1fr))}.oct17-values>div{background:#242421;color:#f7f5ef;padding:18px 12px;text-align:center}.oct17-values img{display:block;width:44px;height:44px;margin:0 auto 8px}.oct17-values strong{color:#e6c997;font:600 15px/1.4 Arial,sans-serif}.oct17-values p{font-size:15px;line-height:1.45;margin:8px 0 0}.oct17-grid>div{background:var(--ivory);border:1px solid var(--line);border-top:2px solid var(--red);padding:16px}.oct17-grid h3{font-size:20px;margin:0 0 8px}.oct17-grid p{margin:0;font-size:16px}.oct17-module{margin:32px 0}.oct17-top{background:#242421;color:#fff;text-align:center;padding:16px}.oct17-note{font-size:14px;color:#555}.oct17-publications{padding-left:20px}.oct17-publications small{color:#555}.oct4-page-symbol .oct17-symbol{width:125px;height:125px;filter:brightness(.7)}@media(max-width:850px){.oct4-page .oct17-values{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.oct4-page .oct17-grid,.oct4-page .oct17-values{grid-template-columns:1fr}}

/* v0.18 - local historical photographs */
.oct18-photos{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin:24px 0 30px}.oct18-photos.oct18-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.oct18-photos figure{margin:0;min-width:0;background:#f5f3ed;border:1px solid #e4dfd4}.oct18-photos figure>a{display:block}.oct18-photos img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain;background:#ebe8df}.oct18-pair img{aspect-ratio:4/3;object-fit:contain}.oct18-photos figcaption{padding:10px 14px;text-align:left;font-size:14px;line-height:1.45}.oct18-photos figcaption span{display:block;font:12px/1.5 Arial,sans-serif;color:#555}.oct18-photos figcaption a{color:#8b1919}@media(max-width:600px){.oct18-photos.oct18-pair{grid-template-columns:minmax(0,1fr)}}

/* 1.0 - photographs retain intrinsic proportions, without letterboxing */
.oct18-photos{align-items:start;gap:20px}
.oct18-photos figure{background:transparent;border:0;min-width:0;width:100%;margin:0}
.oct18-photos figure>a{display:block;background:transparent}
.oct18-photos figure img,.oct18-photos.oct18-pair img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:initial;background:transparent;margin:0}
.oct18-photos figure.oct-photo-portrait{width:min(100%,400px);justify-self:center}
.oct18-photos figcaption{padding:9px 0 0;background:transparent;border:0}
.oct18-photos figcaption strong{font-size:15px}
.oct18-photos figcaption span{overflow-wrap:anywhere}

/* Final photo sizing: no colored letterboxing, no upscaling. */
.oct18-photos figure img,.oct18-photos.oct18-pair img{width:auto;max-width:100%;height:auto;max-height:620px;object-fit:initial;background:transparent;margin:0 auto}.oct18-photos figure>a{background:transparent}.oct18-photos figure{background:transparent;border:0}.oct18-photos figcaption{background:transparent;padding:8px 0 0}.oct18-photos figure.oct-photo-portrait{max-width:360px}.oct18-pair{align-items:start}@media(max-width:600px){.oct18-photos.oct18-pair{grid-template-columns:1fr}}

/* 1.0.3 - editorial captions */
.oct4-prose .oct18-photos figcaption .oct-photo-description{font:15px/1.5 Georgia,serif;color:#333;margin:5px 0 7px}.oct18-photos figcaption strong{display:block;font-size:16px;line-height:1.35}

/* 1.0.4 - compact editorial galleries, intrinsic proportions, local zoom. */
.oct4-prose .oct18-photos{gap:18px;margin:18px 0 24px;align-items:start}
.oct4-prose .oct18-photos figure{width:fit-content;max-width:100%;justify-self:center;min-width:0}
.oct4-prose .oct18-photos figure>a{display:block;width:fit-content;max-width:100%;margin:auto;cursor:zoom-in}
.oct4-prose .oct18-photos figure img{width:auto;height:auto;max-width:100%;max-height:420px;display:block;margin:auto;background:none}
.oct4-prose .oct18-photos.oct18-pair figure{width:100%;max-width:100%}
.oct4-prose .oct18-photos.oct18-pair figure>a{width:100%;height:clamp(150px,18vw,235px);display:flex;align-items:flex-end;justify-content:center}
.oct4-prose .oct18-photos.oct18-pair figure img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;margin:0}
.oct4-prose .oct18-photos.oct18-pair figure:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - 18px)/2)}
.oct4-prose .oct18-photos figcaption{padding:7px 0 0;text-align:left}
.oct4-prose .oct18-photos figcaption strong{font-size:16px;line-height:1.35}
.oct4-prose .oct18-photos figcaption .oct-photo-description{margin:4px 0 5px;font-size:15px;line-height:1.45}
.oct4-prose .oct18-photos figcaption span{font-size:12px;line-height:1.45;color:#555}
.oct104-dialog{border:0;padding:16px;background:#242421;color:#fff;max-width:95vw;max-height:95vh;overflow:auto;text-align:center}
.oct104-dialog::backdrop{background:rgba(0,0,0,.83)}
.oct104-dialog img{display:block;max-width:85vw;max-height:76vh;width:auto;height:auto;margin:8px auto;object-fit:contain}
.oct104-dialog button{display:block;margin:0 0 8px auto;padding:8px 14px;background:#fff;color:#20201e;border:0;cursor:pointer;font:15px Arial,sans-serif}
.oct104-dialog p{font:15px/1.5 Georgia,serif;margin:8px 0 0}
@media(max-width:600px){.oct4-prose .oct18-photos.oct18-pair figure:last-child:nth-child(odd){grid-column:auto;width:100%}.oct4-prose .oct18-photos.oct18-pair figure>a{height:auto}.oct4-prose .oct18-photos.oct18-pair figure img{max-height:360px}.oct4-prose .oct18-photos figure img{max-height:360px}}

/* 1.0.5 - institutional archive and responsive document controls. */
.oct9-portal .oct8-library{padding-top:46px;padding-bottom:60px}
.oct9-portal .oct9-welcome{padding:22px 24px;border-left:3px solid var(--red);background:var(--ivory)}
.oct9-portal .oct9-welcome h2{font-size:28px}
.oct9-portal .oct9-library-title{margin:34px 0 18px}
.oct9-portal .oct9-library-title h2{border-left:3px solid var(--red);padding-left:16px;font-size:30px}
.oct9-portal .oct9-group{margin-bottom:20px;border-top:2px solid var(--red)}
.oct9-portal .oct9-group-head{padding:12px 18px;gap:12px}
.oct9-portal .oct9-group-head img,.oct9-portal .oct9-group-head svg{width:30px;height:30px;flex-shrink:0;object-fit:contain}
.oct9-portal .oct9-group-head h3{font-size:23px}
.oct9-portal .oct9-group .oct8-document{padding:14px 18px;gap:18px}
.oct9-portal .oct10-doc-actions{flex-shrink:0;gap:8px}
.oct9-portal .oct9-outline,.oct9-portal .oct10-doc-actions .button{padding:10px 14px;font:14px/1.4 Arial,sans-serif;min-height:42px;text-align:center}
.oct9-portal .oct9-pdf{padding:10px 7px}
@media(max-width:750px){.oct9-portal .oct8-library{padding-top:30px;padding-bottom:36px}.oct9-portal .oct9-welcome{padding:18px}.oct9-portal .oct9-library-title h2{font-size:25px}.oct9-portal .oct9-group-head h3{font-size:20px}.oct9-portal .oct9-group .oct8-document{flex-direction:column;align-items:stretch;padding:14px;gap:12px}.oct9-portal .oct10-doc-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;flex-shrink:1}.oct9-portal .oct10-doc-actions form,.oct9-portal .oct10-doc-actions button{width:100%}.oct9-portal .oct9-actions a{min-height:44px}.oct9-portal .oct9-library-title span{flex-shrink:0}}
@media(max-width:360px){.oct9-portal .oct10-doc-actions{grid-template-columns:1fr}}
