/* ==========================================================================
   NWS-360 Service Reference Page — Layout Stylesheet
   Layered on top of northwoods-brand.css. Provides the F/S/M/L tier grid,
   check tables, sample scan boxes, workflow strips, remediation lists,
   deliverables table, owner cards, compliance levels, campaign grid, and
   the inline edit-mode CMS chrome used by NWS-360 service reference pages.
   ========================================================================== */

* , *::before, *::after { box-sizing: border-box; }

body {
  font-size: 14px;
  line-height: 1.6;
}

/* ── HEADER BANNER (extends .BlueBlock from northwoods-brand.css) ── */
.BlueBlock {
  position: relative;
  overflow: hidden;
}
.BlueBlock::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 340px;
  background: repeating-linear-gradient(
    -55deg,
    transparent,
    transparent 18px,
    rgba(136, 172, 62, 0.06) 18px,
    rgba(136, 172, 62, 0.06) 19px
  );
  pointer-events: none;
}
.BlueBlock-inner { position: relative; z-index: 1; }

.breadcrumb {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s ease;
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255, 255, 255, 0.6); }

.BlueBlock h1 {
  font-family: var(--nws-font-primary);
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
  border-bottom: none;
  padding-bottom: 0;
}
.BlueBlock h1 em {
  font-style: normal;
  color: var(--nws-green);
  font-weight: 300;
  display: block;
  font-size: 22px;
  margin-top: 4px;
}
.BlueBlock p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.7;
  margin-top: 12px;
}

.header-meta {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.header-meta-item { display: flex; flex-direction: column; gap: 3px; }
.header-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}
.header-meta-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(136, 172, 62, 0.15);
  border: 1px solid rgba(136, 172, 62, 0.35);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8cc60;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nws-green);
  animation: nws-pulse 2s ease-in-out infinite;
}
.status-pill.planned {
  background: rgba(221, 176, 39, 0.15);
  border-color: rgba(221, 176, 39, 0.35);
  color: #e8c040;
}
.status-pill.planned::before { background: var(--nws-gold); }
.status-pill.low-mod {
  background: rgba(221, 176, 39, 0.15);
  border-color: rgba(221, 176, 39, 0.35);
  color: #e8c040;
}
.status-pill.low-mod::before { background: var(--nws-gold); }
@keyframes nws-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ── GREY STRIPE (extends .GreyStripe from brand) ── */
.GreyStripe {
  padding: 20px 80px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  color: var(--nws-gray-med);
  flex-wrap: wrap;
}
.GreyStripe strong { color: var(--nws-gray-dark); font-weight: 600; }
.stripe-div { border-left: 1px solid #ccc; height: 16px; }

/* ── PAGE BODY ── */
.page-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 80px 80px;
}

/* ── SECTION HEADINGS (explicit — overrides brand auto-h2 rule for margin) ── */
.section-heading {
  font-family: var(--nws-font-primary);
  font-size: 18px;
  font-weight: 500;
  color: var(--nws-teal-dark);
  border-bottom: 2px solid var(--nws-green);
  padding-bottom: 8px;
  margin: 48px 0 20px;
}
.section-heading:first-of-type { margin-top: 0; }

.page-body h3 {
  font-family: var(--nws-font-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nws-forest);
  margin: 24px 0 10px;
  border-bottom: none;
  padding-bottom: 0;
}

/* ── BODY PROSE ── */
.prose {
  font-family: var(--nws-font-secondary);
  font-size: 14px;
  color: var(--nws-gray-dark);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ── CALLOUT BLOCKS ── */
.callout {
  border-left: 4px solid var(--nws-green);
  background: #fff;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--nws-gray-dark);
}
.callout.warning {
  border-left-color: var(--nws-gold);
  background: #fdf8e6;
  color: #5a4200;
}
.callout.alert {
  border-left-color: var(--nws-rust);
  background: #fdf2ec;
  color: #5a2200;
}
.callout strong         { color: var(--nws-teal-dark); }
.callout.warning strong { color: #7a5000; }
.callout.alert strong   { color: var(--nws-rust); }

/* ── OWNER CARD ── */
.owner-card {
  background: #fff;
  border: 1px solid var(--nws-gray-light);
  border-top: 3px solid var(--nws-green);
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 20px 0;
}
.owner-avatar {
  width: 52px;
  height: 52px;
  background: var(--nws-teal-dark);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--nws-green);
  flex-shrink: 0;
  font-family: var(--nws-font-primary);
}
.owner-info { flex: 1; }
.owner-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--nws-teal-dark);
  margin-bottom: 2px;
}
.owner-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nws-forest);
  margin-bottom: 8px;
}
.owner-desc { font-size: 13px; color: var(--nws-gray-dark); line-height: 1.55; }

