/* AUTONEER · WEBSITE 4 · Latest industry news, styled as service bulletins */

/* homepage newspaper: see .np rules at the end of this file */

/* bulletin titles are sentences: a calmer size than page headlines */
.bt-h1 { display: block; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -.035em; }

/* draft banner (local preview only) */
.bt-draft { margin-top: 16px; padding: 12px 16px; background: #fff6e0; border: 1.5px dashed #c77700; color: #5a3a00; font-size: 14.5px; }

/* bulletin items */
.bt-items { display: grid; gap: 18px; }
.bt-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); background: var(--card); border: 1px solid var(--line-2); }
@media (max-width: 640px) { .bt-item { grid-template-columns: 1fr; } }
.bt-item__side { padding: 22px 18px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: var(--paper); }
@media (max-width: 640px) { .bt-item__side { flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line-2); padding: 14px 18px; } }
.bt-item__no { font: 700 34px/1 var(--f-mono); letter-spacing: -.03em; color: var(--ink); }
.bt-stamp { font: 800 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; padding: 6px 8px; border: 2px solid currentColor; border-radius: 3px; transform: rotate(-6deg); background: rgba(255, 255, 255, .6); }
.bt-stamp--confirmed { color: var(--go); }
.bt-stamp--proposal { color: #8a5a00; }
.bt-stamp--opinion { color: var(--ink-3); border-style: dashed; }
.bt-item__main { padding: 22px clamp(18px, 3vw, 32px) 20px; display: grid; gap: 12px; }
.bt-item__main h3 { font-size: clamp(21px, 2.2vw, 26px); letter-spacing: -.025em; line-height: 1.2; }
.bt-item__main > p { color: var(--ink-2); font-size: 16px; }
.bt-note { font: 600 12.5px/1.4 var(--f-mono) !important; color: #8a5a00 !important; }
.bt-item--opinion .bt-note { color: var(--ink-3) !important; }
.bt-why, .bt-do { padding: 12px 16px; display: grid; gap: 4px; }
.bt-why { background: var(--paper); border-left: 3px solid var(--ink); }
.bt-do { background: #fff8eb; border-left: 3px solid var(--signal); }
.bt-why p, .bt-do p { font-size: 15.5px; color: var(--ink); }
.bt-do .k { color: var(--signal-ink); }
.bt-ref { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 13.5px; }
.bt-ref a { color: var(--ink); text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; display: inline-flex; gap: 5px; align-items: center; }
.bt-ref a svg { width: 12px; height: 12px; }
.bt-ref__d { font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.sheet--night .bt-ref { border-color: var(--mint-3); }
.sheet--night .bt-ref a { color: #fff; }
.sheet--night .bt-ref__d { color: var(--mint-2); }

/* tip, technology, takeaways */
.bt-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .bt-feature { grid-template-columns: 1fr; } }
.bt-feature h2 { font-size: clamp(28px, 3.4vw, 42px); margin-top: 10px; }
.bt-prose p { font-size: 17px; color: var(--ink-2); margin-bottom: 14px; max-width: 62ch; }
.bt-prose--night p { color: rgba(233, 241, 239, .82); }
.bt-h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 22px; }
.bt-dates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.bt-dates li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.bt-dates__d { font: 700 13px/1.6 var(--f-mono); color: var(--signal-ink); }
.bt-take { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line-2); }
.bt-take label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font: 500 17px/1.45 var(--f-head); letter-spacing: -.01em; }
.bt-take input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--go); }
.bt-take label:has(input:checked) span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--go); }
.bt-disclaimer { font-size: 13.5px; color: var(--ink-3); border-left: 2px solid var(--line-2); padding-left: 12px; }

/* previous / all / next */
.bt-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; padding-top: 36px; padding-bottom: 48px; border-top: 1px solid var(--line); }
.bt-nav a { display: grid; gap: 6px; padding: 16px 18px; border: 1px solid var(--line-2); background: var(--card); text-decoration: none; }
.bt-nav a:hover { border-color: var(--ink); }
.bt-nav b { font: 600 15.5px/1.3 var(--f-head); }
.bt-nav__all { text-align: center; }
.bt-nav__next { text-align: right; }
@media (max-width: 720px) { .bt-nav { grid-template-columns: 1fr; } .bt-nav__next { text-align: left; } .bt-nav > span { display: none; } }

