/* ==========================================================================
   custom.css
   Overrides carried forward from the original Mainroad-modified theme.
   Place in static/css/ (NOT assets/css/) — see project handoff notes on
   why assets/ requires the resource pipeline and static/ does not.

   IMPORTANT: This file is served as a plain static asset, not run through
   Hugo's template engine — so it can't reference Site.Params the way
   roadster-style.css does internally. Highlight color is hardcoded below
   to the confirmed value (#4078c0). If you ever change the highlight
   color in hugo.toml, update it here too.
   ========================================================================== */

:root {
  --highlight-color: #4078c0;
}

/* --------------------------------------------------------------------------
   1. Custom table class — not present anywhere in Roadster.
   Used for the "posts-style" tables scattered through migrated content.
   -------------------------------------------------------------------------- */
.posts-style {
  table-layout: fixed;
  border-left: 0;
  margin: 25px 0; /* fixed malformed "25px, 0" from the original */
  font-size: 0.9em;
  min-width: 400px;
}

.posts-style tr td:first-child {
  width: 55px;
  padding: 2px 2px 5px 2px;
}

.posts-style td {
  border-left: 0 solid;
  border-right: 0 solid;
  text-align: left;
}

.posts-style tbody tr {
  border-bottom: 1px solid #dddddd;
}

.posts-style tbody tr:nth-of-type(even) {
  background-color: #f9f6f6;
}

.posts-style tbody tr:last-of-type {
  border-bottom: 2px solid #c9c7c8;
}

/* --------------------------------------------------------------------------
   2. Base typography size
   Mainroad used 16px/1rem body text; Roadster's default is 14px/.875rem.
   -------------------------------------------------------------------------- */
body {
  font-size: 16px;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   3. Confirmed title/link color (#4078c0) — Roadster defaults these to
   var(--color-text), which is black/adapts with dark mode instead.
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: rgba(42,42,42);
}

a {
  color: var(--highlight-color);
}

/* Confirmed design value: "no underline by default; underline on hover only" */
a:hover {
  text-decoration: underline;
}

.main__title {
  color: rgba(42, 42, 42);
  font-size: 2rem;
  text-transform: uppercase;
}

.post__title {
  color: rgba(42,42,42);
  font-size: 2rem;
}

.post__lead {
  color: var(--highlight-color);
}

/* --------------------------------------------------------------------------
   4. Logo text casing — mainroad disabled the uppercase transform Roadster
   applies by default.
   -------------------------------------------------------------------------- */
.logo__text {
  text-transform: none;
}

/* --------------------------------------------------------------------------
   5. Header background — CONFIRM THIS IS INTENTIONAL.
   This wasn't in the confirmed design values table from the handoff doc.
   Mainroad-modified had a solid gold/yellow header bar; Roadster defaults
   the header to the surface color (white / dark-mode aware).
   -------------------------------------------------------------------------- */
.header {
  background: #ffc000;
}

/* --------------------------------------------------------------------------
   6. Main menu link casing — mainroad had this commented out (disabled);
   Roadster applies uppercase by default.
   -------------------------------------------------------------------------- */
.menu__link {
  text-transform: none;
}

/* --------------------------------------------------------------------------
   7. Widget title / item styling — mainroad stripped Roadster's underline
   border and switched to a plainer, denser widget list style.
   -------------------------------------------------------------------------- */
.widget__title {
  padding-top: 20px;
  padding-bottom: 0;
  font-size: 1em;
  font-weight: normal;
  border-bottom: none;
}

.widget__item {
  padding: 2px 0 2px 8px;
  border-bottom: none;
  text-transform: uppercase;
  font-size: 0.9em;
}

/* --------------------------------------------------------------------------
   8. "Read more" link spacing — mainroad added extra padding/margin/size
   not present in Roadster's default.
   -------------------------------------------------------------------------- */
.list__footer-readmore {
  padding-right: 10px;
  margin-bottom: 10px;
  font-size: 0.9em;
}

h4.widget__title {
  font-size: 1em;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   NOTE — not ported, flagged for your judgment:
   mainroad's .list__title had `font-size: 24px; font-size: 2rem;` while
   Roadster uses `font-size: 20px; font-size: 1.25rem;`. The 24px + 2rem
   pairing in the original doesn't match (2rem = 32px), which looks like a
   leftover mistake rather than an intentional size — recommend leaving
   Roadster's 1.25rem as-is unless you specifically want larger list titles.
   -------------------------------------------------------------------------- */

   .widget-search .search-widget__form {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.widget-search .search-widget__form input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.5em 1em;
  font-size: 0.9rem;
  background: transparent;
}

.widget-search .search-widget__form button {
  border: none;
  background: transparent;
  padding: 0.5em 0.9em;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #888;
}

.widget-search .search-widget__form button:hover {
  color: #4078c0;
}

/* remove default search-input clear/decoration icons in some browsers */
.widget-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.list__title--stickie {
  color: #4078c0;
  font-weight: bold;
  font-size: 2rem;
  cursor: default;
}

.list__title--stickie:hover {
  text-decoration: none;
  cursor: default;
}

.list__item--stickie .list__title--stickie {
  margin-bottom: 0.3rem;
}