/* ================================================================
   THIRSTYBEAR - Blog, Archive, Single Post, Pages, 404
   Complete blog/content styling for WordPress/GeneratePress
   ================================================================ */

/* ================================================================
   SINGLE POST - Featured Image Hero
   Full-width with rough-edge SVG overlay
   ================================================================ */
.single .post-image {
  position: relative;
  height: 55vh;
  min-height: 380px;
  overflow: hidden;
  margin: 0 !important;
  border-radius: 0 !important;
  max-height: none !important;
}

.single .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  transform: scale(1.02);
  transition: transform 6s ease;
}

.single .post-image:hover img {
  transform: scale(1.0);
}

/* Dark gradient overlay on featured image */
.single .post-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 14, 10, 0.2) 0%,
    rgba(26, 14, 10, 0.4) 60%,
    rgba(26, 14, 10, 0.7) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Rough-edge SVG overlay at bottom of featured image */
.tb-rough-edge {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
}

.tb-rough-edge svg {
  display: block;
  width: 100%;
  height: 40px;
}

/* ================================================================
   SINGLE POST - Centered Header
   ================================================================ */
.single .inside-article {
  padding: 0;
  overflow: hidden;
}

.single .inside-article .entry-header {
  text-align: center;
  padding: 48px 24px 32px;
  max-width: 800px;
  margin: -60px auto 0;
  position: relative;
  z-index: 3;
}

.single .entry-title {
  font-family: var(--font-display) !important;
  font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
  color: var(--text-dark);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 20px;
}

/* Category badge above title */
.single .entry-header .tb-category-badge {
  display: inline-block;
  padding: 5px 18px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: var(--amber);
  color: var(--dark-wood);
  border-radius: 99px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: background 0.2s, transform 0.2s;
}

.single .entry-header .tb-category-badge:hover {
  background: var(--amber-bright);
  transform: scale(1.05);
}

/* ================================================================
   SINGLE POST - Meta Bar with Gold Divider
   ================================================================ */
.single .inside-article .entry-header .entry-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  font-family: var(--font-sans) !important;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  position: relative;
}

/* Gold divider line above meta */
.single .inside-article .entry-header .entry-meta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.single .entry-meta .tb-reading-time {
  color: var(--amber);
  font-weight: 700;
}

/* Dot separator in meta */
.single .entry-meta .tb-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}

/* ================================================================
   SINGLE POST - Content Typography
   ================================================================ */
.single .inside-article .entry-content {
  background: var(--warm-white);
  border-radius: 4px;
  padding: 48px;
  box-shadow: 0 2px 20px rgba(26, 14, 10, 0.06);
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
}

/* Drop Cap */
.single .entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  float: left;
  line-height: 0.85;
  margin-right: 10px;
  margin-top: 6px;
  color: var(--amber);
}

.single .entry-content p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 24px;
}

.single .entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-dark);
  text-transform: uppercase;
  margin: 40px 0 16px;
  line-height: 1.2;
}

.single .entry-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warm-brown);
  margin: 32px 0 12px;
}

.single .entry-content a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(228, 166, 36, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.single .entry-content a:hover {
  text-decoration-color: var(--amber);
}

/* Blockquotes */
.single .entry-content blockquote {
  border-left: 4px solid var(--amber);
  background: var(--cream);
  margin: 32px 0;
  padding: 28px 32px;
  border-radius: 0 6px 6px 0;
  position: relative;
}

.single .entry-content blockquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--amber);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 16px;
  line-height: 1;
}

.single .entry-content blockquote p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--warm-brown);
  margin-bottom: 8px;
}

.single .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.single .entry-content blockquote cite {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  font-style: normal;
  font-weight: 700;
}

/* Lists */
.single .entry-content ul,
.single .entry-content ol {
  margin: 16px 0 24px 24px;
}

.single .entry-content li {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 8px;
  padding-left: 8px;
}

.single .entry-content ul li {
  list-style-type: none;
  position: relative;
}

.single .entry-content ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
}

