/* Production-aligned denial-code layout. High-contrast, warm, scannable. */

.cc-dc *, .cc-dc *::before, .cc-dc *::after { box-sizing: border-box; }
.cc-dc { font-family: inherit; color: #1c1917; max-width: 1000px; margin: 0 auto; padding: 0 24px 80px; }
.cc-dc .cc-hero {
  text-align: center; padding: 64px 20px 56px;
  background: radial-gradient(ellipse at 20% 50%, var(--cc-glow-a) 0%, transparent 55%), radial-gradient(ellipse at 80% 50%, rgba(21,128,61,0.06) 0%, transparent 55%);
  border-radius: 28px; margin-bottom: 24px;
}
.cc-dc .cc-code-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1c1917; color: #fdba74;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 22px; font-weight: 800; padding: 10px 24px; border-radius: 10px;
  margin-bottom: 16px; letter-spacing: 0.05em;
}
.cc-dc .cc-code-chip .cc-code-label {
  font-family: inherit; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; color: #e7e5e4;
  border-left: 1px solid #57534e; padding-left: 10px;
}
.cc-dc .cc-reassure {
  display: inline-block; margin: 0 auto 18px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12;
  font-size: 14px; font-weight: 800; padding: 8px 16px; border-radius: 999px;
}
.cc-dc .cc-hero h1 {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(26px, 4vw, 44px) !important; font-weight: 800 !important;
  color: #1c1917 !important; line-height: 1.15 !important; letter-spacing: -0.02em;
  margin: 0 0 16px !important; text-wrap: balance;
}
.cc-dc .cc-hero h1 .cc-hl {
  background: linear-gradient(135deg, var(--cc-accent), #0891b2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cc-dc .cc-hero .cc-sub {
  font-size: clamp(17px, 2vw, 19px); color: #3f3a36;
  max-width: 640px; margin: 0 auto 22px; line-height: 1.55;
}
.cc-dc .cc-viability-hero {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff7ed; border: 2px solid #fed7aa; border-radius: 16px;
  padding: 14px 24px; margin-bottom: 28px;
}
.cc-dc .cc-vh-num { font-size: 38px; font-weight: 900; color: #b45309; line-height: 1; letter-spacing: -1px; }
.cc-dc .cc-vh-high { background: #f0fdf4; border-color: #86efac; }
.cc-dc .cc-vh-high .cc-vh-num { color: #15803d; }
.cc-dc .cc-vh-mid { background: #eff6ff; border-color: #93c5fd; }
.cc-dc .cc-vh-mid .cc-vh-num { color: #1d4ed8; }
.cc-dc .cc-vh-low { background: #fff7ed; border-color: #fed7aa; }
.cc-dc .cc-vh-low .cc-vh-num { color: #b45309; }
.cc-dc .cc-vh-text { text-align: left; }
.cc-dc .cc-vh-text strong { display: block; font-size: 14px; font-weight: 800; color: #1c1917; }
.cc-dc .cc-vh-text span { font-size: 13px; color: #3f3a36; font-weight: 600; }
.cc-dc .cc-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--cc-accent), var(--cc-accent-dark));
  color: #fff !important; padding: 17px 36px; border-radius: 12px;
  font-size: 17px; font-weight: 800; text-decoration: none !important;
  transition: transform 0.2s;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--cc-accent) 40%, transparent);
}
.cc-dc .cc-btn-primary:hover { transform: translateY(-2px); }
.cc-dc .cc-hero-note { margin: 14px auto 0; font-size: 15px; font-weight: 700; color: #166534; }

.cc-dc .cc-sec { margin-bottom: 64px; }
.cc-dc .cc-sec-head { text-align: center; margin-bottom: 36px; }
.cc-dc .cc-sec-head h2 {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(22px, 3vw, 34px) !important; font-weight: 800 !important;
  color: #1c1917 !important; margin-bottom: 10px !important;
}
.cc-dc .cc-sec-head p { font-size: 17px; color: #3f3a36; max-width: 580px; margin: 0 auto; }
.cc-dc .cc-meaning {
  background: #fff; border: 1px solid #e0d8cc; border-radius: 20px;
  padding: 36px 32px; margin-bottom: 24px; box-shadow: 0 4px 20px rgba(28,25,23,0.05);
  border-left: 5px solid var(--cc-accent);
}
.cc-dc .cc-meaning-quote {
  font-size: 17px; font-style: italic; color: #1c1917; font-weight: 600;
  line-height: 1.6; margin-bottom: 20px; padding: 18px 22px;
  background: #faf8f5; border-radius: 12px; border-left: 4px solid var(--cc-accent);
}
.cc-dc .cc-meaning p { font-size: 16px; color: #292524; line-height: 1.7; margin: 0 0 14px; }
.cc-dc .cc-meaning p:last-child { margin: 0; }
.cc-dc .cc-meaning-block { margin: 0 0 28px; }
.cc-dc .cc-meaning-block:last-of-type { margin-bottom: 8px; }
.cc-dc .cc-meaning-kicker {
  margin: 0 0 6px !important;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cc-accent-dark);
}
.cc-dc .cc-meaning-label {
  font-size: 22px !important; font-weight: 800 !important;
  color: #1c1917 !important; margin: 0 0 10px !important; line-height: 1.25 !important;
}
.cc-dc .cc-groups {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; margin-top: 20px;
}
.cc-dc .cc-group {
  background: #faf8f5; border: 1px solid #e0d8cc; border-radius: 14px;
  padding: 16px 16px 18px; text-align: left;
}
.cc-dc .cc-group-here {
  background: #fff7ed; border-color: #fed7aa;
  box-shadow: 0 0 0 2px rgba(253, 186, 116, 0.28);
}
.cc-dc .cc-group-code {
  display: inline-flex; align-items: center;
  background: #1c1917; color: #fdba74;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 13px; font-weight: 800; padding: 6px 12px;
  border-radius: 8px; letter-spacing: 0.04em;
}
.cc-dc .cc-group-here .cc-group-code { color: #fde68a; }
.cc-dc .cc-group-here-label {
  display: inline-block; margin-left: 8px;
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: #9a3412;
}
.cc-dc .cc-group h4 {
  font-size: 15px !important; font-weight: 800 !important;
  margin: 10px 0 6px !important; color: #1c1917 !important;
}
.cc-dc .cc-group p { font-size: 14px !important; margin: 0 !important; color: #3f3a36; line-height: 1.5; }
.cc-dc .cc-faq-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.cc-dc .cc-faq-item { border-top: 1px solid #e0d8cc; padding: 20px 0; }
.cc-dc .cc-faq-item:first-child { border-top: none; padding-top: 4px; }
.cc-dc .cc-faq-item dt { font-size: 17px; font-weight: 800; color: #1c1917; margin: 0 0 8px; line-height: 1.35; }
.cc-dc .cc-faq-item dd { margin: 0; font-size: 15px; color: #44403c; line-height: 1.7; }
.cc-dc .cc-related-codes { display: flex; flex-direction: column; gap: 10px; }
.cc-dc .cc-related-code {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #e0d8cc; border-radius: 12px;
  padding: 14px 18px; font-weight: 700; color: #1c1917 !important; text-decoration: none !important;
}
.cc-dc .cc-related-code:hover { background: #fff7ed; }

.cc-dc .cc-reasons { display: flex; flex-direction: column; gap: 20px; }
.cc-dc .cc-reason {
  background: #fff; border: 1px solid #e0d8cc; border-radius: 20px; padding: 28px;
  box-shadow: 0 4px 20px rgba(28,25,23,0.05); display: grid; grid-template-columns: 44px 1fr; gap: 20px;
}
.cc-dc .cc-reason-num {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--cc-accent), var(--cc-accent-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 800; flex-shrink: 0;
}
.cc-dc .cc-reason h3 { font-size: 18px !important; font-weight: 800 !important; color: #1c1917 !important; margin-bottom: 8px !important; line-height: 1.3 !important; }
.cc-dc .cc-reason p { font-size: 16px; color: #3f3a36; margin: 0; line-height: 1.65; }
.cc-dc .cc-reason p strong { color: #1c1917; }

.cc-dc .cc-scenarios { display: flex; flex-direction: column; gap: 18px; }
.cc-dc .cc-scenario {
  background: #fff; border: 2px solid #1c1917; border-left-width: 6px;
  border-radius: 16px; padding: 24px 26px; box-shadow: 0 8px 24px rgba(28,25,23,0.05);
}
.cc-dc .cc-s1 { border-left-color: var(--cc-accent); }
.cc-dc .cc-s2 { border-left-color: #15803d; }
.cc-dc .cc-s3 { border-left-color: #b45309; }
.cc-dc .cc-sc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.cc-dc .cc-sc-tag {
  margin: 0; font-size: 14px; font-weight: 800; color: var(--cc-accent-dark);
  background: var(--cc-badge-bg); border: 1px solid var(--cc-badge-border);
  padding: 5px 12px; border-radius: 999px;
}
.cc-dc .cc-s2 .cc-sc-tag { background: #f0fdf4; color: #14532d; border-color: #86efac; }
.cc-dc .cc-s3 .cc-sc-tag { background: #fffbeb; color: #92400e; border-color: #fcd34d; }
.cc-dc .cc-sc-title { font-size: 18px; font-weight: 800; color: #1c1917; margin: 0 0 12px; line-height: 1.4; }
.cc-dc .cc-sc-scene {
  margin: 0 0 14px; font-size: 16px; font-style: italic; color: #1c1917; line-height: 1.55;
  padding: 12px 16px; background: #faf8f5; border-left: 4px solid var(--cc-accent); border-radius: 0 10px 10px 0;
}
.cc-dc .cc-sc-why { font-size: 16px; color: #1c1917; line-height: 1.65; margin: 0; }
.cc-dc .cc-score-pill { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cc-dc .cc-sp-num { font-size: 28px; font-weight: 800; line-height: 1; }
.cc-dc .cc-sp-label { font-size: 13px; font-weight: 700; color: #1c1917; }
.cc-dc .cc-sp-bar { width: 56px; height: 6px; background: #e0d8cc; border-radius: 999px; overflow: hidden; }
.cc-dc .cc-sp-fill { height: 100%; }
.cc-dc .cc-sp-high .cc-sp-num { color: #15803d; }
.cc-dc .cc-sp-high .cc-sp-fill { background: #15803d; }
.cc-dc .cc-sp-mid .cc-sp-num { color: #1d4ed8; }
.cc-dc .cc-sp-mid .cc-sp-fill { background: #1d4ed8; }
.cc-dc .cc-sp-low .cc-sp-num { color: #b45309; }
.cc-dc .cc-sp-low .cc-sp-fill { background: #b45309; }

.cc-dc .cc-appeal-steps { display: flex; flex-direction: column; gap: 16px; }
.cc-dc .cc-astep {
  display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid #e0d8cc; border-radius: 16px; padding: 24px;
  position: relative; overflow: hidden;
}
.cc-dc .cc-astep::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--cc-accent), #0891b2); }
.cc-dc .cc-astep-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--cc-accent), var(--cc-accent-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 800; flex-shrink: 0;
}
.cc-dc .cc-astep h3 { font-size: 17px !important; font-weight: 800 !important; color: #1c1917 !important; margin-bottom: 6px !important; }
.cc-dc .cc-astep p { font-size: 16px; color: #3f3a36; margin: 0; line-height: 1.65; }
.cc-dc .cc-astep p strong { color: #1c1917; }

.cc-dc .cc-inline-cta {
  text-align: center; background: #fff; border: 1px solid #e0d8cc;
  border-radius: 20px; padding: 28px 24px; margin: 56px 0 56px;
}
.cc-dc .cc-inline-cta-kicker {
  margin: 0 0 6px; font-size: 13px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--cc-accent-dark);
}
.cc-dc .cc-inline-cta-title {
  font-family: var(--font-display), Georgia, serif;
  font-size: 22px; font-weight: 800; color: #1c1917; margin: 0 0 16px;
}

.cc-dc .cc-viability-wrap {
  background: linear-gradient(135deg, var(--cc-badge-bg) 0%, #f0fdf4 100%);
  border: 1px solid var(--cc-badge-border);
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 40px;
}
.cc-dc .cc-viability-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.72fr); gap: 24px; align-items: start; }
.cc-dc .cc-vi-content h2 {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(20px, 2.6vw, 26px) !important;
  font-weight: 800 !important; color: #1c1917 !important; margin-bottom: 8px !important;
}
.cc-dc .cc-vi-content p { font-size: 15px; color: #3f3a36; line-height: 1.55; margin-bottom: 14px; }
.cc-dc .cc-vi-sample {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; border-radius: 18px; padding: 22px 18px 18px;
  max-width: 240px; justify-self: end; width: 100%;
}
.cc-dc .cc-vi-sample-ring {
  width: 132px; height: 132px; border-radius: 50%; border: 6px solid;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  box-shadow: inset 0 0 0 4px #fff;
}
.cc-dc .cc-vi-sample-num {
  font-family: var(--font-display), Georgia, serif; font-size: 44px; font-weight: 800;
  line-height: 1; letter-spacing: -0.04em;
}
.cc-dc .cc-vi-sample-high {
  background: linear-gradient(180deg, #fff 0%, #f0fdf4 55%, #ecfdf5 100%);
  border: 2px solid #86efac;
  box-shadow: 0 8px 22px rgba(21, 128, 61, 0.14);
}
.cc-dc .cc-vi-sample-high .cc-vi-sample-ring {
  border-color: #15803d;
  background: radial-gradient(circle at 50% 42%, #fff 0%, #f0fdf4 62%, #dcfce7 100%);
  box-shadow: inset 0 0 0 4px #fff, 0 8px 18px rgba(21, 128, 61, 0.18);
}
.cc-dc .cc-vi-sample-high .cc-vi-sample-num { color: #15803d; }
.cc-dc .cc-vi-sample-mid {
  background: linear-gradient(180deg, #fff 0%, #eff6ff 55%, #dbeafe 100%);
  border: 2px solid #93c5fd;
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.12);
}
.cc-dc .cc-vi-sample-mid .cc-vi-sample-ring {
  border-color: #1d4ed8;
  background: radial-gradient(circle at 50% 42%, #fff 0%, #eff6ff 62%, #dbeafe 100%);
  box-shadow: inset 0 0 0 4px #fff, 0 8px 18px rgba(29, 78, 216, 0.16);
}
.cc-dc .cc-vi-sample-mid .cc-vi-sample-num { color: #1d4ed8; }
.cc-dc .cc-vi-sample-low {
  background: linear-gradient(180deg, #fff 0%, #fff7ed 55%, #ffedd5 100%);
  border: 2px solid #fed7aa;
  box-shadow: 0 8px 22px rgba(180, 83, 9, 0.12);
}
.cc-dc .cc-vi-sample-low .cc-vi-sample-ring {
  border-color: #b45309;
  background: radial-gradient(circle at 50% 42%, #fff 0%, #fff7ed 62%, #ffedd5 100%);
  box-shadow: inset 0 0 0 4px #fff, 0 8px 18px rgba(180, 83, 9, 0.16);
}
.cc-dc .cc-vi-sample-low .cc-vi-sample-num { color: #b45309; }
.cc-dc .cc-vi-sample-label { font-size: 14px; font-weight: 800; color: #1c1917; text-align: center; line-height: 1.25; }
.cc-dc .cc-vi-sample-out-of { font-size: 11px; font-weight: 700; color: #44403c; }
.cc-dc .cc-bands { display: flex; flex-direction: column; gap: 8px; }
.cc-dc .cc-band { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid; }
.cc-dc .cc-band-high { background: #f0fdf4; border-color: #86efac; }
.cc-dc .cc-band-mid { background: #eff6ff; border-color: #93c5fd; }
.cc-dc .cc-band-low { background: #fff7ed; border-color: #fed7aa; }
.cc-dc .cc-band-pip { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.cc-dc .cc-band-high .cc-band-pip { background: #15803d; }
.cc-dc .cc-band-mid .cc-band-pip { background: #1d4ed8; }
.cc-dc .cc-band-low .cc-band-pip { background: #b45309; }
.cc-dc .cc-band-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cc-dc .cc-band-range {
  font-family: var(--font-display), Georgia, serif;
  font-weight: 800;
  color: #1c1917;
  font-size: 15px;
  min-width: 58px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.cc-dc .cc-band-range::after {
  content: "·";
  margin-left: 8px;
  color: #a8a29e;
  font-weight: 700;
}
.cc-dc .cc-band-desc { font-size: 14px; color: #3f3a36; line-height: 1.4; flex: 1; min-width: 0; }

.cc-dc .cc-final {
  text-align: center;
  background: linear-gradient(135deg, var(--cc-final-from, #1e3a8a), var(--cc-final-mid, var(--cc-accent)));
  border-radius: 28px; padding: 64px 40px; position: relative; overflow: hidden;
}
.cc-dc .cc-final::before { content: ""; position: absolute; top: -60px; right: -60px; width: 280px; height: 280px; background: rgba(255,255,255,0.08); border-radius: 50%; }
.cc-dc .cc-final h2 {
  font-family: var(--font-display), Georgia, serif;
  font-size: clamp(24px, 3.5vw, 36px) !important; color: #fff !important;
  margin-bottom: 14px !important; position: relative; z-index: 1;
}
.cc-dc .cc-final p { font-size: 18px; color: #fff; max-width: 540px; margin: 0 auto 28px; line-height: 1.55; position: relative; z-index: 1; }
.cc-dc .cc-btn-white {
  display: inline-block; background: #fff; color: var(--cc-accent-dark) !important;
  padding: 17px 40px; border-radius: 12px; font-size: 17px; font-weight: 800;
  text-decoration: none !important; transition: transform 0.2s;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22); position: relative; z-index: 1;
}
.cc-dc .cc-btn-white:hover { background: var(--cc-badge-bg); transform: translateY(-3px); }
.cc-dc .cc-final-sub { font-size: 15px; color: #fff !important; font-weight: 700; margin-top: 16px; position: relative; z-index: 1; opacity: 0.92; }

@media (prefers-reduced-motion: reduce) {
  .cc-dc .cc-btn-primary:hover, .cc-dc .cc-btn-white:hover { transform: none; }
}
@media (max-width: 680px) {
  .cc-dc .cc-hero { padding: 44px 16px 40px; }
  .cc-dc .cc-reason { grid-template-columns: 1fr; gap: 14px; }
  .cc-dc .cc-astep { grid-template-columns: 1fr; gap: 12px; }
  .cc-dc .cc-viability-wrap { padding: 24px 18px; }
  .cc-dc .cc-viability-inner { grid-template-columns: 1fr; gap: 16px; }
  .cc-dc .cc-vi-sample { max-width: none; justify-self: stretch; }
  .cc-dc .cc-final { padding: 48px 22px; }
  .cc-dc .cc-meaning { padding: 24px 20px; }
}