/* ── TIER CARDS (F / S / M / L) ── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nws-gray-light);
  border: 1px solid var(--nws-gray-light);
  margin: 20px 0 32px;
}
.tier-card {
  background: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.tier-card.featured {
  background: var(--nws-teal-dark);
  color: #fff;
}
.tier-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tier-card:nth-child(1) .tier-label { color: var(--nws-teal); }
.tier-card:nth-child(2) .tier-label { color: var(--nws-green); }
.tier-card:nth-child(3) .tier-label { color: var(--nws-gold); }
.tier-card:nth-child(4) .tier-label { color: var(--nws-green); }
.tier-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--nws-teal-dark);
  margin-bottom: 4px;
}
.tier-card.featured .tier-name { color: #fff; }
.tier-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--nws-teal-dark);
  margin-bottom: 4px;
}
.tier-card.featured .tier-price { color: var(--nws-green); }
.tier-price-note {
  font-size: 11px;
  color: var(--nws-gray-med);
  margin-bottom: 16px;
}
.tier-card.featured .tier-price-note { color: rgba(255, 255, 255, 0.45); }
.tier-items {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  line-height: 1.4;
  padding: 0;
  margin: 0;
}
.tier-items li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--nws-gray-dark);
}
.tier-items li::before { content: none; }
.tier-card.featured .tier-items li { color: rgba(255, 255, 255, 0.8); }
.tier-check {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}
.tier-card:nth-child(1) .tier-check { background: var(--nws-pale-blue);  color: var(--nws-slate); }
.tier-card:nth-child(2) .tier-check { background: var(--nws-pale-green); color: var(--nws-forest); }
.tier-card:nth-child(3) .tier-check { background: var(--nws-cream);      color: var(--nws-rust); }
.tier-card:nth-child(4) .tier-check { background: rgba(136,172,62,0.2);  color: var(--nws-forest); }
.tier-scope {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--nws-gray-light);
  font-size: 11px;
  color: var(--nws-gray-med);
}
.tier-card.featured .tier-scope {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.4);
}

/* ── CHECK TABLE ── */
.check-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0 28px;
  background: #fff;
  border: 1px solid var(--nws-gray-light);
}
.check-table thead tr {
  background: var(--nws-teal-dark);
  color: #fff;
}
.check-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.check-table th:not(:first-child) { text-align: center; width: 80px; }
.check-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--nws-gray-light);
  vertical-align: top;
  color: var(--nws-gray-dark);
  line-height: 1.4;
}
.check-table tr:last-child td { border-bottom: none; }
.check-table tr:nth-child(even) td { background: var(--nws-pale-green); }
.check-table td:not(:first-child) { text-align: center; }
.check-table .cat-row td {
  background: var(--nws-teal-dark) !important;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
}
.check-table .yes  { color: var(--nws-forest);    font-weight: 700; font-size: 13px; }
.check-table .part { color: var(--nws-gold);      font-weight: 700; font-size: 13px; }
.check-table .no   { color: var(--nws-gray-light); font-size: 13px; }

/* ── COMPLIANCE LEVELS (optional — 5-level maturity strip) ── */
.levels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--nws-gray-light);
  margin: 20px 0 28px;
  border: 1px solid var(--nws-gray-light);
}
.level {
  background: #fff;
  padding: 14px 12px;
  text-align: center;
}
.level.current {
  background: var(--nws-teal-dark);
  color: #fff;
}
.level-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--nws-gray-light);
  display: block;
  margin-bottom: 4px;
}
.level.current .level-num { color: var(--nws-green); }
.level-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nws-gray-med);
  display: block;
  margin-bottom: 6px;
}
.level.current .level-name { color: rgba(255, 255, 255, 0.6); }
.level-desc {
  font-size: 11px;
  color: var(--nws-gray-med);
  line-height: 1.4;
  display: block;
}
.level.current .level-desc { color: rgba(255, 255, 255, 0.75); }

