/* Capstone Ohio Breach Cost Calculator v1, model 1.0.0, built 2026-11-17T22:00:11.013Z
 * Published 2026-11-17
 */
/*!
 * Capstone Ohio Breach Cost Calculator, styles.
 * One file: the worksheet, then the site integration layer for
 * captechgroup.com (the .ctg-bc wrapper). See README.md.
 *
 * Works from 320px wide. The page never scrolls sideways. A print
 * stylesheet turns the worksheet into a handout.
 *
 * Every length is in px. The site sets its root to 15px, so a rem
 * here would shrink the worksheet. A test fails on any rem.
 *
 * Colors (site palette):
 *   action green  #5d7026  white text, hover #4c6317
 *   brand green   #8ba446  fill or border only, never text
 *   headings      #2e2e2e
 *   body          #555555
 *   muted         #666666
 *   tint          #f8faf4
 *   alert amber   #b45309 text with a #d97706 border
 * No colored side-stripe cards. Nothing carries meaning by color alone.
 */

.ctg-calc,
.ctg-calc-draftbanner {
  --ctg-action: #5d7026;
  --ctg-action-hover: #4c6317;
  --ctg-brand: #8ba446;
  --ctg-heading: #2e2e2e;
  --ctg-body: #555555;
  --ctg-muted: #666666;
  --ctg-tint: #f8faf4;
  --ctg-alert-text: #b45309;
  --ctg-alert-border: #d97706;
  --ctg-line: #d9dcd3;
  --ctg-field-border: #767676;
  box-sizing: border-box;
}

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

.ctg-calc-draftbanner {
  background: #ffffff;
  color: var(--ctg-alert-text);
  border: 2px solid var(--ctg-alert-border);
  border-radius: 4px;
  font-weight: 700;
  font-size: 15.2px;
  line-height: 1.4;
  padding: 12px 16px;
  margin: 0 0 16px;
  max-width: 832px;
}

.ctg-calc {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ctg-body);
  max-width: 832px;
  overflow-wrap: break-word;
}

.ctg-calc-heading {
  color: var(--ctg-heading);
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.ctg-calc-instructions {
  color: var(--ctg-heading);
  font-weight: 400;
  margin: 0 0 4px;
}

.ctg-calc-lede {
  color: var(--ctg-body);
  font-weight: 400;
  margin: 0 0 20px;
}

.ctg-calc-subhead {
  color: var(--ctg-heading);
  font-size: 20px;
  line-height: 1.3;
  margin: 32px 0 8px;
  padding-top: 9.6px;
  border-top: 3px solid var(--ctg-brand);
}

.ctg-calc-privacy {
  color: var(--ctg-muted);
  margin: 0 0 24px;
}

/* Screen-reader-only text: the live status line and table captions. */
.ctg-calc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ctg-calc-printonly {
  display: none;
}

/* ---- Form ---- */

.ctg-calc-form {
  display: grid;
  gap: 16px;
  margin: 0 0 12px;
}

.ctg-calc-field label {
  display: block;
  color: var(--ctg-heading);
  font-weight: 600;
  margin-bottom: 4.8px;
}

.ctg-calc-field select,
.ctg-calc-field input {
  display: block;
  width: 100%;
  max-width: 352px;
  min-height: 44px;
  font: inherit;
  font-size: 16px;
  padding: 8px 9.6px;
  border: 1px solid var(--ctg-field-border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ctg-heading);
}

.ctg-calc-field input[aria-invalid="true"] {
  border: 2px solid var(--ctg-alert-border);
}

.ctg-calc :focus-visible,
.ctg-calc-button:focus-visible {
  outline: 3px solid var(--ctg-action);
  outline-offset: 2px;
}

.ctg-calc-field select:focus,
.ctg-calc-field input:focus {
  outline: 3px solid var(--ctg-action);
  outline-offset: 2px;
}

.ctg-calc-help {
  font-size: 14px;
  color: var(--ctg-muted);
  margin: 4.8px 0 0;
}

.ctg-calc-invalid {
  color: var(--ctg-alert-text);
  background: #ffffff;
  border: 2px solid var(--ctg-alert-border);
  border-radius: 4px;
  font-weight: 600;
  padding: 9.6px 14.4px;
  margin: 0 0 12px;
}

.ctg-calc-invalid p {
  margin: 0 0 5.6px;
}

.ctg-calc-invalid p:last-child {
  margin-bottom: 0;
}

.ctg-calc-waiting {
  font-size: 16px;
  margin: 0 0 12px;
}

/* ---- Worksheet ---- */

.ctg-calc-disclaimer {
  color: var(--ctg-body);
  background: var(--ctg-tint);
  border: 1px solid var(--ctg-line);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 0 0 24px;
}

.ctg-calc-echo {
  color: var(--ctg-body);
  font-weight: 400;
  margin: 0 0 12px;
}

.ctg-calc-echo strong {
  color: var(--ctg-heading);
  font-weight: 700;
  white-space: nowrap;
}

.ctg-calc-outsideintro,
.ctg-calc-notincludedlead {
  margin: 0 0 12px;
}

/* A safety net only. The tables are built to fit a 320px screen. */
.ctg-calc-tablewrap {
  overflow-x: auto;
  margin: 0 0 12px;
}

.ctg-calc-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14.4px;
}

