/* Technesium readability layer
   The inherited theme set the content container to 2000px, which gave ~1185px text lines
   (roughly 170 characters) and made every image render over half a screen tall.
   This pulls the reading column back to a comfortable measure and stops images dominating. */

:root {
  --tech-measure: 760px;   /* ~70 characters at the body size */
  --tech-media:   760px;
}

/* --- reading column ------------------------------------------------------ */
.inside-article > .entry-header,
.inside-article > .entry-content,
.inside-article > .entry-summary,
.inside-article > .entry-meta,
.inside-article > .post-image,
.page-header,
.paging-navigation .nav-links {
  max-width: var(--tech-measure);
  margin-left: auto;
  margin-right: auto;
}

.entry-content > * {
  max-width: var(--tech-measure);
}

/* --- images -------------------------------------------------------------- */

/* Featured banner: scaled, never cropped. These images have their title text baked in,
   so object-fit:cover would slice the words off. Height is capped instead. */
.post-image img {
  max-width: min(100%, var(--tech-media));
  max-height: 420px;
  width: auto;
  height: auto;
  display: block;
  margin: 1.4em auto;
  border-radius: 4px;
}

/* In-article images: never wider than the column, never taller than ~half a screen.
   Height is the binding constraint for square/portrait diagrams, so scale by height
   and let the width follow, rather than cropping anything. */
.entry-content img {
  max-width: min(100%, var(--tech-media));
  max-height: 440px;
  width: auto;
  height: auto;
  display: block;
  margin: 1.7em auto;
  border-radius: 4px;
}

/* Tall portrait screenshots and the "Where to tap" cards read fine much smaller. */
.entry-content img[src*="-steps"],
.entry-content img[src*="x1024"],
.entry-content img[src*="x1536"],
.entry-content img[src*="x1113"],
.entry-content img[src*="x1279"] {
  max-width: 320px;
  max-height: 520px;
}

