/* ===== Site A: Standards Catalog ===== */
/* Deep navy + gold + cream — library/archive aesthetic */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:17px}
body{font-family:Georgia,'Noto Serif','Times New Roman',serif;line-height:1.75;color:#2c3a3a;background:#fcf9f2;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%}

.container{max-width:1040px;margin:0 auto;padding:0 28px}

/* Header */
.site-header{background:#0d2b3e;color:#fcf9f2;border-bottom:4px solid #bd9b60}
.site-header .container{display:flex;justify-content:space-between;align-items:center;height:68px}
.site-logo{font-family:Georgia,serif;font-size:1.35rem;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:#fcf9f2}
.site-logo em{font-style:normal;color:#bd9b60}
.site-nav{display:flex;gap:36px;font-size:0.82rem;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','Helvetica Neue',sans-serif;font-weight:500;letter-spacing:0.6px;text-transform:uppercase}
.site-nav a{color:#8ca3b0;transition:color .15s;padding:4px 0;border-bottom:2px solid transparent}
.site-nav a:hover,.site-nav a.active{color:#bd9b60;border-bottom-color:#bd9b60}

/* Breadcrumb */
.breadcrumb{background:#fff;border-bottom:1px solid #e8e0d0}
.breadcrumb .container{display:flex;align-items:center;height:36px;gap:6px;font-size:0.78rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.breadcrumb a{color:#5a6e7a}
.breadcrumb a:hover{color:#0d2b3e}
.breadcrumb .sep{color:#bd9b60}
.breadcrumb .current{color:#2c3a3a;font-weight:600}

/* Hero */
.hero{background:linear-gradient(172deg,#0d2b3e 0%,#163a52 55%,#0d2b3e 100%);color:#fcf9f2;padding:72px 0 64px;text-align:center;position:relative;margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%)}
.hero::after{content:'';position:absolute;bottom:0;left:0;right:0;height:120px;background:linear-gradient(to top,rgba(189,155,96,.08),transparent);pointer-events:none}
.hero h1{font-family:Georgia,serif;font-size:2.6rem;font-weight:400;letter-spacing:0.8px;margin-bottom:12px;line-height:1.3;max-width:1040px;margin-left:auto;margin-right:auto}
.hero h1 b{color:#bd9b60;font-weight:400}
.hero p{font-size:1rem;color:#a3bcc8;max-width:520px;margin:0 auto 32px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.65}
.hero-actions{display:flex;gap:12px;justify-content:center;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.btn{padding:14px 30px;font-size:0.88rem;font-weight:600;cursor:pointer;transition:all .2s;letter-spacing:0.4px;border-radius:3px}
.btn-primary{background:#bd9b60;color:#0d2b3e;border:none}
.btn-primary:hover{background:#c9ab78;transform:translateY(-1px);box-shadow:0 6px 20px rgba(189,155,96,.25)}
.btn-outline{background:transparent;color:#bd9b60;border:1.5px solid rgba(189,155,96,.4)}
.btn-outline:hover{border-color:#bd9b60;background:rgba(189,155,96,.06)}

/* Stats */
.stats-bar{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-bottom:1px solid #e8e0d0;margin-left:calc(-50vw + 50%);margin-right:calc(-50vw + 50%);padding:0 28px}
.stat-item{text-align:center;padding:30px 16px;border-right:1px solid #f2ede2}
.stat-item:last-child{border-right:none}
.stat-number{font-family:Georgia,serif;font-size:2.2rem;font-weight:700;color:#0d2b3e;line-height:1.1}
.stat-label{font-size:0.76rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-transform:uppercase;letter-spacing:0.8px;margin-top:6px}

/* Sections */
.section{padding:52px 0}
.section-alt{background:#fff;border-top:1px solid #e8e0d0;border-bottom:1px solid #e8e0d0}
.section-header{margin-bottom:30px;display:flex;align-items:baseline;gap:20px}
.section-header h2{font-family:Georgia,serif;font-size:1.3rem;font-weight:400;color:#0d2b3e;letter-spacing:0.4px;flex-shrink:0}
.section-header h2::after{content:'';display:inline-block;width:40px;height:1px;background:#bd9b60;margin-left:16px;vertical-align:middle}
.section-nav{margin-left:auto;font-size:0.82rem;color:#bd9b60;font-weight:500;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;white-space:nowrap}
.section-nav:hover{text-decoration:underline}

/* ICS Grid */
.ics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e8e0d0;border:1px solid #e8e0d0}
.ics-card{background:#fff;padding:22px 18px;transition:all .2s}
.ics-card:hover{background:#fcf9f2}
.ics-card__code{font-family:'SF Mono','Cascadia Code','Fira Code',monospace;font-size:0.9rem;color:#2c3a3a;font-weight:600;margin-bottom:6px;letter-spacing:0.3px}
.ics-card__name{font-size:0.88rem;color:#2c3a3a;line-height:1.4;margin-bottom:4px;font-weight:500}
.ics-card__count{font-size:0.76rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}

/* Type row */
.type-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e8e0d0;border:1px solid #e8e0d0}
.type-cell{background:#fff;padding:28px 18px;text-align:center;transition:all .2s}
.type-cell:hover{background:#fcf9f2}
.type-cell svg{display:block;margin:0 auto 12px;opacity:.7}
.type-cell span{font-size:0.85rem;color:#2c3a3a;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}

/* Influence list */
.influence-list{background:#fff;border:1px solid #e8e0d0}
.rank-row{display:flex;align-items:center;gap:16px;padding:14px 22px;border-bottom:1px solid #f2ede2;transition:background .15s}
.rank-row:last-child{border-bottom:none}
.rank-row:hover{background:#fcf9f2}
.rank-num{width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-size:1.1rem;font-weight:700;flex-shrink:0;border-radius:50%}
.rank-num._1{background:#fdf3e0;color:#8b6914}
.rank-num._2{background:#f0f4f6;color:#4a606e}
.rank-num._3{background:#fdf0e5;color:#a0522d}
.rank-num._n{background:#f2ede2;color:#6b7a82}
.rank-body{flex:1;min-width:0}
.rank-body strong{font-size:0.92rem;color:#2c3a3a;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-body .pub{font-size:0.78rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.rank-cite{font-size:0.78rem;color:#8b9a9e;text-align:right;flex-shrink:0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.rank-cite b{color:#0d2b3e;font-size:1.05rem;font-family:Georgia,serif}

/* Standard row */
.std-list{border:1px solid #e8e0d0;background:#fff}
.std-row{display:flex;align-items:stretch;border-bottom:1px solid #f2ede2;transition:all .15s;min-height:90px}
.std-row:last-child{border-bottom:none}
.std-row:hover{background:#fcf9f2}
.std-row__code{flex-shrink:0;width:220px;background:#0d2b3e;color:#fcf9f2;padding:18px 20px;display:flex;flex-direction:column;justify-content:center;border-left:3px solid #bd9b60}
.std-row__code .num{font-family:'SF Mono','Cascadia Code','Fira Code',monospace;font-size:0.85rem;font-weight:600;color:#fff;line-height:1.4;letter-spacing:0.2px}
.std-row__code .pub{font-size:0.72rem;color:#8ca3b0;margin-top:4px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.std-row__code .ics{display:inline-block;margin-top:6px;font-family:'SF Mono','Cascadia Code','Fira Code',monospace;font-size:0.72rem;color:#bd9b60;font-weight:500}
.std-row__body{flex:1;min-width:0;padding:18px 22px;display:flex;flex-direction:column;justify-content:center}
.std-row__body h3{font-size:0.95rem;font-weight:600;color:#2c3a3a;margin-bottom:4px;line-height:1.4}
.std-row__body h3 a:hover{color:#0d2b3e}
.std-row__body .meta{font-size:0.76rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.std-row__body .desc{font-size:0.84rem;color:#5a6e7a;margin-top:6px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.badge-replaced{background:#fdf3e0;color:#8b6914;font-size:0.68rem;padding:1px 8px;border-radius:2px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:4px;padding:36px 0 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 8px;font-size:0.85rem}
.pagination a{color:#5a6e7a}
.pagination a:hover{background:#f2ede2;color:#0d2b3e;border-radius:2px}
.pagination .current{background:#0d2b3e;color:#fcf9f2;border-radius:2px;font-weight:600}

/* Footer */
.site-footer{background:#fff;border-top:2px solid #e8e0d0;padding:22px 0;font-size:0.8rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.site-footer .container{display:flex;justify-content:space-between;align-items:center}
.footer-nav{display:flex;gap:22px}
.footer-nav a{color:#5a6e7a}
.footer-nav a:hover{color:#0d2b3e}

/* Section numbering */
.section-num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;background:#bd9b60;color:#0d2b3e;font-size:0.72rem;font-weight:700;font-family:Georgia,serif;border-radius:50%;margin-right:10px;flex-shrink:0;line-height:1}

/* ===== Detail Page ===== */
.detail-layout{display:flex;gap:32px;max-width:1040px;margin:0 auto;padding:40px 28px}
.detail-main{flex:1;min-width:0}
.detail-sidebar{flex-shrink:0;width:280px}

/* Spine in hero */
.detail-spine{display:inline-block;background:#0d2b3e;color:#fcf9f2;padding:16px 28px;border-left:3px solid #bd9b60;margin-bottom:18px;text-align:left}
.detail-spine .num{font-family:'SF Mono','Cascadia Code','Fira Code',monospace;font-size:1.05rem;font-weight:600;color:#fff;letter-spacing:0.2px;line-height:1.4}
.detail-spine .sub{font-size:0.76rem;color:#8ca3b0;margin-top:4px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}

/* Badge row */
.detail-badges{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:16px}
.badge{display:inline-block;font-size:0.72rem;padding:3px 10px;border-radius:2px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:500;letter-spacing:0.3px}
.badge--type{background:rgba(189,155,96,.15);color:#bd9b60}
.badge--ics{background:rgba(255,255,255,.12);color:#a3bcc8;border:1px solid rgba(255,255,255,.1)}
.badge--cited{background:rgba(255,255,255,.08);color:#a3bcc8}
.badge--ics:hover{background:rgba(255,255,255,.18);color:#fff}

/* Key Takeaways */
.takeaway{background:#fff;border-left:3px solid #bd9b60;padding:20px 24px;margin-bottom:32px}
.takeaway h3{font-family:Georgia,serif;font-size:0.95rem;font-weight:600;color:#0d2b3e;margin-bottom:8px}
.takeaway p{font-size:0.88rem;color:#5a6e7a;line-height:1.7}

/* Version Timeline */
.timeline{margin-bottom:32px}
.timeline h3{font-family:Georgia,serif;font-size:1rem;font-weight:600;color:#0d2b3e;margin-bottom:16px}
.timeline__track{position:relative;padding-left:20px}
.timeline__track::before{content:'';position:absolute;left:6px;top:4px;bottom:4px;width:2px;background:#e8e0d0}
.timeline__node{display:flex;align-items:baseline;gap:14px;padding:6px 0;position:relative}
.timeline__dot{flex-shrink:0;width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid #bd9b60;position:relative;z-index:1}
.timeline__dot--current{background:#bd9b60;box-shadow:0 0 0 4px rgba(189,155,96,.2)}
.timeline__dot--other{background:#fff;border-color:#c5cdd0}
.timeline__label{font-size:0.85rem;color:#2c3a3a;line-height:1.5}
.timeline__label strong{color:#0d2b3e}
.timeline__label .tag{font-size:0.7rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin-left:6px}

/* Metadata grid */
.metadata{margin-bottom:32px;background:#fff;border:1px solid #e8e0d0;padding:6px 0}
.metadata h3{font-family:Georgia,serif;font-size:1rem;font-weight:600;color:#0d2b3e;padding:18px 24px 10px}
.metadata dl{display:grid;grid-template-columns:180px 1fr;padding:0 24px 20px}
.metadata dt{font-size:0.78rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-transform:uppercase;letter-spacing:0.4px;padding:7px 0;border-bottom:1px solid #f2ede2}
.metadata dd{font-size:0.88rem;color:#2c3a3a;padding:7px 0;border-bottom:1px solid #f2ede2}
.metadata dd a{color:#0d2b3e;text-decoration:underline;text-decoration-color:#bd9b60}
.metadata dd a:hover{color:#bd9b60}

/* Scope section */
.scope-section{margin-bottom:32px}
.scope-section h3{font-family:Georgia,serif;font-size:1rem;font-weight:600;color:#0d2b3e;margin-bottom:12px}
.scope-section p{font-size:0.9rem;color:#2c3a3a;line-height:1.8}

/* Expert Interpretation */
.interp-section{margin-bottom:32px;background:#fff;border:1px solid #e8e0d0;padding:24px}
.interp-section h2{font-family:Georgia,serif;font-size:1.1rem;font-weight:600;color:#0d2b3e;margin-bottom:8px}
.interp-desc{font-size:0.88rem;color:#5a6e7a;line-height:1.7;margin-bottom:16px}
.interp-body{font-size:0.9rem;color:#2c3a3a;line-height:1.8}
.interp-body h2,.interp-body h3{font-family:Georgia,serif;font-size:1rem;color:#0d2b3e;margin:20px 0 8px}
.interp-body p{margin-bottom:10px}
.interp-body ul,.interp-body ol{margin:8px 0;padding-left:22px}
.interp-body li{margin-bottom:4px}

/* FAQ */
.faq-section{margin-bottom:32px}
.faq-section h2{font-family:Georgia,serif;font-size:1.1rem;font-weight:600;color:#0d2b3e;margin-bottom:16px}
.faq__item{border:1px solid #e8e0d0;border-bottom:none;background:#fff}
.faq__item:last-child{border-bottom:1px solid #e8e0d0}
.faq__q{padding:14px 20px;font-size:0.9rem;font-weight:600;color:#2c3a3a;cursor:pointer;user-select:none;display:flex;justify-content:space-between;align-items:center;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.faq__q::after{content:'+';font-size:1.2rem;color:#bd9b60;flex-shrink:0;margin-left:12px;transition:transform .2s}
.faq__item.open .faq__q::after{content:'\2212'}
.faq__a{display:none;padding:0 20px 16px;font-size:0.86rem;color:#5a6e7a;line-height:1.7}
.faq__item.open .faq__a{display:block}

/* Citation network */
.cite-network{margin-bottom:32px;background:#fff;border:1px solid #e8e0d0;padding:24px}
.cite-network h3{font-family:Georgia,serif;font-size:1rem;font-weight:600;color:#0d2b3e;margin-bottom:16px}
.cite-stats{display:flex;gap:24px;margin-bottom:18px}
.cite-stat{text-align:center}
.cite-stat__num{font-family:Georgia,serif;font-size:1.6rem;font-weight:700;color:#0d2b3e}
.cite-stat__label{font-size:0.74rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-transform:uppercase;letter-spacing:0.4px}
.cite-nodes{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.cite-node{display:inline-block;font-size:0.78rem;padding:4px 10px;background:#f2ede2;color:#2c3a3a;border-radius:2px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.cite-node.self{background:#0d2b3e;color:#fcf9f2}
.cite-node:hover{background:#e0d8c4;color:#0d2b3e}
.cite-section-label{font-size:0.76rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:8px 0 4px}

/* CTA */
.cta-block{text-align:center;padding:28px 0 16px}
.cta-btn{display:inline-block;padding:16px 36px;font-size:0.95rem;font-weight:600;background:#bd9b60;color:#0d2b3e;border-radius:3px;transition:all .2s;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:0.3px}
.cta-btn:hover{background:#c9ab78;transform:translateY(-1px);box-shadow:0 6px 20px rgba(189,155,96,.25)}

/* Sidebar */
.detail-sidebar{display:flex;flex-direction:column;gap:20px}
.sidebar__card{background:#fff;border:1px solid #e8e0d0;padding:20px}
.sidebar__card h4{font-family:Georgia,serif;font-size:0.9rem;font-weight:600;color:#0d2b3e;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #f2ede2}
.sidebar__link{display:block;padding:8px 0;border-bottom:1px solid #f8f5ed;font-size:0.82rem;color:#2c3a3a;line-height:1.4}
.sidebar__link:last-child{border-bottom:none;padding-bottom:0}
.sidebar__link:hover{color:#bd9b60}
.sidebar__link .meta{display:block;font-size:0.72rem;color:#8b9a9e;font-family:'SF Mono','Cascadia Code',monospace;margin-top:2px}
.sidebar__cta{background:#0d2b3e;color:#fcf9f2;padding:22px;text-align:center;border:1px solid #1a3d54}
.sidebar__cta h4{font-family:Georgia,serif;font-size:0.95rem;font-weight:600;color:#bd9b60;margin-bottom:6px}
.sidebar__cta p{font-size:0.8rem;color:#8ca3b0;line-height:1.5;margin-bottom:12px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.sidebar__cta a{display:inline-block;padding:10px 22px;font-size:0.82rem;font-weight:600;background:#bd9b60;color:#0d2b3e;border-radius:2px;transition:all .2s;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.sidebar__cta a:hover{background:#c9ab78}

/* Sales page */
.sales-card{background:#fff;border:1px solid #e8e0d0;padding:24px;margin-bottom:20px}
.sales-card h3{font-family:Georgia,serif;font-size:1rem;font-weight:600;color:#0d2b3e;margin-bottom:14px}
.sales-card dl{display:grid;grid-template-columns:160px 1fr;gap:5px 0}
.sales-card dt{font-size:0.76rem;color:#8b9a9e;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-transform:uppercase;letter-spacing:0.4px;padding:4px 0;border-bottom:1px solid #f8f5ed}
.sales-card dd{font-size:0.9rem;color:#2c3a3a;padding:4px 0;border-bottom:1px solid #f8f5ed}
.sales-email a{color:#0d2b3e;font-family:'SF Mono','Cascadia Code',monospace;font-size:0.88rem;border-bottom:1px solid #bd9b60}
.sales-email a:hover{color:#bd9b60}
.sales-steps{list-style:none;padding:0;margin:0;counter-reset:step}
.sales-steps li{counter-increment:step;display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #f2ede2;font-size:0.88rem;color:#2c3a3a;line-height:1.6}
.sales-steps li:last-child{border-bottom:none}
.sales-steps li::before{content:counter(step);flex-shrink:0;width:26px;height:26px;background:#bd9b60;color:#0d2b3e;font-size:0.72rem;font-weight:700;font-family:Georgia,serif;border-radius:50%;display:flex;align-items:center;justify-content:center}
.sales-back{display:inline-block;font-size:0.85rem;color:#5a6e7a;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.sales-back:hover{color:#bd9b60}

@media(max-width:768px){
  .stats-bar,.ics-grid,.type-row{grid-template-columns:repeat(2,1fr)}
  .hero h1{font-size:1.8rem}
  .site-nav{gap:18px}
  .std-row__code{width:150px}
  .detail-layout{flex-direction:column}
  .detail-sidebar{width:100%}
  .metadata dl{grid-template-columns:1fr}
  .metadata dt{border-bottom:none;padding-bottom:2px}
  .sales-card dl{grid-template-columns:1fr}
  .sales-card dt{border-bottom:none;padding-bottom:1px}
}
@media(max-width:480px){
  .ics-grid,.type-row,.stats-bar{grid-template-columns:1fr}
  .site-header .container{flex-direction:column;height:auto;padding:14px 28px;gap:8px}
  .std-row{flex-direction:column}
  .std-row__code{width:100%;border-left:none;border-bottom:2px solid #bd9b60}
  .detail-layout{padding:20px 14px}
  .detail-spine{padding:12px 18px}
  .detail-spine .num{font-size:0.9rem}
  .cite-stats{flex-direction:column;gap:12px}
  .sidebar__card,.sidebar__cta{padding:14px}
}
