/* The Articles site (ar.benbakercoaching.com, [articles-site]; netlify/lib/articles-site.js): ONE fixed simple
   look for every visitor on every device (Ben 2026-11-10: "everything is simple style regardless of user
   logged in anywhere"). Always light: the page says data-theme="light" and color-scheme light, theme.js is
   never loaded, and nothing here follows the device's dark mode. A reading column of about 720px, a reading
   font, generous line height, the site's name on top linking home, a plain footer.
   On an article styles.css comes first (the page's elements, drawn by page-blocks.js, use its rules; with
   data-theme="light" none of its dark rules apply), then this file. */

:root.ar-root {
  color-scheme: light;
  --ar-bg: #fdfdfd; /* = styles.css --color-bg (light): pasted neutral colours are judged against it */
  --ar-text: #1d1d1b;
  --ar-muted: #5c5c58;
  --ar-rule: #e4e4df;
  --ar-link: #0e6b45;
  --ar-link-hover: #0a5235;
  --ar-width: 720px;
  --ar-read: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, "Times New Roman", serif;
  --ar-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ar-bg);
}

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

body.ar-site {
  /* (styles.css's page fonts: the reading font here; a page's own chosen font still wins) */
  --font-body: var(--ar-read);
  --font-heading: var(--ar-read);
  --color-bg: var(--ar-bg);
  display: block;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--ar-bg);
  color: var(--ar-text);
  font-family: var(--ar-read);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

.ar-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: var(--ar-bg);
  color: var(--ar-link);
  font-family: var(--ar-ui);
  font-size: 15px;
}

.ar-skip:focus {
  left: 16px;
  z-index: 10;
}

.ar-header,
.ar-main,
.ar-footer {
  width: 100%;
  max-width: calc(var(--ar-width) + 40px);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.ar-header {
  padding-top: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ar-rule);
}

.ar-site .ar-home {
  color: var(--ar-text);
  font-family: var(--ar-ui);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.ar-site .ar-home:hover,
.ar-site .ar-home:focus-visible {
  color: var(--ar-link);
}

/* ([articles-site-header-footer]) A header with a logo or a menu: the name / logo on the left, the menu on the
   right, wrapping on a phone. The name alone keeps the look it always had. */
.ar-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.ar-header-row .ar-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.ar-logo {
  display: block;
  width: auto;
  height: 32px;
  max-width: 180px;
  object-fit: contain;
}

.ar-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-family: var(--ar-ui);
  font-size: 16px;
  line-height: 1.5;
}

.ar-site .ar-menu a {
  color: var(--ar-text);
  text-decoration: none;
}

.ar-site .ar-menu a:hover,
.ar-site .ar-menu a:focus-visible {
  color: var(--ar-link);
  text-decoration: underline;
}

/* The home without a heading: the list starts at the top */
.ar-main > .ar-list:first-child {
  margin-top: 0;
}

.ar-main {
  padding-top: 40px;
  padding-bottom: 56px;
  min-height: 60vh;
}

.ar-site a {
  color: var(--ar-link);
  text-underline-offset: 3px;
}

.ar-site a:hover {
  color: var(--ar-link-hover);
}

.ar-site a:focus-visible {
  outline: 2px solid var(--ar-link);
  outline-offset: 2px;
  border-radius: 2px;
}

.ar-h1 {
  margin: 0 0 12px;
  color: var(--ar-text);
  font-family: var(--ar-read);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ar-lead,
.ar-empty {
  margin: 16px 0;
  color: var(--ar-muted);
}

/* ---------- The home: the articles, newest first ---------- */
.ar-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.ar-item {
  padding: 24px 0;
  border-top: 1px solid var(--ar-rule);
}

.ar-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.ar-item-title {
  margin: 0 0 6px;
  font-family: var(--ar-read);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
}

.ar-item-title a {
  color: var(--ar-text);
  text-decoration: none;
}

.ar-item-title a:hover,
.ar-item-title a:focus-visible {
  color: var(--ar-link);
  text-decoration: underline;
}

.ar-intro {
  margin: 6px 0 0;
  color: var(--ar-text);
}

/* ---------- An article ---------- */
.ar-body {
  margin: 0;
}

/* The page's elements (page-blocks.js) in the reading column: never wider than it */
.ar-article .pb-page {
  color: var(--ar-text);
}

.ar-article .pb-content {
  padding: 0;
}

.ar-article .pb-text {
  line-height: 1.7;
}

.ar-article img,
.ar-article iframe,
.ar-article video {
  max-width: 100%;
}

.ar-plain h2,
.ar-plain h3 {
  margin: 32px 0 12px;
  line-height: 1.3;
}

.ar-plain p {
  margin: 0 0 16px;
}

.ar-back {
  margin: 40px 0 0;
  font-family: var(--ar-ui);
  font-size: 16px;
}

.ar-back a::before {
  content: "\2190\00a0";
}

/* ---------- The top menu: the categories, then Search ([articles-site-categories-menu-search]) ---------- */
.ar-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  width: 100%;
  max-width: calc(var(--ar-width) + 40px);
  margin: 0 auto;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--ar-rule);
  font-family: var(--ar-ui);
  font-size: 15px;
}

