/* ==========================================================================
   Arkansas Radio site styles
   Sidebar card system, widget titles and calls to action. Served by the
   arkansasradio-site-styles mu-plugin while Lightly is active, and by the
   child theme's functions.php once lightly-child is active.
   ========================================================================== */

:root {
  --ar-red: #d10000;
  --ar-red-grad: linear-gradient(180deg, #ff1a1a 0%, #d10000 100%);
  --ar-red-grad-hover: linear-gradient(180deg, #ff3333 0%, #c00000 100%);
  --ar-red-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(200, 0, 0, 0.28);
  --ar-red-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(200, 0, 0, 0.35);
  --ar-ink: #1a1a1a;
  --ar-muted: #6b6b6b;
  --ar-line: #e5e5e5;
  --ar-card-bg: linear-gradient(180deg, #ffffff 0%, #f7f7f8 100%);
  --ar-radius: 12px;
  --ar-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.05);
  --ar-sans: Lato, Arial, Helvetica, sans-serif;
  --ar-serif: Copse, Georgia, "Times New Roman", Times, serif;
}

/* --------------------------------------------------------------------------
   Column: every sidebar module shares the newsletter card's 300px width.
   -------------------------------------------------------------------------- */
#secondary > div {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
#secondary .widget {
  margin-bottom: 24px;
}
#block-15 {
  display: none;
}

/* --------------------------------------------------------------------------
   Section titles: the h2 heading widgets and the events widget header.
   -------------------------------------------------------------------------- */
#secondary h2.wp-block-heading,
#secondary .tribe-events-widget-events-list__header-title {
  font-family: var(--ar-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ar-ink);
  text-align: left;
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ar-line);
  position: relative;
}
#secondary h2.wp-block-heading::after,
#secondary .tribe-events-widget-events-list__header-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--ar-red);
}
/* A heading widget sits directly on the card it introduces. */
#block-4,
#block-6,
#block-11 {
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Card base.
   -------------------------------------------------------------------------- */
#block-2,
#block-5,
#block-7,
#block-12,
#block-13,
#secondary .tribe-compatibility-container {
  background: var(--ar-card-bg);
  border: 1px solid var(--ar-line);
  border-radius: var(--ar-radius);
  box-shadow: var(--ar-shadow);
  overflow: hidden;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Submit An Event: one full-width charcoal button, so red stays reserved
   for the email and listen calls to action.
   -------------------------------------------------------------------------- */
#block-3 > div {
  width: 100% !important;
  margin: 0 !important;
}
#block-3 button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  position: static !important;
  padding: 14px 18px !important;
  font-family: var(--ar-sans) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  color: #fff !important;
  background: linear-gradient(180deg, #333 0%, #1c1c1c 100%) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.22) !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
#block-3 button:hover {
  background: linear-gradient(180deg, #444 0%, #262626 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 8px 18px rgba(0, 0, 0, 0.26) !important;
}
#block-3 button span {
  position: static !important;
  transform: none !important;
  display: inline-flex;
}
#block-3 button img.emoji {
  width: 20px !important;
  height: 20px !important;
}

/* --------------------------------------------------------------------------
   Image cards: live radar and the Delilah promo.
   -------------------------------------------------------------------------- */
#block-2 figure,
#block-12 figure {
  margin: 0;
}
#block-2 img,
#block-12 img {
  display: block;
  width: 100%;
  height: auto;
}
#block-2 figure::after {
  content: "Live radar \00b7\00a0 Little Rock NWS";
  display: block;
  padding: 9px 12px 10px;
  font-family: var(--ar-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ar-muted);
  border-top: 1px solid var(--ar-line);
}

/* --------------------------------------------------------------------------
   Forecast lookup card.
   -------------------------------------------------------------------------- */
#block-13 {
  padding: 18px 18px 16px;
  text-align: center;
}
#block-13 address {
  font-style: normal;
  margin: 0;
}
#block-13 > address:first-child {
  font-family: var(--ar-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ar-ink);
  margin-bottom: 12px;
}
#block-13 form {
  margin: 0;
}
#block-13 input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 11px 14px;
  font-family: var(--ar-sans);
  font-size: 14px;
  color: var(--ar-ink);
  background: #fff;
  border: 1.5px solid #d8d8d8;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#block-13 input[type="text"]:focus {
  outline: none;
  border-color: var(--ar-red);
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.12);
}
#block-13 input[type="submit"] {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--ar-sans);
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ar-red-grad);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--ar-red-shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#block-13 input[type="submit"]:hover {
  background: var(--ar-red-grad-hover);
  transform: translateY(-1px);
  box-shadow: var(--ar-red-shadow-hover);
}
#block-13 p {
  margin: 10px 0 0;
  font-family: var(--ar-sans);
  font-size: 12.5px;
  line-height: 1.4;
}
#block-13 p a {
  color: var(--ar-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#block-13 p a:hover {
  color: var(--ar-red);
}

/* --------------------------------------------------------------------------
   Listen Live station rows.
   -------------------------------------------------------------------------- */