.ctg-calc-table th,
.ctg-calc-table td {
  text-align: left;
  padding: 8px 5.6px;
  border-bottom: 1px solid var(--ctg-line);
  vertical-align: top;
}

.ctg-calc-table thead th {
  color: var(--ctg-heading);
  border-bottom: 2px solid var(--ctg-brand);
  font-weight: 700;
}

.ctg-calc-table tbody th {
  color: var(--ctg-heading);
  font-weight: 400;
}

.ctg-calc-table td,
.ctg-calc-table thead th + th {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ctg-heading);
}

/* A line with one figure sits between Low and High, not under High. */
.ctg-calc-table td.ctg-calc-single {
  text-align: center;
}

.ctg-calc-table .ctg-calc-blockhead th {
  background: var(--ctg-tint);
  color: var(--ctg-heading);
  font-weight: 700;
  border-top: 2px solid var(--ctg-brand);
  padding-top: 9.6px;
}

.ctg-calc-table .ctg-calc-captionrow td {
  text-align: left;
  white-space: normal;
  font-size: 14px;
  color: var(--ctg-muted);
}

.ctg-calc-table .ctg-calc-total th,
.ctg-calc-table .ctg-calc-total td {
  font-weight: 700;
  color: var(--ctg-heading);
  background: var(--ctg-tint);
  border-top: 2px solid var(--ctg-heading);
}

.ctg-calc-table .ctg-calc-regulatory td,
.ctg-calc-table .ctg-calc-lawsuit td {
  white-space: normal;
}

.ctg-calc-note {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--ctg-muted);
  white-space: normal;
}

.ctg-calc-columnnote,
.ctg-calc-oneline,
.ctg-calc-stamp,
.ctg-calc-printhint {
  font-size: 14px;
  color: var(--ctg-muted);
  margin: 0 0 12px;
}

.ctg-calc-oneline {
  color: var(--ctg-heading);
  font-weight: 600;
}

/* ---- The Ohio defense table. Words only. Stacked on small screens. ---- */

.ctg-calc-defense,
.ctg-calc-defense tbody,
.ctg-calc-defense tr,
.ctg-calc-defense th,
.ctg-calc-defense td {
  display: block;
}

.ctg-calc-defense thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.ctg-calc-defense tr {
  border: 1px solid var(--ctg-line);
  border-radius: 4px;
  margin: 0 0 12px;
  padding: 4px 8px;
}

.ctg-calc-defense tbody th {
  font-weight: 700;
  border-bottom: 1px solid var(--ctg-line);
}

.ctg-calc-defense td {
  text-align: left;
  white-space: normal;
  color: var(--ctg-body);
  border-bottom: 0;
}

.ctg-calc-defense thead th + th {
  text-align: left;
  white-space: normal;
}

.ctg-calc-defense td::before {
  content: attr(data-label);
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ctg-muted);
}

.ctg-calc-safeharbor {
  background: var(--ctg-tint);
  border: 1px solid var(--ctg-line);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
}

/* ---- Method panel ---- */

