/*
Theme Name: Families In Crisis
Theme URI: https://familiesincrisis.net/
Author: Families In Crisis, Inc.
Description: Accessible, survivor-first theme for Families In Crisis, Inc. (Killeen, Texas). Built on the Modernist design tokens: flat, ruled, Archivo throughout, zero corner radius. Includes a persistent 24-hour hotline bar, a quick-exit control, and an internet-safety modal on every page.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fic
Tags: nonprofit, accessibility-ready, custom-menu, translation-ready
*/

/* ==========================================================================
   WordPress-specific layer.
   The design itself lives in assets/css/tokens.css (Modernist tokens) and
   assets/css/site.css (page styles). Only WP output needs styling here.
   ========================================================================== */

/* wp_nav_menu prints a <ul>; .nav expects a flat row of links. */
.nav ul { list-style: none; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav .current-menu-item > a,
.nav .current_page_item > a { color: var(--color-accent); }
.f-list ul { list-style: none; display: grid; gap: 2px; margin: 0; padding: 0; }
.f-list li { margin: 0; }
/* wp_nav_menu has no link_class argument in core, so a menu assigned in
   Appearance > Menus prints bare <a> tags. Style by position, not by class,
   so the footer links match whether they come from the menu or the fallback. */
.f-list a,
.f-list a:visited {
  color: var(--color-neutral-100); text-decoration: none;
  font: inherit; font-size: 16px; line-height: 1.9;
}
.f-list a:hover, .f-list a:focus-visible { color: var(--color-accent-400); text-decoration: underline; }
.f-list .current-menu-item > a, .f-list .current_page_item > a { color: var(--color-accent-400); }

/* Editor-authored content inside .prose */
.prose img, .prose iframe { max-width: 100%; height: auto; }
.prose figure { margin: 0 0 20px; }
.prose figcaption { font-size: 13px; line-height: 1.5; color: var(--color-neutral-700); padding-top: 10px; }
.prose blockquote {
  margin: 0 0 20px; padding: 4px 0 4px 20px;
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-heading); font-weight: 600; font-size: 19px; line-height: 1.4;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 0 0 20px; }
.prose th { text-align: left; border-bottom: 2px solid var(--color-divider); padding: 10px 12px 10px 0; }
.prose td { border-bottom: 1px solid var(--color-divider); padding: 12px 12px 12px 0; }
.prose .wp-caption { max-width: 100%; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 20px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* News / blog listing */
.post-list { border-top: 2px solid var(--color-divider); }
.post-item { padding: 24px 0; border-bottom: 1px solid var(--color-divider); }
.post-date {
  font-family: var(--font-heading); font-weight: 800; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--color-neutral-700);
  margin-bottom: 8px;
}
.post-title { font-size: clamp(21px, 2.3vw, 27px); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.02em; }
.post-title a { color: var(--color-text); text-decoration: none; }
.post-title a:hover { color: var(--color-accent); }
.post-excerpt { font-size: 16px; line-height: 1.55; color: var(--color-neutral-800); margin: 0; }
.pager { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; font-family: var(--font-heading); font-weight: 800; }
.pager a, .pager .page-numbers { padding: 10px 14px; border: 2px solid var(--color-divider); text-decoration: none; color: var(--color-text); }
.pager .current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* Search */
.searchform { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.searchform input[type="search"] {
  flex: 1 1 220px; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 2px solid var(--color-divider); background: var(--color-bg); color: var(--color-text);
}
.searchform input[type="search"]:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* WordPress admin bar clears the sticky hotline bar */
body.admin-bar .bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .bar { top: 46px; } }
