/* COITick shared styles
   Palette: site paper, slate ink, safety-tag yellow, and the three tag colors.
   Type: Archivo throughout; expanded heavy cuts for display, normal width for text. */

:root {
  --paper: #EEF0EB;
  --surface: #F9FAF7;
  --ink: #1D272B;
  --ink-2: #56625F;
  --rule: #C9CFC6;
  --hivis: #F3D014;
  --hivis-ink: #1D272B;
  --ok: #2E7A4C;
  --ok-bg: #DCEBDF;
  --warn: #8F5E00;
  --warn-bg: #FBEFC4;
  --bad: #B8321F;
  --bad-bg: #F6DCD6;
  --focus: #1F5FBF;
  --shadow: 0 1px 0 rgba(29, 39, 43, .06), 0 8px 24px -12px rgba(29, 39, 43, .25);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 4px;
  --r-md: 8px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151B1D;
    --surface: #1E2628;
    --ink: #E7EBE6;
    --ink-2: #9BA7A3;
    --rule: #34403F;
    --ok: #6CC291;
    --ok-bg: #1C3326;
    --warn: #F0B648;
    --warn-bg: #3A2F12;
    --bad: #F2806D;
    --bad-bg: #3D1F1A;
    --focus: #7FB0FF;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #151B1D;
  --surface: #1E2628;
  --ink: #E7EBE6;
  --ink-2: #9BA7A3;
  --rule: #34403F;
  --ok: #6CC291;
  --ok-bg: #1C3326;
  --warn: #F0B648;
  --warn-bg: #3A2F12;
  --bad: #F2806D;
  --bad-bg: #3D1F1A;
  --focus: #7FB0FF;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Brand mark: a yellow square tag with a tick */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; font-variation-settings: "wdth" 118; }
.brand-mark { width: 1.7rem; height: 1.7rem; border-radius: var(--r-sm); background: var(--hivis); color: var(--hivis-ink); display: grid; place-items: center; }
.brand-mark svg { width: 1.1rem; height: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.75rem; padding: .55rem 1.1rem;
  border: 2px solid var(--ink); border-radius: var(--r-sm);
  background: transparent; color: var(--ink);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background-color .12s, color .12s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--hivis); border-color: var(--hivis); color: var(--hivis-ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-quiet { border-color: transparent; padding-inline: .6rem; }
.btn-quiet:hover { background: var(--rule); color: var(--ink); }
.btn-danger { border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: var(--surface); }
.btn-sm { min-height: 2.25rem; padding: .3rem .75rem; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* The hang tag: the product's one signature shape.
   A tag with clipped top corners and a punched eyelet, colored by status. */
.tag {
  --tag-bg: var(--ok-bg); --tag-ink: var(--ok);
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  padding: .2rem .65rem .2rem 1.45rem;
  background: var(--tag-bg); color: var(--tag-ink);
  font-weight: 700; font-size: .82rem; line-height: 1.5; white-space: nowrap;
  clip-path: polygon(.55rem 0, 100% 0, 100% 100%, .55rem 100%, 0 calc(100% - .55rem), 0 .55rem);
  border-radius: 0 3px 3px 0;
}
.tag::before {
  content: ""; position: absolute; left: .5rem; top: 50%; width: .42rem; height: .42rem;
  margin-top: -.21rem; border-radius: 50%; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--tag-ink);
}
.tag.yellow { --tag-bg: var(--warn-bg); --tag-ink: var(--warn); }
.tag.red { --tag-bg: var(--bad-bg); --tag-ink: var(--bad); }

/* Forms */
label { font-weight: 600; font-size: .9rem; }
input, select, textarea {
  width: 100%; min-height: 2.6rem; padding: .5rem .65rem;
  border: 1.5px solid var(--rule); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input[type="checkbox"] { width: 1.15rem; min-height: 1.15rem; height: 1.15rem; accent-color: var(--ink); }
.field { display: grid; gap: .3rem; }
.hint { color: var(--ink-2); font-size: .85rem; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