/* Images & Figures */
.single .entry-content img {
  width: 100%;
  border-radius: 6px;
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.single .entry-content figure {
  margin: 32px 0;
}

.single .entry-content figcaption {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: #999;
  text-align: center;
  margin-top: 8px;
}

/* ================================================================
   SINGLE POST - Tags Section
   ================================================================ */
.single .inside-article footer.entry-meta {
  padding: 24px 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 800px;
  margin: 0 auto;
}

.single .entry-meta .tag-links,
.single .entry-meta .cat-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.single .inside-article .entry-meta .cat-links a,
.single .inside-article .entry-meta .tag-links a {
  display: inline-block;
  padding: 4px 12px;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s;
}

.single .inside-article .entry-meta .cat-links a:hover,
.single .inside-article .entry-meta .tag-links a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--dark-wood);
}

/* ================================================================
   SINGLE POST - Post Navigation (Prev/Next Cards)
   ================================================================ */
.post-navigation {
  margin-top: 40px;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  background: var(--cream);
  border-radius: 6px;
  padding: 24px;
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  background: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  text-decoration: none;
}

.post-navigation .meta-nav {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 6px;
}

.post-navigation .post-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ================================================================
   SINGLE POST - Comments Styling
   ================================================================ */
.single .comments-area {
  margin-top: 48px;
  background: var(--warm-white);
  border-radius: 4px;
  padding: 40px 48px;
  box-shadow: 0 2px 20px rgba(26, 14, 10, 0.06);
}

.comments-area .comments-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comments-area .comments-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--amber);
  margin: 12px auto 0;
}

/* Individual comment */
.comments-area .comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comments-area .comment-body {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.comments-area .comment-list > li:last-child > .comment-body {
  border-bottom: none;
}

.comments-area .comment-author .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comments-area .comment-author .fn {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.comments-area .comment-metadata {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.comments-area .comment-metadata a {
  color: #bbb;
  text-decoration: none;
}

.comments-area .comment-content p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 8px;
}

.comments-area .reply a {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  transition: color 0.2s;
}

.comments-area .reply a:hover {
  color: var(--amber-bright);
}

/* Nested/reply comments */
.comments-area .children {
  list-style: none;
  margin-left: 66px;
  padding: 0;
  border-left: 3px solid var(--amber-dim);
  padding-left: 20px;
}

/* Comment form */
.comments-area .comment-respond {
  margin-top: 32px;
}

.comments-area .comment-reply-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.comments-area .comment-form-author,
.comments-area .comment-form-email {
  display: inline-block;
  width: calc(50% - 8px);
}

.comments-area .comment-form-author {
  margin-right: 16px;
}

.comments-area .comment-form input[type="text"],
.comments-area .comment-form input[type="email"],
.comments-area .comment-form input[type="url"],
.comments-area .comment-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--cream);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comments-area .comment-form input:focus,
.comments-area .comment-form textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(228, 166, 36, 0.1);
}

.comments-area .comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comments-area .comment-form input::placeholder,
.comments-area .comment-form textarea::placeholder {
  color: #bbb;
}

/* ================================================================
   ARCHIVE / CATEGORY - Page Header
   Wood-texture with breadcrumb area
   ================================================================ */
.archive .page-header,
.search .page-header {
  background:
    repeating-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03) 1px, transparent 2px, transparent 6px),
    linear-gradient(180deg, #2c1810 0%, #3d2114 50%, #2c1810 100%) !important;
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  color: var(--cream);
  margin-bottom: 24px;
}

/* Grain texture overlay on page header */
.archive .page-header::before,
.search .page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Breadcrumb */
.archive .page-header .tb-breadcrumb,
.search .page-header .tb-breadcrumb {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  position: relative;
}

.archive .page-header .tb-breadcrumb a,
.search .page-header .tb-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.archive .page-header .tb-breadcrumb a:hover {
  color: var(--amber);
}

.archive .page-header .tb-breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Archive title */
.archive .page-header .archive-title,
.archive .page-header .page-title,
.search .page-header .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--warm-white) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  margin-bottom: 12px;
}

.archive .page-header .archive-title span {
  color: var(--amber);
}

/* Archive description */
.archive .page-header .archive-description,
.archive .page-header .taxonomy-description {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
}

/* Post count */
.archive .page-header .tb-post-count {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-top: 16px;
  position: relative;
}

/* ================================================================
   ARCHIVE / CATEGORY - Post Cards (Standard)
   ================================================================ */