/* ── SAMPLE BOX (scan results) ── */
.sample-box {
  background: #fff;
  border: 1px solid var(--nws-gray-light);
  padding: 0;
  margin: 20px 0;
  font-family: var(--nws-font-mono);
  overflow: hidden;
}
.sample-box-header {
  background: var(--nws-teal-dark);
  border-bottom: 1px solid var(--nws-gray-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sample-box-title {
  font-family: var(--nws-font-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nws-green);
}
.sample-box-badge {
  font-family: var(--nws-font-primary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(136, 172, 62, 0.2);
  color: var(--nws-green);
  padding: 2px 8px;
}
.sample-box-body { padding: 16px; }
.scan-domain {
  color: var(--nws-gray-med);
  font-size: 11px;
  margin-bottom: 14px;
}
.scan-domain span { color: var(--nws-teal-dark); font-weight: 600; }
.scan-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--nws-gray-light);
  font-size: 12px;
}
.scan-result:last-child { border-bottom: none; }
.scan-icon {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  flex-shrink: 0;
}
.scan-icon.pass { background: rgba(136, 172, 62, 0.15); color: var(--nws-forest); }
.scan-icon.fail { background: rgba(169,  91, 40, 0.15); color: var(--nws-rust); }
.scan-icon.warn { background: rgba(221, 176, 39, 0.15); color: #b08a10; }
.scan-label { color: var(--nws-gray-med); flex: 1; }
.scan-value { color: var(--nws-gray-dark); font-weight: 700; }
.scan-value.good { color: var(--nws-forest); }
.scan-value.bad  { color: var(--nws-rust); }
.scan-value.warn { color: #b08a10; }
.scan-score-row {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--nws-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.scan-score-label {
  font-family: var(--nws-font-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nws-gray-med);
}
.scan-score-value {
  font-family: var(--nws-font-primary);
  font-size: 18px;
  font-weight: 900;
  color: var(--nws-teal-dark);
}
.scan-score-value em {
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  color: var(--nws-gray-med);
  margin-left: 4px;
}

/* ── REMEDIATION ITEMS (optional — prioritized action list) ── */
.remed-items { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.remed-item {
  background: #fff;
  border: 1px solid var(--nws-gray-light);
  border-left: 4px solid;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
}
.remed-item.high   { border-left-color: var(--nws-rust); }
.remed-item.medium { border-left-color: var(--nws-gold); }
.remed-item.low    { border-left-color: var(--nws-teal); }
.remed-priority {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  white-space: nowrap;
  margin-top: 1px;
}
.high   .remed-priority { background: #fdf2ec;             color: var(--nws-rust); }
.medium .remed-priority { background: #fdf8e6;             color: #a07010; }
.low    .remed-priority { background: var(--nws-pale-blue); color: var(--nws-slate); }
.remed-text { font-size: 13px; color: var(--nws-gray-dark); line-height: 1.45; }
.remed-text small { display: block; font-size: 11px; color: var(--nws-gray-med); margin-top: 3px; }
.remed-timeline {
  font-size: 11px;
  color: var(--nws-gray-med);
  white-space: nowrap;
  font-weight: 500;
  margin-top: 2px;
}

/* ── CAMPAIGN / SERVICE-TYPE GRID (optional — 4-up icon cards) ── */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nws-gray-light);
  border: 1px solid var(--nws-gray-light);
  margin: 20px 0 28px;
}
.campaign-card {
  background: #fff;
  padding: 16px 14px;
  text-align: center;
}
.campaign-card-icon {
  font-size: 22px;
  font-weight: 900;
  color: var(--nws-teal-dark);
  margin-bottom: 6px;
}
.campaign-card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--nws-teal-dark);
  margin-bottom: 4px;
}
.campaign-card-desc {
  font-size: 11px;
  color: var(--nws-gray-med);
  line-height: 1.4;
}

/* ── DELIVERABLES TABLE ── */
.deliverables-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}
.deliverables-table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--nws-teal-dark);
  padding: 9px 14px;
}
.deliverables-table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--nws-gray-light);
  background: #fff;
  vertical-align: top;
  line-height: 1.5;
}
.deliverables-table tr:last-child td { border-bottom: none; }
.deliverables-table .deliverable-name { font-weight: 600; color: var(--nws-teal-dark); }