.ctg-calc-methodology {
  border: 1px solid var(--ctg-line);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 0 0 24px;
}

.ctg-calc-methodology summary {
  color: var(--ctg-heading);
  font-weight: 700;
  font-size: 16.8px;
  cursor: pointer;
  min-height: 44px;
  padding: 8px 0;
}

/* The panel title is a heading, so the headings inside the panel sit
   under it in the page outline. It keeps the summary's type size. */
.ctg-calc-summaryhead {
  display: inline;
  font: inherit;
  color: inherit;
  margin: 0;
}

.ctg-calc-methodology:not([open]) {
  padding-bottom: 4px;
}

.ctg-calc-detail {
  display: block;
}

.ctg-calc-panelhead {
  color: var(--ctg-heading);
  font-size: 16px;
  margin: 20px 0 8px;
}

.ctg-calc-methodology ul {
  padding-left: 19.2px;
  margin: 0 0 12px;
}

.ctg-calc-methodology li {
  margin: 0 0 11.2px;
  font-size: 14.4px;
  overflow-wrap: anywhere;
}

.ctg-calc-methodology li li {
  margin: 4px 0;
  font-size: 14px;
}

.ctg-calc-methodology p {
  font-size: 14.4px;
  margin: 0 0 8px;
}

.ctg-calc-methodology strong,
.ctg-calc-paneltype {
  color: var(--ctg-heading);
}

.ctg-calc-source {
  color: var(--ctg-muted);
  font-size: 14px;
}

.ctg-calc a {
  color: var(--ctg-action);
  text-decoration: underline;
}

.ctg-calc a:hover {
  color: var(--ctg-action-hover);
}

.ctg-calc-notincluded ul {
  padding-left: 19.2px;
}

.ctg-calc-notincluded li {
  margin: 0 0 6.4px;
}

/* ---- The one booking button in the article's closing section ---- */

