/*
Theme Name: Library Astra Child
Theme URI: https://thelibraryestate.com
Description: House child theme for The Library Media — extends Astra with the Sports Desk soccer data pages (standings, fixtures and results rendered server-side from the private provider-neutral JSON store). Built and deployed by the house; no third-party code.
Author: The Library Media
Template: astra
Version: 1.0.1
Text Domain: library-astra-child
*/

/* Soccer data pages (Phase 1) */
.library-soccer .standings-table-wrap { overflow-x: auto; }
.library-soccer table.standings-table { border-collapse: collapse; width: 100%; }
.library-soccer table.standings-table th,
.library-soccer table.standings-table td { padding: 0.3em 0.5em; text-align: left; white-space: nowrap; }
.library-soccer .data-stamp,
.library-soccer .source-credit { font-size: 0.9em; opacity: 0.85; }
@media (max-width: 640px) {
	.library-soccer table.standings-table { font-size: 0.9em; }
}

/* Article card photos (Nov 12, 2026): author portraits are tall images in a wide card
   frame and were being stretched. Crop to the frame instead — object-position
   keeps the face in view. Applies to listing/archive cards site-wide. */
.ast-article-post .post-thumb-img-content img.wp-post-image {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: 50% 18%;
}

/* Stage 1 front page — division bands: lead story spans the band, rest in two columns */
.library-band .wp-block-post-template { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; list-style: none; padding: 0; }
.library-band .wp-block-post:first-child { grid-column: 1 / -1; }
.library-band .wp-block-post:first-child .wp-block-post-title { font-size: 1.6em; }
.library-band { margin-top: 2.5rem; }

/* Share bar v2 — logo buttons (Nov 12, 2026) */
.library-share { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid #d8d8d8; }
.library-share-label { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; color: #5a5a5a; margin-right: 0.35rem; }
.library-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #2f2f2f; color: #ffffff; border: none; cursor: pointer; text-decoration: none; transition: background 0.15s ease, transform 0.15s ease; }
.library-share-btn:hover { background: #7d8c74; color: #ffffff; text-decoration: none; transform: translateY(-1px); }
.library-share-btn.copied { background: #7d8c74; }
.library-share-btn svg { display: block; }

/* Follow strip guard (Nov 12, 2026): strip icons in stored posts carry
   display:block inline, which stacks them vertically. Force the six strip
   icons back into a horizontal row on every post, past and future. */
.entry-content img[src$="/2026/11/x.png"],
.entry-content img[src$="/2026/11/facebook.png"],
.entry-content img[src$="/2026/11/instagram.png"],
.entry-content img[src$="/2026/11/threads.png"],
.entry-content img[src$="/2026/11/mastodon.png"],
.entry-content img[src$="/2026/11/bluesky.png"] {
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 3px;
  vertical-align: middle;
}

/* Subheads in article body (Captain's standing rule, Nov 12, 2026):
   a step larger than body text and bold. */
.entry-content h3 {
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.5em 0 0.5em;
}

/* Front page (Captain's direction, Nov 12, 2026): the page title is
   "Current Headlines", centered, same bold face. Story lists carry the
   picture above a bigger, bold headline — the same card shape a clearly
   labeled sponsored placement will use. Dates are removed from the
   front-page lists (removed from the page's query templates). */
.page-id-883 .entry-title { text-align: center; }
.page-id-883 .wp-block-post-title { font-size: 1.45em; font-weight: 700; line-height: 1.25; }
.page-id-883 .wp-block-post-featured-image { margin-bottom: 0.6rem; }

/* Front page headline color (Captain, Nov 12, 2026): story headlines in
   the site's ink (black), never underlined. */
.page-id-883 .wp-block-post-title,
.page-id-883 .wp-block-post-title a {
  color: #2e2a26;
  text-decoration: none;
}

/* Front page photo uniformity (Captain, Nov 12, 2026): every story photo
   on the front page sits in the same 16:9 frame, cropped to fill, so
   portrait and landscape originals line up identically. */
.page-id-883 .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Share bar spacing (Captain, Nov 12, 2026): the logos get real thumb
   room — wider gaps everywhere, and on phones the buttons grow to a
   44px touch target with an 18px gap. */
.library-share { gap: 16px; }
@media (max-width: 600px) {
  .library-share { gap: 18px; }
  .library-share-btn { width: 44px; height: 44px; }
}

.library-timestamp{font-size:.82em;color:#6f6a63;margin:.2em 0 .8em;letter-spacing:.01em}

/* Punching Down nameplate (Nov 13, 2026) */
.library-pd-nameplate { font-size: 2em; font-weight: 800; color: #2e2a26; border-bottom: 4px solid #2e2a26; padding-bottom: 0.2em; margin: 0 0 0.7em 0; line-height: 1.2; letter-spacing: 0.01em; }
