/*
Theme Name: G2C
Theme URI: https://g2crew.com
Author: Blue Llama Media
Description: Lightweight custom theme for G2 Connections. Single-page front end with no page builder dependency.
Version: 1.5.0
Requires at least: 6.5
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: g2c
*/

/* The site styles live in assets/css/main.css, enqueued from functions.php.
   This file carries the theme header and WordPress-specific overrides only. */

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #fff;
  clip-path: none;
  color: #1d2a56;
  display: block;
  font-size: 1rem;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* WordPress admin bar must not hide the fixed nav. */
body.admin-bar .nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .nav {
    top: 46px;
  }
}

/* ---------- inner pages (posts, pages, archives, 404) ----------
   The front page is fully styled by main.css; these rules cover the
   templates that render WordPress content instead. */

.inner {
  padding: 72px 0 96px;
}

.inner .sec-head h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  margin: 0.3em 0 0.35em;
}

.wrap-narrow {
  max-width: 1100px;
}

.entry {
  font-size: 1.06rem;
  color: var(--charcoal);
}

.entry > * + * {
  margin-top: 1.15em;
}

.entry h2,
.entry h3,
.entry h4 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.entry h2 {
  font-size: 1.7rem;
}

.entry h3 {
  font-size: 1.35rem;
}

.entry a {
  color: var(--orange-deep);
}

.entry ul,
.entry ol {
  padding-left: 1.4em;
}

.entry li + li {
  margin-top: 0.4em;
}

.entry img,
.entry iframe {
  max-width: 100%;
  height: auto;
  border-radius: var(--r);
}

.entry blockquote {
  border-left: 3px solid var(--orange);
  padding-left: 1.2em;
  color: var(--muted);
  font-style: italic;
}

.entry table {
  width: 100%;
  border-collapse: collapse;
}

.entry th,
.entry td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.post-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card-body time {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-card-body h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.post-card-body h3 a {
  color: var(--navy);
  text-decoration: none;
}

.post-card-body h3 a:hover {
  color: var(--orange-deep);
}

.post-card-body p {
  color: var(--muted);
  font-size: 0.98rem;
}

.post-card-body .more {
  margin-top: auto;
  color: var(--orange-deep);
  font-weight: 600;
  text-decoration: none;
}

.pagination {
  margin-top: 56px;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin-right: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
}

.pagination .page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