#block-5 table,
#block-7 table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
#block-5 td,
#block-7 td {
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--ar-line) !important;
  vertical-align: middle !important;
}
#block-5 tr:last-child td,
#block-7 tr:last-child td {
  border-bottom: 0 !important;
}
#block-5 td:first-child {
  width: 52%;
}
#block-5 td:last-child {
  text-align: right !important;
}
#block-5 img {
  display: block;
  width: auto;
  max-width: 110px !important;
  max-height: 46px;
  height: auto !important;
}
#block-5 a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  padding: 10px 14px !important;
  font-family: var(--ar-sans) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: #fff !important;
  background: var(--ar-red-grad) !important;
  border-radius: 8px !important;
  box-shadow: var(--ar-red-shadow);
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#block-5 a::before {
  content: "\25B6";
  font-size: 9px;
  margin-right: 7px;
  line-height: 1;
}
#block-5 a:hover {
  background: var(--ar-red-grad-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--ar-red-shadow-hover);
}

/* --------------------------------------------------------------------------
   Voices You Love: round portraits and host names.
   -------------------------------------------------------------------------- */
#block-7 td {
  padding: 10px 14px !important;
}
#block-7 td:first-child {
  width: 70px;
}
#block-7 img {
  display: block;
  width: 56px !important;
  height: 56px !important;
  max-width: none !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--ar-line), 0 2px 6px rgba(0, 0, 0, 0.08);
}
#block-7 a {
  display: block;
  font-family: var(--ar-sans) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  color: var(--ar-ink) !important;
  text-decoration: none !important;
}
#block-7 a::after {
  content: "Arkansas Radio host";
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--ar-red);
}
#block-7 tr:hover a {
  color: var(--ar-red) !important;
}

/* --------------------------------------------------------------------------
   Upcoming Events widget.
   -------------------------------------------------------------------------- */
#secondary .tribe-compatibility-container {
  padding: 16px 16px 14px;
}
#secondary .tribe-events-widget-events-list__header {
  margin: 0;
}
#secondary .tribe-events-widget-events-list__events {
  margin: 0;
}
#secondary .tribe-events-widget-events-list__event-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--ar-line);
}
#secondary .tribe-events-widget-events-list__event-wrapper:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
#secondary .tribe-events-widget-events-list__event-date-tag {
  flex: 0 0 46px;
  width: 46px;
  min-height: 50px;
  margin: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--ar-line);
  border-radius: 8px;
}
#secondary .tribe-events-widget-events-list__event-date-tag-datetime {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#secondary .tribe-events-widget-events-list__event-date-tag-month {
  font-family: var(--ar-sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ar-red);
}
#secondary .tribe-events-widget-events-list__event-date-tag-daynum {
  font-family: var(--ar-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ar-ink);
}
#secondary .tribe-events-widget-events-list__event-details {
  flex: 1 1 auto;
  min-width: 0;
}
#secondary .tribe-events-widget-events-list__event-datetime-wrapper {
  margin: 0;
}
#secondary .tribe-events-widget-events-list__event-datetime {
  font-family: var(--ar-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ar-muted);
}
#secondary .tribe-events-widget-events-list__event-title {
  margin: 3px 0 0 !important;
  font-family: var(--ar-sans) !important;
  font-size: 14.5px !important;
  line-height: 1.35 !important;
}
#secondary .tribe-events-widget-events-list__event-title a {
  font-weight: 700;
  color: var(--ar-ink);
  text-decoration: none;
}
#secondary .tribe-events-widget-events-list__event-title a:hover {
  color: var(--ar-red);
}
#secondary .tribe-events-widget-events-list__view-more {
  margin: 12px 0 0;
  padding: 0;
  text-align: center;
}
#secondary .tribe-events-widget-events-list__view-more-link {
  display: block;
  padding: 11px 14px;
  font-family: var(--ar-sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ar-red);
  border: 1.5px solid var(--ar-red);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
#secondary .tribe-events-widget-events-list__view-more-link:hover {
  background: var(--ar-red);
  color: #fff;
}

/* --------------------------------------------------------------------------
   "Add as preferred source on Google" card at the top of every article.
   -------------------------------------------------------------------------- */
.ar-preferred-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--ar-card-bg);
  border: 1px solid var(--ar-line);
  border-left: 4px solid var(--ar-red);
  border-radius: var(--ar-radius);
  box-shadow: var(--ar-shadow);
  box-sizing: border-box;
}
.ar-preferred-source .ar-ps-text {
  flex: 1 1 300px;
  min-width: 0;
  font-family: var(--ar-sans);
}
.ar-preferred-source .ar-ps-text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ar-ink);
}
.ar-preferred-source .ar-ps-text span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ar-muted);
}
.ar-preferred-source .ar-ps-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.ar-preferred-source .ar-ps-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-family: var(--ar-sans);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ar-ink);
  background: #fff;
  border: 1.5px solid #d8d8d8;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ar-preferred-source .ar-ps-link:hover {
  border-color: var(--ar-red);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.ar-preferred-source .ar-ps-link[hidden] {
  display: none;
}
.ar-preferred-source .ar-ps-g {
  flex: 0 0 auto;
}
@media (max-width: 600px) {
  .ar-preferred-source {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  /* In a column the 300px flex basis would become height; reset it. */
  .ar-preferred-source .ar-ps-text {
    flex: 0 0 auto;
  }
  .ar-preferred-source .ar-ps-action {
    justify-content: center;
  }
}
