/*
Theme Name: PDMS Reference Blue
Theme URI: https://pdms.example
Author: PDMS
Description: Editorial homepage closely based on the PDMS approved reference screenshot. Demo media are placeholders.
Version: 1.2.0
Text Domain: pdms-reference
*/
:root{--blue:#0750b9;--deep:#082e70;--nav:#073e92;--ink:#0d1728;--line:#e4e8f0}*{box-sizing:border-box}body{margin:0;background:white;color:var(--ink);font-family:Arial,Helvetica,sans-serif}a{color:inherit;text-decoration:none}.wrap{max-width:1500px;margin:auto;padding:0 46px}.mast{display:flex;align-items:center;gap:30px;min-height:106px}.brand{display:flex;align-items:center;gap:14px;min-width:440px}.brand img{width:96px;height:90px;object-fit:contain}.brand-title{font-size:22px;line-height:1.04;font-weight:800;letter-spacing:-.5px}.brand-title small{display:block;font-size:12px;font-weight:500;margin-top:9px;letter-spacing:0}.tag{border-left:1px solid #ccd2de;padding-left:30px;flex:1}.tag strong{font-size:18px;font-weight:500}.tag span{display:block;margin-top:8px;font-size:14px}.utilities{display:flex;align-items:center;gap:25px;white-space:nowrap}.search-btn,.menu-btn{border:0;background:none;font-size:27px;cursor:pointer}.lang{border:1px solid #d8dce5;border-radius:24px;display:flex;overflow:hidden}.lang a{padding:10px 20px;font-weight:bold}.lang .active{background:var(--deep);color:white;border-radius:24px}.nav{background:var(--nav);color:#fff}.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px}.nav a{font-size:16px;font-weight:700;padding:18px 12px;white-space:nowrap}.nav a:first-child{border-bottom:3px solid white}.nav a:hover{background:#0d5ac5}.hero{background:#071b36;color:white;padding:18px 0 32px}.hero-grid{display:grid;grid-template-columns:1.75fr .9fr;gap:44px;align-items:center}.hero-img{position:relative;height:367px;border-radius:10px;overflow:hidden;background:#19395b}.hero-img img{width:100%;height:100%;object-fit:cover}.play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:76px;height:76px;border:4px solid white;border-radius:50%;font-size:32px;background:#0004;color:white}.eyebrow{display:inline-block;padding:7px 10px;background:var(--blue);font-weight:bold;font-size:13px;letter-spacing:.4px}.hero-copy h1{font:700 clamp(36px,3.5vw,54px)/1.05 Georgia,serif;margin:14px 0 18px}.hero-copy p{font-size:19px;line-height:1.55;margin:0 0 23px}.meta{font-size:14px}.dots{text-align:center;margin-top:13px}.dots i{display:inline-block;width:28px;height:4px;border-radius:5px;background:#fff;margin:0 4px}.dots i:first-child{background:#5ca2ff}.categories{background:#f8faff;padding:20px 0 28px}.cat-grid{display:grid;grid-template-columns:repeat(6,1fr)}.cat{padding:0 22px;border-right:1px solid #dfe3eb;min-height:145px}.cat:first-child{padding-left:12px}.cat:last-child{border:0}.cat-icon{width:56px;height:43px;border-radius:11px;background:#e3ecff;color:var(--deep);display:grid;place-items:center;font-size:27px;margin-bottom:9px}.cat h3{font:700 22px/1.02 Georgia,serif;margin:0 0 7px}.cat p{font-size:16px;line-height:1.3;color:#535763;margin:0}.lower{display:grid;grid-template-columns:1fr 1fr 1fr;gap:32px;padding-top:30px}.column{border-right:1px solid var(--line);padding-right:26px}.column:last-child{border:0;padding-right:0}.section-title{font:700 31px Georgia,serif;margin:0 0 26px}.section-title:after{content:'';display:block;background:var(--blue);width:72px;height:4px;margin-top:10px}.story{display:flex;gap:22px}.story img{width:42%;height:128px;object-fit:cover;border-radius:8px}.story h3{font:700 18px/1.22 Georgia,serif;margin:12px 0 17px}.story .eyebrow{font-size:11px;padding:5px 7px}.story .meta{color:#666}.doc{height:200px;border-radius:10px;position:relative;overflow:hidden;color:#fff;background:#071b36}.doc img{width:100%;height:100%;object-fit:cover}.doc-overlay{position:absolute;inset:0;padding:23px;background:linear-gradient(90deg,#0009,#0001);display:flex;flex-direction:column;justify-content:space-between}.doc-overlay h2{font:700 35px Georgia,serif;margin:8px 0}.doc-overlay span{font-size:13px;border:1px solid #fff;padding:5px 8px;align-self:flex-start}.foot{margin-top:70px;background:#061e49;color:white;padding:32px 0;font-size:14px}.mobile-nav{display:none}button{font:inherit}@media(max-width:1150px){.mast{flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.brand{min-width:0}.tag{min-width:300px}.nav-inner{overflow-x:auto;justify-content:flex-start}.hero-grid{gap:25px}.cat{padding:0 10px}.cat h3{font-size:18px}}@media(max-width:760px){.wrap{padding:0 18px}.mast{gap:10px}.brand img{width:72px;height:72px}.brand-title{font-size:17px}.tag{border:0;padding:0;order:3;min-width:100%;font-size:14px}.tag strong{font-size:15px}.utilities{margin-left:auto;gap:9px}.lang a{padding:7px 10px}.menu-btn{display:none}.nav-inner{min-height:48px}.nav a{font-size:13px;padding:14px 10px}.hero-grid{grid-template-columns:1fr}.hero-img{height:245px}.hero-copy h1{font-size:37px}.hero-copy p{font-size:16px}.cat-grid{grid-template-columns:repeat(2,1fr);gap:22px 0}.cat{min-height:130px}.lower{grid-template-columns:1fr}.column{border:0;border-bottom:1px solid var(--line);padding:0 0 24px}.story img{width:42%}}

/* PDMS responsive navigation — v1.1; desktop appearance retained */
.pdms-menu-list{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;margin:0;padding:0;width:100%}
.pdms-menu-list li{margin:0;padding:0}
@media (max-width: 760px) {
  html,body{max-width:100%;overflow-x:clip}
  .mast{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;padding-top:12px;padding-bottom:12px;min-height:0}
  .brand{grid-column:1/-1;min-width:0;gap:8px}
  .brand img{width:66px;height:66px;flex-shrink:0}
  .brand-title{font-size:19px}
  .utilities{grid-column:1/-1;grid-row:2;justify-self:end;margin:0;gap:12px}
  .menu-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;font-size:27px;line-height:1}
  .tag{grid-column:1/-1;grid-row:3;order:unset;min-width:0;padding:0;margin-top:0}
  .tag strong{font-size:15px;line-height:1.25;display:block}
  .tag span{font-size:12px;line-height:1.4;margin-top:4px}
  .nav{display:none;overflow:visible}
  .nav.pdms-nav-open{display:block}
  .nav .nav-inner{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;width:100%;min-width:0;max-width:100%;min-height:0;overflow:visible;padding-top:4px;padding-bottom:4px}
  .nav .nav-inner>a,.nav .pdms-menu-list a{display:block;width:100%;font-size:15px;padding:13px 8px;white-space:normal;border-bottom:1px solid #ffffff30}
  .nav .pdms-menu-list{display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%;padding:0;margin:0}
  .nav .pdms-menu-list li{width:100%}
  .nav a:first-child{border-bottom:1px solid #ffffff30}
  .hero-grid,.lower,.cat-grid{min-width:0}
  .hero-img{width:100%;max-width:100%;height:245px}
  .hero-img img{display:block;max-width:100%}
}
@media (min-width:761px) {.menu-btn{display:none}}

/* v1.2: internal pages and archive templates only; homepage styling unchanged */
.pdms-page,.pdms-archive{padding-top:46px;padding-bottom:72px;min-height:420px}
.pdms-page-title,.pdms-archive-heading h1{font:700 clamp(32px,4vw,50px)/1.15 Georgia,serif;margin:0 0 26px}
.pdms-page-content{max-width:1100px;font-size:18px;line-height:1.7}
.pdms-page-content img{max-width:100%;height:auto}
.pdms-page-content .wp-block-query{max-width:100%}
.pdms-page-content .wp-block-post-template{padding-left:0}
.pdms-kicker{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin:0 0 12px}
.pdms-archive-description{font-size:18px;line-height:1.6;margin-bottom:30px;max-width:900px}
.pdms-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;margin:30px 0}
.pdms-post-card{min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}
.pdms-post-card-link{display:block;height:100%}
.pdms-post-card img,.pdms-post-placeholder{display:block;width:100%;height:200px;object-fit:cover}
.pdms-post-placeholder{display:grid;place-items:center;background:#e8efff;color:var(--deep);font-weight:800;font-size:30px}
.pdms-post-card-body{padding:20px}
.pdms-post-meta{font-size:13px;color:#5c6470;margin:0 0 12px}
.pdms-post-card h2{font:700 24px/1.2 Georgia,serif;margin:0 0 12px}
.pdms-post-card-body>p:last-child{line-height:1.55;color:#4d5666;margin-bottom:0}
.pdms-post-card-link:hover h2{color:var(--blue)}
.pdms-empty{padding:28px 0;color:#515b6a}
@media(max-width:900px){.pdms-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pdms-page,.pdms-archive{padding-top:28px;padding-bottom:48px}.pdms-post-grid{grid-template-columns:1fr;gap:20px}.pdms-post-card img,.pdms-post-placeholder{height:210px}.pdms-page-content{font-size:16px}}
