/* Company calendar. Shared parts live in ../site.css; this file lays out the answers beside the year's list
   and the one-page printed checklist. */
.wrap > .site-note { padding: 10px 0; font-size: 13.5px; }
.tool.yr { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  grid-template-areas: "head col" "form col" "scope col" "good col";
  grid-template-rows: auto auto auto 1fr; column-gap: 28px; padding: 18px 26px 16px; align-items: start; }
.yr-head { grid-area: head; }
.yr .tool-head h1 { font-size: 28px; margin-top: 8px; }
.yr .tool-one { font-size: 15px; max-width: 44ch; }
.tool.yr > noscript { grid-column: 1 / -1; }
.needs-script { font-size: 14px; color: var(--ink-2); }
.yr-form { grid-area: form; min-width: 0; }
.yr-fields { margin-top: 12px; gap: 8px 10px; }
.yr-fields .wide { grid-column: 1 / -1; }
.yr .input input, .yr .input select { font-size: 15.5px; padding: 9px 11px; }
.yr-fields .check { font-size: 14px; color: var(--ink); font-weight: 500; }
.yr-parity:empty { display: none; }
.yr-scope { grid-area: scope; margin-top: 12px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2);
  border-left: 3px solid var(--c); padding: 2px 0 2px 10px; }

/* buttons, as on the minute book */
.act { font: inherit; font-size: 14px; font-weight: 600; color: var(--on-c); background: var(--c-ink); border: 1.5px solid var(--c-ink);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.act:hover { filter: brightness(1.08); }
.act.quiet { background: transparent; color: var(--c-ink); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.act:disabled { opacity: .5; cursor: default; }

/* the year: a bar, a twelve-month strip, the next date and the list */
.yr-col { grid-area: col; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.yr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.yr-title { font-weight: 650; font-size: 15px; }
.yr-eg { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.yr-btns { display: inline-flex; gap: 8px; }
.yr-bar .status { flex-basis: 100%; font-size: 13px; color: var(--ink-2); }
.yr-bar .status:empty { display: none; }
.yr-print-head { display: none; }
.yr-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.yr-m { display: grid; justify-items: center; gap: 1px; padding: 5px 0 4px; border-radius: 8px; background: var(--field);
  font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.yr-m b { font-weight: 600; }
.yr-m i { font-style: normal; font-weight: 700; font-size: 12px; min-height: 1.2em; }
.yr-m.on { background: var(--tint); color: var(--c-ink); }
.yr-m.now { box-shadow: inset 0 0 0 1.5px var(--c); }
.yr-next { font-size: 14px; padding: 7px 11px; border-radius: 10px; background: var(--tint); color: var(--ink); }
.yr-next b { color: var(--c-ink); }
.yr-list { flex: 1 1 auto; min-height: 0; max-height: 400px; overflow: auto; padding-right: 4px;
  border-top: 1px solid var(--line); }
.yr-month { padding-top: 8px; }
/* Beats .tool h2 (26px, and 22px under 600px) so the month line stays 12px. */
.tool h2.yr-mh { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-ink); margin-top: 0; }
.yr-items { list-style: none; margin: 4px 0 0; padding: 0; }
.yr-item { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.yr-item:last-child { border-bottom: 0; }
.yr-date { display: grid; justify-items: center; align-content: start; border-radius: 10px; background: var(--field); padding: 4px 0 5px;
  font-variant-numeric: tabular-nums; line-height: 1.1; align-self: start; }
.yr-date b { font-size: 18px; font-weight: 700; }
.yr-date span { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.yr-date small { font-size: 10.5px; color: var(--ink-2); }
.yr-date small.wknd { color: var(--c-ink); font-weight: 700; }
.yr-body { min-width: 0; display: grid; gap: 2px; }
.yr-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.yr-meta { font-size: 13px; color: var(--ink-2); }
.yr-meta a { color: var(--c-ink); }
.yr-amt { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.yr-if, .yr-detail { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.yr-if { color: var(--ink); }
.ext .yr-name { font-weight: 550; }
.yr-msg { font-size: 14px; color: var(--ink); padding: 10px 0; }
.yr-cite { font-size: 12.5px; }
.yr-cite > summary { cursor: pointer; color: var(--c-ink); font-weight: 600; list-style: none; display: inline-flex; gap: 6px; }
.yr-cite > summary::-webkit-details-marker { display: none; }
.yr-cite > summary::before { content: "\00A7"; font-weight: 700; }
.yr-cite[open] { background: var(--tint); border-radius: 8px; padding: 6px 9px; margin-top: 2px; }
.yr-quote { display: block; margin-top: 4px; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 13.5px; color: var(--ink); }
.yr-also, .yr-read { margin-top: 4px; color: var(--ink-2); }
.yr-also b { color: var(--ink); font-weight: 600; }
.yr-read a { color: var(--c-ink); }
.yr-weekend { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.yr-weekend .yr-cite { display: inline; }

/* good to know: the surprising lines for this kind of company */
.yr-good { grid-area: good; margin-top: 14px; min-width: 0; }
.yr .yr-good-h { font-size: 15px; margin: 0; font-weight: 650; letter-spacing: 0; }
.yr-notes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.yr-note { font-size: 13.5px; line-height: 1.4; padding: 8px 10px; border-radius: 12px; background: var(--field); display: grid; gap: 3px; }

@media (max-width: 880px) {
  .tool.yr { display: flex; flex-direction: column; padding: 16px 14px 12px; }
  .yr-head { order: 1; }
  /* the year's list leads on a phone, so the list and its first date sit in the first screen */
  .yr-col { order: 2; margin-top: 8px; }
  .yr-form { order: 3; }
  .yr-scope { order: 4; }
  .yr-good { order: 5; }
  .tool.yr > noscript { order: 1; }
  .yr .chip, .yr-eg { display: none; }
  .yr .tool-head h1 { font-size: 24px; margin-top: 0; }
  .yr .tool-head { align-items: center; }
  .yr .tool-one { font-size: 14px; }
  .yr-fields { gap: 6px 8px; margin-top: 8px; }
  .yr-fields .field { gap: 3px; font-size: 12px; }
  .yr .input input, .yr .input select { font-size: 15px; padding: 7px 9px; }
  .yr-fields .check { font-size: 13.5px; }
  .yr-parity { display: none; }
  .yr-list { max-height: 300px; }
  /* four buttons (Word file, PDF, Print, Add to calendar) keep one row on a phone: tighter, never smaller */
  .yr-btns { gap: 6px; }
  .yr-btns .act { padding: 6px 8px; font-size: 13px; white-space: nowrap; }
  .yr-m { font-size: 9.5px; }
  .yr-m i { font-size: 11px; }
  .wrap > .site-note { font-size: 12.5px; padding: 8px 0; line-height: 1.35; }
}

@media print {
  @page { margin: 12mm; }
  body { background: #fff; color: #000; font-size: 10pt; }
  .masthead, .site-foot, .site-note, .tool-head, .yr-form, .yr-good, .yr-next, .noprint, noscript, .yr-cite[open] > :not(summary) { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .tool.yr { display: flex; flex-direction: column; border: 0; padding: 0; background: none; box-shadow: none; }
  .yr-col { order: 1; }
  .yr-scope { order: 2; margin: 6pt 0 0; }
  .yr-print-head { display: block; font-size: 15pt; font-weight: 700; margin: 0 0 4pt; }
  .yr-scope { border: 0; padding: 0; font-size: 8pt; color: #000; }
  .yr-col { display: block; }
  .yr-list { max-height: none; overflow: visible; border: 0; padding: 0; }
  .yr-month { padding-top: 3pt; break-inside: avoid; }
  .tool h2.yr-mh { color: #000; font-size: 8pt; margin-top: 0; }
  .yr-items { margin: 0; }
  .yr-item { grid-template-columns: 12pt 40pt minmax(0, 1fr); gap: 6pt; padding: 3pt 0; border-bottom: .5pt solid #999; break-inside: avoid; }
  .yr-item::before { content: ""; width: 9pt; height: 9pt; border: 1pt solid #000; margin-top: 1pt; }
  .yr-date { display: block; background: none; padding: 0; text-align: left; }
  .yr-date b, .yr-date span, .yr-date small, .yr-date small.wknd { font-size: 9pt; color: #000; display: inline; font-weight: 600; }
  .yr-date span { margin-left: 3pt; }
  .yr-date small, .yr-date small.wknd { font-weight: 400; display: block; }
  .yr-body { gap: 0; }
  .yr-name { font-size: 9.5pt; }
  .yr-meta, .yr-if, .yr-detail, .yr-cite, .yr-cite > summary, .yr-meta a { font-size: 8pt; color: #000; text-decoration: none; }
  .yr-detail { display: none; }
  .yr-cite, .yr-cite[open] { background: none; padding: 0; margin: 0; }
  .yr-weekend { font-size: 8pt; color: #000; margin-top: 6pt; }
  .yr-weekend .yr-cite { display: none; }
}