/* Tier badges used in the deliverables table */
.badge {
  font-family: var(--nws-font-primary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  white-space: nowrap;
}
.badge-f   { background: var(--nws-pale-blue);  color: var(--nws-slate); }
.badge-s   { background: var(--nws-pale-green); color: var(--nws-forest); }
.badge-m   { background: var(--nws-cream);      color: var(--nws-rust); }
.badge-l   { background: var(--nws-teal-dark);  color: #fff; }
.badge-new { background: var(--nws-teal-dark);  color: #fff; }

/* ── WORKFLOW (how the service is delivered today) ── */
.workflow {
  display: flex;
  align-items: stretch;
  gap: 1px;
  margin: 20px 0;
  background: var(--nws-gray-light);
}
.workflow-step {
  background: #fff;
  padding: 16px 14px;
  flex: 1;
  position: relative;
}
.workflow-step-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nws-green);
  margin-bottom: 6px;
}
.workflow-step-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--nws-teal-dark);
  margin-bottom: 4px;
}
.workflow-step-body { font-size: 11px; color: var(--nws-gray-med); line-height: 1.45; }
.workflow-step-person {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--nws-forest);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── BULLET LIST (features & benefits — 2-column) ── */
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  columns: 2;
  column-gap: 32px;
}
.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--nws-gray-dark);
  line-height: 1.5;
  padding: 4px 0;
  break-inside: avoid;
}
.bullet-list li::before {
  content: "\2013";
  color: var(--nws-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0;
}
.bullet-list.single { columns: 1; }

hr.section-rule {
  border: none;
  border-top: 1px solid var(--nws-gray-light);
  margin: 40px 0;
}

/* ── PAGE FOOTER ── */
.page-footer {
  background: var(--nws-gray-light);
  border-top: 1px solid #ccc;
  padding: 20px 80px;
  font-size: 13px;
  color: var(--nws-gray-med);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 20px;
  font-size: 12px;
}
.footer-nav a {
  color: var(--nws-teal);
  text-decoration: none;
  font-weight: 500;
}
.footer-nav a:hover { color: var(--nws-teal-dark); }

/* ── EDIT-MODE CMS CHROME ── */
.edit-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--nws-font-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  background: var(--nws-teal-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: background 0.15s ease;
}
.edit-toggle:hover   { background: #0a5a60; }
.edit-toggle.editing { display: none; }

.edit-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: var(--nws-teal-dark);
  color: #fff;
  padding: 10px 24px;
  font-family: var(--nws-font-primary);
  font-size: 12px;
  align-items: center;
  gap: 16px;
}
.edit-bar.active { display: flex; }
.edit-bar-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nws-green);
  margin-right: auto;
}
.edit-bar button {
  font-family: var(--nws-font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  padding: 7px 16px;
  cursor: pointer;
  color: #fff;
}
.edit-bar .btn-save         { background: var(--nws-green); }
.edit-bar .btn-save:hover   { background: #6e9232; }
.edit-bar .btn-save.saved   { background: var(--nws-gold); color: var(--nws-teal-dark); }
.edit-bar .btn-cancel       { background: var(--nws-rust); }
.edit-bar .btn-cancel:hover { background: #8a4a20; }
.edit-bar .edit-hint        { font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.edit-bar .edit-filename    { font-size: 12px; font-weight: 600; color: var(--nws-gold); }

body.edit-mode [data-editable] {
  outline: 2px dashed var(--nws-green);
  outline-offset: 4px;
  cursor: text;
  min-height: 1em;
}
body.edit-mode [data-editable]:focus {
  outline: 2px solid var(--nws-green);
  background: rgba(136, 172, 62, 0.08);
}