.blog .inside-article,
.archive .inside-article,
.search .inside-article {
  padding: 0;
  overflow: hidden;
  background: var(--warm-white);
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(26, 14, 10, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog .inside-article:hover,
.archive .inside-article:hover,
.search .inside-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(26, 14, 10, 0.12);
}

.blog .inside-article .post-image,
.archive .inside-article .post-image {
  margin: 0 0 0 0;
  border-radius: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog .inside-article .post-image img,
.archive .inside-article .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.blog .inside-article:hover .post-image img,
.archive .inside-article:hover .post-image img {
  transform: scale(1.04);
}

.blog .inside-article .entry-header,
.archive .inside-article .entry-header {
  padding: 24px 24px 0;
}

.blog .entry-title,
.archive .entry-title {
  font-family: var(--font-serif) !important;
  font-size: 1.3rem !important;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog .entry-title a,
.archive .entry-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.blog .entry-title a:hover,
.archive .entry-title a:hover {
  color: var(--amber);
}

.blog .inside-article .entry-meta,
.archive .inside-article .entry-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog .inside-article .entry-summary,
.archive .inside-article .entry-summary {
  padding: 0 24px;
  color: #777;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Read More link in excerpts */
.entry-summary .tb-readmore,
.entry-summary .read-more {
  font-family: var(--font-handwritten);
  font-size: 0.95rem;
  color: var(--teal-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}

.entry-summary .tb-readmore:hover,
.entry-summary .read-more:hover {
  color: var(--amber);
  gap: 10px;
}

.blog .inside-article footer.entry-meta,
.archive .inside-article footer.entry-meta {
  padding: 16px 24px;
  margin-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Excerpt brush btn */
.entry-summary .brush-btn {
  margin-top: 12px;
}

/* ================================================================
   ARCHIVE - Featured First Post (2-col split)
   ================================================================ */
.blog article.sticky .inside-article,
.archive article:first-child .inside-article.tb-featured-post {
  border-left: 4px solid var(--amber);
}

/* Sticky post */
.sticky .inside-article {
  border-left: 4px solid var(--amber);
}

/* ================================================================
   PAGINATION (Numbered, Amber Active)
   ================================================================ */
.paging-navigation .nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.paging-navigation .nav-links a,
.paging-navigation .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.paging-navigation .nav-links a {
  background: var(--warm-white);
  color: var(--text-dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.paging-navigation .nav-links a:hover {
  background: var(--warm-brown);
  color: var(--cream);
  transform: translateY(-1px);
}

.paging-navigation .nav-links .current {
  background: var(--amber);
  color: var(--dark-wood);
  box-shadow: 0 2px 8px rgba(228, 166, 36, 0.3);
}

.paging-navigation .nav-links .dots {
  background: transparent;
  color: #999;
  box-shadow: none;
}

/* ================================================================
   SEARCH RESULTS
   Same as archive but with search-specific header
   ================================================================ */
.search .inside-article .post-image {
  margin: 0;
  border-radius: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.search .inside-article .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.search .inside-article .entry-header {
  padding: 24px 24px 0;
}

.search .inside-article .entry-summary {
  padding: 0 24px;
  color: #777;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================================================================
   404 PAGE - Dramatic Centered Layout
   ================================================================ */
.error404 .site-content {
  background: var(--cream) !important;
}

.error404 .inside-article {
  text-align: center;
  padding: 80px 40px;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

/* Subtle background grain on 404 */
.error404 .inside-article::before {
  content: '';
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.error404 .entry-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

/* Huge amber 404 number */
.error404 .tb-404-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 14rem);
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow:
    0 4px 0 rgba(228, 166, 36, 0.2),
    0 8px 0 rgba(228, 166, 36, 0.1),
    0 12px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  letter-spacing: -0.02em;
}

/* Decorative line under 404 */
.error404 .tb-404-number::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

/* "The Brew Has Run Dry" subtitle */
.error404 .entry-title {
  font-family: var(--font-handwritten) !important;
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  color: var(--warm-brown);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Description text */
.error404 .entry-content p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.7;
  color: #777;
  margin-bottom: 40px;
  font-style: italic;
}

/* 404 search form */
.error404 .entry-content .search-form,
.error404 .entry-content .wp-block-search {
  max-width: 420px;
  margin: 0 auto 32px;
}

.error404 .entry-content .search-form {
  display: flex;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
  background: var(--warm-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.error404 .entry-content .search-form:focus-within {
  border-color: var(--amber);
  box-shadow: 0 2px 16px rgba(228, 166, 36, 0.12);
}

.error404 .entry-content .search-form label {
  flex: 1;
}

.error404 .entry-content .search-field {
  width: 100%;
  border: none;
  background: transparent;
  padding: 16px 20px;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
}

.error404 .entry-content .search-field::placeholder {
  color: #bbb;
}

.error404 .entry-content .search-form .search-submit {
  flex: none;
  border: none;
  background: var(--warm-brown);
  color: var(--cream);
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.2s;
}

.error404 .entry-content .search-form .search-submit:hover {
  background: var(--amber);
  color: var(--dark-wood);
}

/* Decorative bear silhouette */
.error404 .tb-bear-icon {
  margin-bottom: 24px;
  opacity: 0.12;
  display: flex;
  justify-content: center;
}

.error404 .tb-bear-icon svg {
  width: 80px;
  height: 80px;
}

/* "Or try these" links */
.error404 .tb-popular-links {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.error404 .tb-popular-links__title {
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--warm-brown);
  margin-bottom: 16px;
}

.error404 .tb-popular-links__list {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.error404 .tb-popular-links__list a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  transition: all 0.2s;
  background: var(--warm-white);
}

.error404 .tb-popular-links__list a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--dark-wood);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(228, 166, 36, 0.2);
}

/* ================================================================
   PAGES - Full-Width Centered Content
   ================================================================ */
.page .inside-article {
  padding: 0;
}

.page .inside-article .entry-header {
  text-align: center;
  padding: 60px 40px 0;
  max-width: 820px;
  margin: 0 auto;
}

.page .entry-title {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  color: var(--text-dark);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.15;
}

/* Gold gradient divider under page title */
.page .entry-header::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  margin: 0 auto 48px;
}

/* Page content typography */
.page .inside-article .entry-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.page .entry-content p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 24px;
}

.page .entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-dark);
  text-transform: uppercase;
  margin: 48px 0 16px;
  line-height: 1.2;
  position: relative;
  padding-bottom: 12px;
}

.page .entry-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--amber);
}

.page .entry-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warm-brown);
  margin: 32px 0 12px;
}

.page .entry-content h4 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 24px 0 8px;
}

.page .entry-content a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-color: rgba(228, 166, 36, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.page .entry-content a:hover {
  text-decoration-color: var(--amber);
  color: var(--warm-brown);
}

/* Page lists */
.page .entry-content ul,
.page .entry-content ol {
  margin: 16px 0 24px 24px;
}

.page .entry-content li {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 8px;
  padding-left: 8px;
}

.page .entry-content ul li {
  list-style-type: none;
  position: relative;
}

.page .entry-content ul li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
}

.page .entry-content ol {
  counter-reset: page-counter;
}

.page .entry-content ol li {
  list-style: none;
  counter-increment: page-counter;
  position: relative;
}

.page .entry-content ol li::before {
  content: counter(page-counter) '.';
  position: absolute;
  left: -28px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--amber);
}

/* Page blockquotes */
.page .entry-content blockquote {
  border-left: 4px solid var(--amber);
  background: var(--warm-white);
  margin: 32px 0;
  padding: 28px 32px;
  border-radius: 0 6px 6px 0;
  position: relative;
}

.page .entry-content blockquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--amber);
  opacity: 0.15;
  position: absolute;
  top: -10px;
  left: 16px;
  line-height: 1;
}

.page .entry-content blockquote p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--warm-brown);
  margin-bottom: 0;
}

/* Page hr */
.page .entry-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
  margin: 40px 0;
}

/* ================================================================
   PAGES - Info Boxes
   ================================================================ */
.tb-info-box {
  background: var(--warm-white);
  border: 1px solid rgba(228, 166, 36, 0.2);
  border-radius: 6px;
  padding: 28px 32px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.tb-info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--amber);
}

.tb-info-box__title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.tb-info-box p {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.tb-info-box p:last-child {
  margin-bottom: 0;
}