.ctg-calc-button,
a.ctg-calc-button,
a.ctg-calc-button:visited {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  padding: 11.2px 20px;
  border-radius: 4px;
  background: #5d7026;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

a.ctg-calc-button:hover,
a.ctg-calc-button:focus {
  background: #4c6317;
  color: #ffffff;
  text-decoration: none;
}

.ctg-calc-button:focus-visible {
  outline: 3px solid #5d7026;
  outline-offset: 2px;
}

/* ---- The text link under the booking button ---- */

.ctg-calc-textlink,
a.ctg-calc-textlink {
  display: inline-block;
  padding: 9.6px 0;
  color: #5d7026;
  text-decoration: underline;
}

a.ctg-calc-textlink:hover {
  color: #4c6317;
}

.ctg-calc-textlink:focus-visible {
  outline: 3px solid #5d7026;
  outline-offset: 2px;
}

/* ---- Wider screens ---- */

@media (min-width: 640px) {
  .ctg-calc-form {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
  .ctg-calc-table {
    font-size: 15.2px;
  }
  .ctg-calc-table th,
  .ctg-calc-table td {
    padding: 8px 12px;
  }
}

@media (min-width: 768px) {
  .ctg-calc-defense {
    display: table;
  }
  .ctg-calc-defense thead {
    display: table-header-group;
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
  }
  .ctg-calc-defense tbody {
    display: table-row-group;
  }
  .ctg-calc-defense tr {
    display: table-row;
    border: 0;
    margin: 0;
    padding: 0;
  }
  .ctg-calc-defense th,
  .ctg-calc-defense td {
    display: table-cell;
    border-bottom: 1px solid var(--ctg-line);
  }
  .ctg-calc-defense tbody th {
    width: 24%;
  }
  .ctg-calc-defense td::before {
    content: none;
  }
}

/* ---- Print: the worksheet becomes a handout ---- */

@media print {
  .ctg-calc-draftbanner {
    border: 2px solid #000000;
    color: #000000;
  }
  .ctg-calc {
    max-width: none;
    font-size: 11pt;
    color: #000000;
  }
  .ctg-calc-printonly {
    display: block;
  }
  .ctg-calc-form select,
  .ctg-calc-form input {
    border: 0;
    padding: 0;
    min-height: 0;
    font-weight: 700;
  }
  .ctg-calc-form select {
    appearance: none;
    -webkit-appearance: none;
    background: none;
  }
  .ctg-calc-subhead,
  .ctg-calc-panelhead,
  .ctg-calc-blockhead {
    break-after: avoid;
  }
  /* The worksheet and the sources print as two parts. */
  .ctg-calc-methodology {
    break-before: page;
  }
  .ctg-calc-help,
  .ctg-calc-printhint,
  .ctg-calc-button,
  a.ctg-calc-button,
  a.ctg-calc-button:visited,
  .ctg-calc-textlink,
  a.ctg-calc-textlink,
  .ctg-calc-sr {
    display: none;
  }
  .ctg-calc-tablewrap {
    overflow: visible;
  }
  .ctg-calc-table tr,
  .ctg-calc-defense tr,
  .ctg-calc-methodology li {
    break-inside: avoid;
  }
  .ctg-calc-disclaimer,
  .ctg-calc-privacy,
  .ctg-calc-safeharbor,
  .ctg-calc-table .ctg-calc-blockhead th,
  .ctg-calc-table .ctg-calc-total th,
  .ctg-calc-table .ctg-calc-total td {
    background: none;
  }
  .ctg-calc-methodology {
    border: 0;
    padding: 0;
  }
  .ctg-calc-methodology summary {
    list-style: none;
  }
  .ctg-calc-methodology summary::-webkit-details-marker {
    display: none;
  }
  .ctg-calc a {
    color: inherit;
    text-decoration: none;
  }
  .ctg-calc-source a::after,
  .ctg-calc-methodology li a::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   Site integration layer for captechgroup.com (JA Alpha, T4, Bootstrap 4 base).
   See release/integration-spec.md, sections 6 to 8.

   Why it exists: the site template sets html to 15px, headings to weight 400
   at 40px and 24px, links without an underline, and a dark mode that recolors
   h4, label and text fields. The site-wide override modules 200 and 202 add
   !important rules for article headings, paragraph width and focus rings.
   Every rule here is scoped to .ctg-bc (the article wrapper) or .ctg-calc.
   Nothing here changes a word, a number or a color token of the worksheet.
   ========================================================================== */

/* ---- 1. The page wrapper: one centered column, light surface ---- */

.ctg-bc {
  box-sizing: border-box;
  max-width: 832px;
  margin: 0 auto;
  background: #ffffff;
  color: #555555;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  text-align: left;
  overflow-wrap: break-word;
  color-scheme: light;
}

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

/* ---- 2. Headings: the site's Inter at weight 700, never the template's 400 ---- */

.ctg-bc h1,
.ctg-bc h2,
.ctg-bc h3,
.ctg-bc h4 {
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #2e2e2e;
}

.ctg-calc-heading,
.ctg-calc-subhead,
.ctg-calc-panelhead {
  font-weight: 700;
}

.ctg-bc > h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.ctg-bc > h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 40px 0 10px;
}

.ctg-bc > h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 24px 0 6px;
}

.ctg-bc .ctg-calc-panelhead {
  line-height: 1.3;
}

@media (max-width: 575.98px) {
  .ctg-bc > h1 {
    font-size: 26px;
  }
  .ctg-bc > h2 {
    font-size: 22px;
  }
}

/* ---- 3. Prose: paragraphs, lists, links, bold ---- */

/* Zero specificity on purpose: every class rule of the worksheet still wins. */
:where(.ctg-bc) p {
  margin: 0 0 16px;
}

/* The lists stop where the site stops every article paragraph (module 202, 72ch),
   so their right edge lines up with the text around them. */
.ctg-bc > ul {
  max-width: 72ch;
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}

.ctg-bc > ul > li {
  margin: 0 0 8px;
}

.ctg-bc strong {
  color: #2e2e2e;
  font-weight: 700;
}

.ctg-bc > p a:not(.ctg-calc-button),
.ctg-bc > ul a {
  color: #5d7026;
  text-decoration: underline;
}

.ctg-bc > p a:not(.ctg-calc-button):hover,
.ctg-bc > ul a:hover {
  color: #4c6317;
}

/* Module 202 caps every article paragraph at 72ch with !important. Inside the
   worksheet that would leave the tinted boxes narrower than the tables. */
.com-content-article__body .ctg-bc .ctg-calc p,
.ctg-bc .ctg-calc p {
  max-width: none !important;
}

/* The line that says who made the page: body text, not fine print. */
.ctg-bc-maker {
  color: #555555;
}

/* The contents line: five links to the sections of this page. */
.ctg-bc-toc {
  margin: 0 0 8px;
}

.ctg-bc-toc p {
  line-height: 2;
}

.ctg-bc-toc a {
  color: #5d7026;
  text-decoration: underline;
}

.ctg-bc-toc a:hover {
  color: #4c6317;
}

/* A section reached from the contents line does not sit hard against the top edge. */
.ctg-bc > h2,
.ctg-bc #ctg-calc {
  scroll-margin-top: 16px;
}