.entry-content img[src*="-steps"] { border: 1px solid #e3e7ec; }

/* --- typography ---------------------------------------------------------- */
.entry-content p { line-height: 1.65; }
.entry-content h2 { margin-top: 1.6em; }

@media (max-width: 820px) {
  .entry-content img[src*="-steps"],
  .entry-content img[src*="x1024"],
  .entry-content img[src*="x1536"],
  .entry-content img[src*="x1113"] { max-width: 100%; }
  .post-image img { max-height: 260px; }
}

/* --- contact form -------------------------------------------------------- */
.tech-contact {
  max-width: var(--tech-measure);
  margin: 1.8em auto 2.4em;
  padding: 1.6em 1.7em 1.4em;
  background: #f7f8fa;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
}
.tech-contact label {
  display: block;
  font-weight: 700;
  font-size: 0.95em;
  margin: 0 0 0.35em;
  color: #222;
}
.tech-contact input,
.tech-contact textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 1.15em;
  padding: 0.7em 0.8em;
  font: inherit;
  color: #3a3a3a;
  background: #fff;
  border: 1px solid #cfd6de;
  border-radius: 5px;
}
.tech-contact input:focus,
.tech-contact textarea:focus {
  outline: none;
  border-color: #1e73be;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.14);
}
.tech-contact textarea { resize: vertical; min-height: 9em; }
.tech-contact button {
  padding: 0.7em 1.6em;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: #1e73be;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
.tech-contact button:hover,
.tech-contact button:focus { background: #17598f; }
.tech-contact-note {
  margin: 0.9em 0 0;
  font-size: 0.88em;
  color: #6b7280;
}
.tech-contact-note.is-error { color: #c0392b; font-weight: 700; }

@media (max-width: 820px) {
  .tech-contact { padding: 1.2em 1.1em 1em; }
}

/* --- all-articles browse page -------------------------------------------- */
.art-filter {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 1.2em 0 0.5em;
  padding: 0.8em 1em;
  font: inherit;
  font-size: 1.05em;
  color: #222;
  background: #fff;
  border: 2px solid #cfd6de;
  border-radius: 6px;
}
.art-filter:focus {
  outline: none;
  border-color: #1e73be;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.14);
}
.art-count { margin: 0 0 1em; font-size: 0.9em; color: #6b7280; }

.art-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0 0 2.2em;
  padding: 1em 1.1em;
  background: #f7f8fa;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
}
.art-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.4em 0.8em;
  font-size: 0.92em;
  font-weight: 700;
  text-decoration: none;
  color: #1e4f7d;
  background: #fff;
  border: 1px solid #d7dee6;
  border-radius: 999px;
}
.art-jump a:hover { background: #1e73be; color: #fff; border-color: #1e73be; }
.art-jump a span {
  font-size: 0.82em;
  font-weight: 700;
  color: #6b7280;
  background: #eef1f5;
  border-radius: 999px;
  padding: 0.05em 0.5em;
}
.art-jump a:hover span { background: rgba(255,255,255,0.25); color: #fff; }

.art-topic { margin: 0 0 2.2em; }
.art-topic h2 {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin: 0 0 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 3px solid #1e73be;
}
.art-topic-count {
  font-size: 0.5em;
  font-weight: 700;
  color: #6b7280;
  background: #eef1f5;
  border-radius: 999px;
  padding: 0.25em 0.7em;
}
.art-list { margin: 0; padding: 0; list-style: none; }
.art-list li { margin: 0; padding: 0; border-bottom: 1px solid #edf0f3; }
.art-list li a {
  display: block;
  padding: 0.62em 0.2em;
  text-decoration: none;
  line-height: 1.4;
}
.art-list li a:hover { background: #f4f8fc; }
.art-empty { padding: 1.4em; text-align: center; color: #6b7280; background: #f7f8fa; border-radius: 8px; }

@media (max-width: 820px) {
  .art-jump { padding: 0.8em; }
  .art-jump a { font-size: 0.86em; }
}

/* --- browse-all pointer on the homepage ---------------------------------- */
.browse-all {
  max-width: var(--tech-measure);
  margin: 0 auto 1.8em;
  padding: 0.85em 1.1em;
  background: #f4f8fc;
  border: 1px solid #d6e4f2;
  border-left: 4px solid #1e73be;
  border-radius: 6px;
  font-weight: 700;
}
.browse-all a { text-decoration: none; }

/* ===== landing page ====================================================== */
.home { max-width: var(--tech-measure); margin: 0 auto; }

.home-hero { margin: 0.5em 0 2.6em; }
.home-hero h1 { margin: 0 0 0.3em; font-size: 2.3em; font-weight: 300; line-height: 1.15; }
.home-hero p { margin: 0; font-size: 1.12em; line-height: 1.6; color: #55606e; }

.home-block { margin: 0 0 2.8em; }
.home-h {
  margin: 0 0 0.9em;
  font-size: 1.28em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* start here */
.start-list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.start-list li { margin: 0 0 0.55em; }
.start-list a {
  display: flex;
  gap: 0.95em;
  align-items: flex-start;
  padding: 0.95em 1.1em;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e1e6ec;
  border-radius: 8px;
}
.start-list a:hover { border-color: #1e73be; background: #f6fafe; }
.start-n {
  flex: 0 0 auto;
  width: 1.9em; height: 1.9em;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95em; font-weight: 700;
  color: #fff; background: #1e73be; border-radius: 50%;
}
.start-body { display: block; }
.start-body strong { display: block; color: #1a1a1a; line-height: 1.35; margin-bottom: 0.15em; }
.start-hook { display: block; font-size: 0.9em; color: #6b7280; line-height: 1.45; }

/* topic tiles */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7em; }
.topic-tile {
  display: block;
  padding: 0.95em 1em;
  text-decoration: none;
  background: #f7f8fa;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  border-left: 4px solid #1e73be;
}
.topic-tile:hover { background: #1e73be; border-color: #1e73be; }
.topic-name { display: block; font-weight: 700; color: #1a1a1a; line-height: 1.3; }
.topic-n { display: block; margin-top: 0.15em; font-size: 0.85em; color: #6b7280; }
.topic-tile:hover .topic-name, .topic-tile:hover .topic-n { color: #fff; }

/* two-column lists */
.home-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2em; }
.pick-list { margin: 0; padding: 0; list-style: none; }
.pick-list li { border-bottom: 1px solid #edf0f3; }
.pick-list li a { display: block; padding: 0.55em 0; text-decoration: none; line-height: 1.4; }
.pick-list li a:hover { color: #1e73be; }

.home-more {
  display: flex; flex-wrap: wrap; gap: 1.4em;
  margin: 0.5em 0 1em; padding-top: 1.2em;
  border-top: 2px solid #edf0f3;
  font-weight: 700;
}
.home-more a { text-decoration: none; }

@media (max-width: 820px) {
  .home-hero h1 { font-size: 1.75em; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .home-cols { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 480px) {
  .topic-grid { grid-template-columns: 1fr; }
}

/* --- "there is something new here" signals -------------------------------- */
.home-cadence {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 1em 0 0;
  padding: 0.4em 0.9em 0.4em 0.7em;
  font-size: 0.95em;
  font-weight: 700;
  color: #14532d;
  background: #e8f6ee;
  border: 1px solid #bfe3cf;
  border-radius: 999px;
}
.home-cadence .dot {
  width: 0.55em; height: 0.55em;
  background: #17a34a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(23,163,74,0.18);
}

.badge-new {
  display: inline-block;
  margin-left: 0.45em;
  padding: 0.1em 0.5em;
  font-size: 0.68em;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #fff;
  background: #17a34a;
  border-radius: 999px;
}

.subscribe {
  margin: 0 0 2.4em;
  padding: 1.5em 1.6em;
  background: #f7f8fa;
  border: 1px solid #e3e7ec;
  border-radius: 10px;
}
.subscribe h2 { margin: 0 0 0.35em; font-size: 1.25em; font-weight: 700; }
.subscribe > p { margin: 0 0 1.1em; color: #55606e; }
.subscribe-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.sub-card {
  display: block;
  padding: 1em 1.1em;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  border-left: 4px solid #1e73be;
}
.sub-card:hover { border-color: #1e73be; background: #f6fafe; }
.sub-card strong { display: block; margin-bottom: 0.25em; color: #1a1a1a; }
.sub-card span { display: block; font-size: 0.9em; line-height: 1.5; color: #6b7280; }

@media (max-width: 820px) { .subscribe-row { grid-template-columns: 1fr; } }