/* index: latest bulletin as a cover */
.bt-cover { display: grid; gap: 14px; padding: 0 0 22px; background: #fff; border: 1.5px solid var(--ink); text-decoration: none; box-shadow: 8px 8px 0 var(--signal); transition: transform .2s var(--ease), box-shadow .2s; }
.bt-cover:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--signal); }
.bt-cover__band { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--band); color: #fff; font: 600 12px/1.3 var(--f-mono); letter-spacing: .08em; }
.bt-cover__band .k { color: var(--signal); }
.bt-cover b { padding: 0 20px; font: 650 clamp(24px, 2.6vw, 32px)/1.15 var(--f-head); letter-spacing: -.03em; }
.bt-cover__p { padding: 0 20px; color: var(--ink-2); font-size: 15.5px; }
.bt-cover .more { margin: 0 20px; justify-self: start; }

/* ============================================================
   Homepage: the industry news sticky note.
   Placed under the trial labels, hanging over the top of the facts strip
   (positioning in site.css: .hero__copy .sn). Fixed height so a long
   headline can never push it over the strip text: it ends with an ellipsis.
   Hidden by site.js when the newest edition is more than 14 days old.
   ============================================================ */
.sn {
  position: relative; display: grid; grid-template-rows: auto 1fr; gap: 6px; flex: none;
  width: 168px; height: 120px; padding: 13px 13px 8px;
  /* a pale sticky-note yellow, kept apart from the orange used for actions and highlights */
  background: linear-gradient(170deg, #fbf4d4 0%, #f3e7b3 100%);
  color: var(--ink); text-decoration: none; font-family: var(--f-body);
  transform: rotate(2.5deg); transform-origin: 50% 0;
  box-shadow: 0 1px 1px rgba(20, 33, 33, .12), 0 10px 18px -10px rgba(20, 33, 33, .45);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.sn[hidden] { display: none; }
.sn::after { content: ""; position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; background: linear-gradient(135deg, transparent 50%, rgba(140, 115, 30, .15) 50%); }
.sn:hover, .sn:focus-visible { transform: rotate(1.5deg) translateY(-3px); box-shadow: 0 1px 1px rgba(20, 33, 33, .12), 0 18px 26px -12px rgba(20, 33, 33, .5); outline: none; }
.sn:focus-visible { box-shadow: 0 0 0 2px var(--signal), 0 18px 26px -12px rgba(20, 33, 33, .5); }
.sn__tape { position: absolute; top: -9px; left: 50%; width: 64px; height: 18px; margin-left: -32px; transform: rotate(-4deg); background: rgba(242, 240, 233, .75); border: 1px solid rgba(185, 180, 166, .55); }
.sn__k { font-size: 10.5px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: #7a5a14; }
.sn__k b { font-weight: 700; white-space: nowrap; }
/* the "this opens something" cue, in the darker folded corner; visible without hover (phones) */
.sn__arrow { position: absolute; right: 4px; bottom: 4px; z-index: 1; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; border: 1px solid rgba(122, 90, 20, .5); background: rgba(251, 244, 212, .55); font-size: 10.5px; line-height: 1; color: var(--ink); transition: background .2s, border-color .2s, color .2s; }
.sn:hover .sn__arrow, .sn:focus-visible .sn__arrow { background: var(--ink); border-color: var(--ink); color: #fbf4d4; }
.sn__h { font-size: 12.5px; font-weight: 400; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; align-self: start; }
@media (prefers-reduced-motion: reduce) { .sn, .sn__arrow { transition: none; } }

/* ============================================================
   Bulletin page: the details card on the same sticky note as the homepage
   news note (.sn): pale yellow paper, a strip of tape, a slight tilt and a
   folded corner. Ink text instead of the teal band, as on the home note.
   ============================================================ */
.doc.doc--sn {
  position: relative; overflow: visible; border: 0; border-radius: 0;
  background: linear-gradient(170deg, #fbf4d4 0%, #f3e7b3 100%);
  transform: rotate(1.5deg); transform-origin: 50% 0;
  box-shadow: 0 1px 1px rgba(20, 33, 33, .12), 0 18px 30px -16px rgba(20, 33, 33, .45);
}
.doc--sn::before { content: ""; position: absolute; top: -11px; left: 50%; z-index: 1; width: 96px; height: 22px; margin-left: -48px; transform: rotate(-4deg); background: rgba(242, 240, 233, .75); border: 1px solid rgba(185, 180, 166, .55); }
.doc--sn::after { content: ""; position: absolute; right: 0; bottom: 0; width: 34px; height: 34px; background: linear-gradient(135deg, transparent 50%, rgba(140, 115, 30, .15) 50%); }
.doc--sn .doc__band { background: none; color: var(--ink); padding: 22px 20px 12px; border-bottom: 1px dashed rgba(122, 90, 20, .35); }
.doc--sn .doc__band small { color: #7a5a14; text-transform: uppercase; letter-spacing: .06em; }
.doc--sn .drow { border-color: rgba(122, 90, 20, .18); }
.doc--sn .doc__body { padding-bottom: 18px; }
@media (max-width: 600px) { .doc.doc--sn { transform: rotate(.8deg); } }