/* ---- 4. The mount point and the note for a browser without JavaScript ---- */

.ctg-bc #ctg-calc {
  margin: 24px 0 32px;
}

/* While the deferred script has not run yet, hold one screen of height so the
   sections below do not jump when the worksheet appears. */
@media (scripting: enabled) {
  .ctg-bc #ctg-calc:empty {
    min-height: 100vh;
  }
}

.ctg-bc-nojs {
  background: #f8faf4;
  border: 1px solid #d9dcd3;
  border-radius: 4px;
  color: #555555;
  padding: 12px 16px;
  margin: 0 0 24px;
}

/* ---- 5. Focus: the same ring the rest of the site shows (module 202) ---- */

.ctg-calc :focus-visible,
.ctg-calc-button:focus-visible,
.ctg-calc-textlink:focus-visible,
.ctg-bc a:focus-visible,
.ctg-calc-field select:focus,
.ctg-calc-field input:focus {
  outline: 2px solid #5d7026;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffffff;
}

/* ---- 6. The one booking button: the site's button shape ---- */

.ctg-bc a.ctg-calc-button {
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.ctg-bc a.ctg-calc-textlink {
  font-weight: 400;
}

/* ---- 7. Dark mode (the header toggle sets html[data-theme="dark"]) ----
   The page stays a light panel, the way the inline-styled sections of the
   service pages do. These rules undo the three template recolors that reach
   inside it: h4, label and text fields. */

html[data-theme="dark"] .ctg-bc {
  padding: 24px;
  border-radius: 8px;
}

@media (max-width: 575.98px) {
  html[data-theme="dark"] .ctg-bc {
    padding: 16px;
  }
}

html[data-theme="dark"] .ctg-bc h4,
html[data-theme="dark"] .ctg-bc h5,
html[data-theme="dark"] .ctg-bc h6,
html[data-theme="dark"] .ctg-bc label {
  color: #2e2e2e;
}

html[data-theme="dark"] .ctg-bc .ctg-calc-field input,
html[data-theme="dark"] .ctg-bc .ctg-calc-field select,
html[data-theme="dark"] .ctg-bc .ctg-calc-field input:focus,
html[data-theme="dark"] .ctg-bc .ctg-calc-field select:focus {
  background-color: #ffffff;
  border-color: #767676;
  color: #2e2e2e;
}

html[data-theme="dark"] .ctg-bc .ctg-calc-field input[aria-invalid="true"],
html[data-theme="dark"] .ctg-bc .ctg-calc-field input[aria-invalid="true"]:focus {
  border-color: #d97706;
}

/* ---- 8. Print: the handout without the site header, footer and bands ---- */

@media print {
  body:has(.ctg-bc) {
    min-width: 0 !important;
  }
  body:has(.ctg-bc) .container {
    min-width: 0 !important;
    max-width: none !important;
  }
  body:has(.ctg-bc) :is(#t4-header, .t4-offcanvas, #t4-section-10, #t4-footer, #t4-copyright, #back-to-top, .ctg-skip-link, .pagenavigation) {
    display: none !important;
  }
  body:has(.ctg-bc) .t4-main-body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  body:has(.ctg-bc) .t4-content {
    box-shadow: none !important;
  }
  .ctg-bc {
    max-width: none;
    font-size: 11pt;
    color: #000000;
  }
  .ctg-bc #ctg-calc {
    min-height: 0;
  }
  .ctg-bc-toc {
    display: none;
  }
}
