/* Shared additions (website chat, November 7, 2026): the newsletter box, the cookie bar, the Cookies link.
   Loaded after styles.css on every live page. */

/* Newsletter: one uniform box. Paper with a fine line, the same paper (#F2EDE4) as Substack's sign-up box,
   so the box and Substack's part read as one. (It was sky blue around a paper box: two colors.) */
.news-box { background: var(--paper); border: 1px solid var(--hair); }
/* 340 x 150: Substack shows only the email field and its terms; its form sits 12 px inside the frame, hence -12 px (checked in Chrome, Nov 7) */
.news-embed { display: block; width: 340px; max-width: calc(100% + 12px); height: 150px; margin-top: 20px; margin-left: -12px; border: 0; background: var(--paper); }
.news-fallback { margin-top: 27px; max-width: 33em; }
.news-fallback p { margin: 0; }
.news-fallback-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 33px; margin-top: 16px !important; }
.news-fallback-actions .more { margin-top: 0; }
.news-accept {
  padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 13px; line-height: 20px; color: var(--sea);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
}
.news-accept:hover { color: var(--ink); }

/* Cookie bar: opens by itself on the home page for new visitors, until they choose; "Cookies" in the footer opens it on any page.
   Accept and Decline are the same size, so refusing is as easy as accepting. */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--paper); border-top: 1px solid var(--hair);
  box-shadow: 0 -10px 30px rgba(40, 34, 26, .08);
}
.consent[hidden] { display: none; }
.consent-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 33px;
  padding: 20px var(--mr) 20px var(--ml);
}
.consent-text { flex: 1 1 28em; margin: 0; max-width: 46em; font-size: 16px; line-height: 27px; color: var(--ink); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.consent-btn {
  min-width: 113px; padding: 10px 20px; cursor: pointer;
  font-family: var(--mono); font-size: 13px; line-height: 20px;
  border: 1px solid var(--sea);
}
.consent-accept { background: var(--sea); color: var(--paper); }
.consent-decline { background: var(--paper); color: var(--sea); }
.consent-accept:hover { background: var(--ink); border-color: var(--ink); }
.consent-decline:hover { color: var(--ink); border-color: var(--ink); }
.consent-link { font-family: var(--mono); font-size: 13px; line-height: 20px; }

@media (max-width: 720px) {
  .news-embed { width: calc(100% + 12px); height: 160px; }
  .consent-inner { padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); gap: 13px; }
  .consent-text { font-size: 15px; line-height: 24px; }
  .consent-btn { min-width: 0; flex: 1 1 0; }
  .consent-actions { width: 100%; }
}