.ar-cats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  flex: 1 1 auto;
}

.ar-site .ar-cats-row a,
.ar-site .ar-cats-list a {
  color: var(--ar-text);
  text-decoration: none;
}

.ar-site .ar-cats-row a:hover,
.ar-site .ar-cats-list a:hover {
  color: var(--ar-link);
  text-decoration: underline;
}

.ar-cats-menu {
  display: none;
}

.ar-search {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.ar-search-input {
  width: 180px;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--ar-rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ar-text);
  font: inherit;
}

.ar-search-button {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--ar-link);
  border-radius: 6px;
  background: var(--ar-link);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.ar-search-button:hover {
  background: var(--ar-link-hover);
}

.ar-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The home's categories with their counts; a category page's own categories as chips; the small link on top */
.ar-section-title {
  margin: 0 0 12px;
  color: var(--ar-muted);
  font-family: var(--ar-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ar-cats {
  margin: 0 0 36px;
}

.ar-cat-list,
.ar-cat-inner {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ar-cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 24px;
}

.ar-cat-inner {
  margin-top: 4px;
  padding-left: 14px;
  font-size: 0.9em;
}

.ar-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}

.ar-cat-chips a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--ar-rule);
  border-radius: 999px;
}

.ar-site .ar-cat-link {
  color: var(--ar-text);
  font-family: var(--ar-ui);
  text-decoration: none;
}

.ar-site .ar-cat-link:hover {
  color: var(--ar-link);
  text-decoration: underline;
}

.ar-count {
  color: var(--ar-muted);
  font-size: 0.85em;
}

.ar-cat-up {
  margin: 0 0 16px;
  font-family: var(--ar-ui);
  font-size: 14px;
  letter-spacing: 0.02em;
}

#ar-newest-title {
  margin-top: 8px;
}

/* ---------- The footer ---------- */
.ar-footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--ar-rule);
  color: var(--ar-muted);
  font-family: var(--ar-ui);
  font-size: 14px;
  line-height: 1.5;
}

.ar-footer p {
  margin: 0 0 8px;
}

.ar-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.ar-footer-links a {
  color: var(--ar-muted);
}

/* ---------- A laptop or a desktop (1024px and wider): larger text, about 15% ([articles-site-bigger-text-desktop],
   Ben 2026-11-11: "i want also the font to look a bit larger in desktop and laptop"). The reading column a
   little wider (760px) so the lines stay long enough; 641-1023px and phones as before. The page's elements
   keep their own sizes (page-blocks.js --pb-fs), each 15% larger here; article text at least 1.7 line height. ---------- */
@media (min-width: 1024px) {
  .ar-site {
    --ar-width: 760px;
  }

  body.ar-site {
    font-size: 22px;
  }

  .ar-h1 {
    font-size: 46px;
  }

  .ar-item-title {
    font-size: 30px;
  }

  .ar-back {
    font-size: 18px;
  }

  .ar-article .pb-block .pb-sized {
    font-size: calc(var(--pb-fs, 16px) * 1.15);
  }

  .ar-article .pb-block .pb-text.pb-sized {
    line-height: max(var(--pb-lh, 1.5), 1.7);
  }
}

/* ---------- A phone ---------- */
@media (max-width: 640px) {
  body.ar-site {
    font-size: 18px;
  }

  .ar-header,
  .ar-main,
  .ar-footer,
  .ar-topnav {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* (the categories behind one "Menu" button; the Search box beside it, full width) */
  .ar-cats-row {
    display: none;
  }

  .ar-cats-menu {
    display: block;
  }

  .ar-cats-menu summary {
    padding: 6px 12px;
    border: 1px solid var(--ar-rule);
    border-radius: 6px;
    cursor: pointer;
  }

  .ar-cats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 2px 4px;
  }

  .ar-search {
    flex: 1 1 160px;
  }

  .ar-search-input {
    flex: 1 1 auto;
    width: auto;
    height: 40px;
  }

  .ar-search-button {
    height: 40px;
  }

  .ar-main {
    padding-top: 28px;
  }

  .ar-h1 {
    font-size: 32px;
  }

  .ar-item-title {
    font-size: 22px;
  }
}
