/*
Theme Name: RLT
Theme URI: /
Description: Rockhampton Little Theatre child theme — brand palette, typography and layout hooks.
Author: WHONET IT Services
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.6
Text Domain: rlt
*/

:root {
  --rlt-red: #8c1c2b;
  --rlt-red-dark: #6d1421;
  --rlt-gold: #c9a227;
  --rlt-charcoal: #14100f;
  --rlt-cream: #f7f3ec;
}

body {
  background-color: var(--rlt-cream);
}

a {
  color: var(--rlt-red);
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--rlt-red-dark);
}

.wp-block-site-title a {
  color: var(--rlt-charcoal);
  text-decoration: none;
}

.wp-block-button__link {
  background-color: var(--rlt-red);
  color: #fff;
  border-radius: 6px;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background-color: var(--rlt-red-dark);
  color: #fff;
}

/* Thin brand rule under the header. */
.wp-block-template-part:first-of-type {
  border-bottom: 3px solid var(--rlt-gold);
}

/* The productions submenu — the `nav.php` fragment on desktop, and meanMenu's nested rows
 * on a phone. Both were reported as defects and both are fixed here rather than in the
 * vendored sheets.
 *
 * 1. DESKTOP. The ported rules styled the dropdown as a blue WordPress default — a #0072bc
 *    panel with #00548f separators — which matches nothing else on the site, with the bar's
 *    purple text sitting on top of it. It now uses the PARENT MENU's colouring: the bar's
 *    white, the same #320f74 text, the same #fdcb01 hover, and the light separator the
 *    mobile rows already use. A shadow separates it from the page content underneath.
 *    `#nav`-scoped, so it wins on specificity whatever order the legacy sheets load in.
 *
 * 2. MOBILE. meanMenu puts the +/- toggle in a 39px column at the right edge while the row's
 *    label only had 20px of right padding, so the glyph sat on the last 19px of the text —
 *    unreadable, and an ambiguous tap. A row that HAS a toggle now reserves the toggle's
 *    width and the toggle itself is a 44x48 target instead of 39x39. The `header .mean-container`
 *    prefix is what beats the legacy rule (`.mean-container` IS `.navigation`, so there is no
 *    wrapping element to scope with).
 *
 * Leaf rows are untouched in both cases. */
#nav ul li ul {
  background-color: #fff;
  padding: 0;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .18);
}
#nav ul li ul li {
  border-top: 1px solid rgba(0, 0, 0, .1);
}
#nav ul li ul li a {
  color: #320f74;
  /* The same WordPress-default block that painted the panel blue also dropped the child
   * rows to 11px — under a 17px parent menu. 13px keeps the dropdown readable without
   * changing the row height it was designed around. */
  font-size: 13px;
}
#nav ul li ul li a:hover,
#nav ul li ul li a:focus {
  color: #fdcb01;
  text-decoration: underline;
}

.mean-container .mean-nav ul li:has(> a.mean-expand) > a:not(.mean-expand) {
  padding-right: 60px;
}
header .mean-container .mean-nav ul li a.mean-expand {
  width: 44px;
  height: 48px;
  line-height: 48px;
}

/* Cards — the [card] shortcode's panel, and the row that lays cards out.
 *
 * The colours are the ones the ported pages already use, not this file's own palette: the
 * legacy sheets load AFTER this one, so a page here is the deep-purple/black/gold the fees
 * table draws, and a card has to read as the same kind of object. Hence #111 and #fdcb01.
 *
 * `.rlt-cards` is the row: cards flow into as many columns as fit and prose spans them all,
 * so the ticket page's three sections sit side by side and stack on a phone. A card used
 * without that wrapper is simply a standalone panel. */
.rlt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.rlt-cards > p,
.rlt-cards > h2,
.rlt-cards > h3,
.rlt-cards > h4,
.rlt-cards > ul,
.rlt-cards > ol {
  grid-column: 1 / -1;
}

.rlt-card {
  background: #111;
  color: #fff;
  border-top: 3px solid #fdcb01;
  border-radius: 2px;
  padding: 22px 24px 24px;
  box-sizing: border-box;
}
.rlt-card > :first-child { margin-top: 0; }
.rlt-card > :last-child { margin-bottom: 0; }
.rlt-card h4 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: #fdcb01;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.rlt-card p { font-size: 17px; line-height: 1.5; }
.rlt-card a { color: #fdcb01; }
.rlt-card a:hover,
.rlt-card a:focus { color: #fff; }
.rlt-card-icon { margin: 0 0 14px; }
.rlt-card-icon img { display: block; width: auto; max-width: 74px; height: auto; }

@media (max-width: 560px) {
  .rlt-card { padding: 18px 18px 20px; }
  .rlt-card h4 { font-size: 20px; }
}