/*
Theme Name: InsideGoogle 2026
Theme URI: https://insidegoogle.com
Description: A modern rebuild of the original FreshNews theme for InsideGoogle.com — same warmbeige palette, same UX, fully responsive with 2026 SEO standards, schema.org Article markup, OpenGraph, and Core Web Vitals optimised. Built for static export via Simply Static.
Version: 1.0.0
Author: Consumer Watchdog
Author URI: https://www.consumerwatchdog.org
License: GPL-2.0-or-later
Text Domain: insidegoogle-2026
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — the original FreshNews palette
   ============================================================ */
:root {
  --color-bg:          #ebe9e1;
  --color-bg-dark:     #e4e2db;
  --color-box:         #ffffff;
  --color-box-inner:   #F8F8F4;
  --color-border:      #dedbd1;
  --color-border-lt:   #f1f1ed;
  --color-text:        #555555;
  --color-text-dark:   #222222;
  --color-text-mid:    #363636;
  --color-text-muted:  #777777;
  --color-text-meta:   #a0a09b;
  --color-link:        #e8a02c;
  --color-link-hover:  #ff7800;
  --color-link-dark:   #821b0e;
  --color-nav-text:    #333333;
  --color-nav-hover:   #ff7800;
  --font-body:         Arial, Helvetica, Tahoma, Verdana, sans-serif;
  --font-size-base:    12px;
  --radius:            0px;
  --max-width:         980px;
  --col-content:       62%;
  --col-sidebar:       35%;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font: var(--font-size-base)/1.5 var(--font-body);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--color-link); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }
li  { list-style: none; }

input, select, textarea {
  border: 1px solid #cacaca;
  font-size: var(--font-size-base);
  font-family: var(--font-body);
  padding: 5px;
}
select { padding: 0; }

/* ============================================================
   LAYOUT WRAPPER
   ============================================================ */
#wrapper {
  position: relative;
  z-index: 1;
}

.site-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 10px;
}

/* ============================================================
   HEADER
   Logo (left) + Search (right)
   ============================================================ */
#site-header {
  height: 109px;
  overflow: hidden;
  position: relative;
  /* Clean warm-cream gradient so the InsideGoogle logo floats on a light surface */
  background: linear-gradient(180deg, #ffffff 0%, #f5f2ec 100%);
  border-bottom: 1px solid #dedad2;
}

#site-header .site-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 109px;
}

/* Logo / Title */
.site-branding {
  flex: 0 0 auto;
  max-width: 70%;
}

.site-branding a {
  display: block;
  text-decoration: none;
}

.site-branding img.logo {
  margin-top: 15px;
  max-height: 80px;
  width: auto;
  display: block;
}

/* H1 hidden — same as original: logo image carries the brand mark */
.site-branding h1 {
  display: none;
}

/* Search box */
.header-search {
  flex: 0 0 auto;
  padding-top: 37px;
  text-align: right;
  font-size: 11px;
  color: var(--color-text-meta);
}

#searchform {
  display: flex;
  align-items: center;
  gap: 4px;
}

#searchform #s {
  background: var(--color-box);
  border: 1px solid var(--color-border);
  padding: 5px 8px;
  width: 160px;
  font-size: 11px;
  color: var(--color-text-muted);
}

#searchform #s:focus {
  outline: 1px solid var(--color-link);
  color: var(--color-text);
}

.search-btn {
  background: var(--color-link);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  padding: 5px 10px;
  transition: background 0.15s;
}

.search-btn:hover { background: var(--color-link-hover); }

/* ============================================================
   CATEGORY NAV BAR  (#topmenu)
   Warm charcoal gradient with amber underline accent.
   ============================================================ */
#topmenu {
  position: relative;
  height: 36px;
  margin-bottom: 0;
  /* White 3D gradient — professional raised-bar appearance */
  background: linear-gradient(180deg, #fdfcfa 0%, #f0ece2 55%, #e3ded4 100%);
  border-top: 1px solid #ffffff;
  border-bottom: 2px solid #c6c1b6;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.95);
}

#topmenu .site-container {
  display: flex;
  align-items: stretch;
  height: 36px;
  position: relative;
}

/* Category list */
#cat-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
#cat-nav::-webkit-scrollbar { display: none; }

#cat-nav li {
  border-left: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
}

#cat-nav li:last-child { border-right: 1px solid rgba(0,0,0,0.1); }

#cat-nav li a {
  color: #3a3830;
  display: block;
  padding: 0 15px;
  line-height: 34px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
  transition: color 0.15s;
}

#cat-nav li a:hover,
#cat-nav li.current-cat > a,
#cat-nav li.active > a {
  color: var(--color-link-hover);
  text-decoration: none;
}

/* ConsumerWatchdog logo area */
#header-cwd-logo {
  position: absolute;
  top: 2px;
  right: 10px;
  height: 29px;
  display: flex;
  align-items: center;
}

#header-cwd-logo img {
  width: 108px;
  height: 29px;
  display: block;
}

/* Mobile hamburger — hidden on desktop, shown at ≤900px */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 200;
  border-radius: 3px;
  transition: background 0.15s;
  flex-shrink: 0;
  line-height: 0;
  gap: 0;
}

.menu-toggle:hover { background: rgba(0,0,0,0.06); }

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #3a3830;
  margin: 3px 0;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 10px 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Content column */
#centercol {
  flex: 0 0 var(--col-content);
  min-width: 0;
}

/* Sidebar column */
#sidebar {
  flex: 0 0 var(--col-sidebar);
  min-width: 0;
}

/* ============================================================
   BOX / CARD  — the central design unit
   White box with warm top gradient + border. Matches .box from original.
   bgr-box-trans.png is a 1px-wide transparent PNG gradient tile — same
   technique the original FreshNews theme used.
   ============================================================ */
.box, .widget {
  background: var(--color-box) url(images/bgr-box-trans.png) repeat-x top;
  border: 1px solid var(--color-border);
  margin: 0 0 15px 0;
  padding: 18px;
  overflow: hidden;
}

.box img {
  border: 1px solid #999999;
  margin: 0 0 10px 0;
  max-width: 100%;
}

.box p {
  line-height: 18px;
  padding: 0 0 10px;
}

.widget { padding: 15px; }

/* Box2 (sidebar boxes) */
.box2 {
  background: var(--color-box) url(images/bgr-box-trans.png) repeat-x top;
  border: 1px solid var(--color-border);
  margin: 0 0 15px 0;
  padding: 18px;
}

/* Post meta row: date left, comments right */
.date-comments {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--color-text-muted);
}

.date-comments .comments-count {
  font-size: 11px;
}

.date-comments .comments-count::before {
  content: '💬 ';
  font-size: 10px;
}

/* Post type badge */
.post-type-badge {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

/* Post titles */
.box h2 {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin-bottom: 5px;
}

.box h2 a {
  color: var(--color-text-dark);
}

.box h2 a:hover {
  color: var(--color-link-hover);
  text-decoration: none;
}

.post-author {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.post-author a { color: var(--color-text-muted); }
.post-author a:hover { color: var(--color-link); }

/* Excerpt / entry content */
.entry {
  margin-bottom: 5px;
}

.entry p {
  font-size: 12px;
  line-height: 20px;
  text-align: left;
  padding-bottom: 8px;
}

.entry blockquote {
  padding: 0 10px;
  border-left: 2px solid var(--color-text-muted);
  margin: 5px auto 15px auto;
  width: 85%;
  color: var(--color-text-muted);
  font-style: italic;
}

.entry blockquote p {
  font-size: 12px;
  padding: 5px 0;
  margin: 5px 0;
  line-height: 20px;
}

.entry img {
  padding: 2px;
  background: var(--color-box-inner);
  border: 1px solid #e6e6e6;
}

.entry ul, .entry ol {
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 20px;
  padding-left: 20px;
}

.entry ul li { list-style: circle; padding: 3px 0; }
.entry ol li { list-style: decimal; padding: 3px 0; }

/* Continue reading link */
.continue a {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/2000/svg" width="8" height="12" viewBox="0 0 8 12"><path d="M2 0L8 6L2 12" stroke="%23777" fill="none" stroke-width="1.5"/></svg>');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 8px 12px;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: bold;
  padding-left: 14px;
}

.continue a:hover { color: var(--color-link); text-decoration: none; }

/* ============================================================
   HOME PAGE FEATURED POST (first post, full width)
   ============================================================ */
.featured-post {
  margin-bottom: 15px;
}

.featured-post h2 {
  font-size: 1.5em;
}

.featured-post .feat-image {
  width: 100%;
  max-height: 195px;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid #999;
}

/* Two-column grid for subsequent posts on home */
.post-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.post-grid .box {
  margin: 0;
}

.post-grid img.post-thumbnail {
  float: right;
  margin: 5px 0 5px 10px;
  border: 0;
  max-width: 75px;
  max-height: 75px;
  object-fit: cover;
}

/* ============================================================
   ARCHIVE PAGES
   ============================================================ */
.archive-header {
  margin-bottom: 15px;
}

.archive-header h2 {
  font-size: 1.2em;
  color: var(--color-text-dark);
  padding-bottom: 5px;
}

.archive-header .cat-description {
  font-size: 11px;
  color: var(--color-text-muted);
  font-style: italic;
}

.catrss-link {
  float: right;
  font-size: 11px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="4" cy="12" r="2" fill="%23f60"/><path d="M2 2a12 12 0 0112 12" stroke="%23f60" fill="none" stroke-width="2"/><path d="M2 6a8 8 0 018 8" stroke="%23f60" fill="none" stroke-width="2"/></svg>') no-repeat left center;
  padding-left: 20px;
  color: var(--color-text-muted);
}

.catrss-link:hover { color: var(--color-link); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post-header h2.entry-title {
  font-size: 1.8em;
  padding-top: 5px;
  line-height: 1.3;
  color: var(--color-text-dark);
}

.single-post-header h2.entry-title a {
  color: var(--color-text-dark);
}

.single-post-header h2.entry-title a:hover {
  color: var(--color-link-hover);
}

.post-type-label {
  font-size: 0.85em;
  font-weight: bold;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.post-author-byline {
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-mid);
  margin-bottom: 8px;
}

.post-author-byline a { color: var(--color-text-mid); }
.post-author-byline a:hover { color: var(--color-link); }

/* Tags */
.post-tags {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24"><path d="M21.41 11.58L12.41 2.58A2 2 0 0011 2H4a2 2 0 00-2 2v7a2 2 0 00.59 1.42l9 9a2 2 0 002.82 0l7-7a2 2 0 000-2.84z" fill="%23777"/></svg>') no-repeat left center;
  background-size: 14px;
  padding: 1px 0 1px 20px;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 8px;
  display: block;
}

.post-tags a {
  color: var(--color-text-muted);
  margin: 0 2px;
}

.post-tags a:hover { color: var(--color-link); }

/* Post navigation (previous/next) */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
}

.post-navigation a {
  color: #666666;
  font-weight: bold;
  font-size: 14px;
}

.post-navigation a:hover { color: var(--color-link); }

/* Author info block */
.author-info {
  padding: 0;
  margin-top: 15px;
  color: #666666;
  overflow: hidden;
}

.author-photo {
  float: left;
  margin-right: 10px;
  width: 85px;
}

.author-photo img {
  background-color: var(--color-box);
  padding: 4px;
  border: 1px solid #cccccc;
  width: 75px;
  height: auto;
  float: left;
}

.author-info p { font-size: 12px; padding: 0; margin-bottom: 10px; }
.author-info a { color: #000000; text-decoration: none; }
.author-info a:hover { text-decoration: underline; }
.author-info h3 { font-size: 14px; margin-bottom: 10px; padding: 0; }

.author-email a {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="12" viewBox="0 0 24 18"><rect x="0" y="0" width="24" height="18" rx="2" fill="none" stroke="%23777" stroke-width="2"/><path d="M0 3l12 9L24 3" fill="none" stroke="%23777" stroke-width="2"/></svg>') no-repeat left center;
  background-size: 16px;
  padding-left: 22px;
  text-decoration: none;
  font-weight: bold;
  padding-top: 2px;
  padding-bottom: 2px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

/* Recent Posts panel at top of sidebar box */
.sidebar-recent-posts {
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.sidebar-recent-posts .widget-title {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 10px;
  padding-bottom: 0;
  border-bottom: none;
  display: block;
}

.sidebar-recent-posts .list1 {
  padding: 0;
  margin: 0;
}

.sidebar-recent-posts .list1 li {
  background: none;
  padding: 7px 0;
  padding-left: 0;
  margin: 0;
  border-top: 1px solid var(--color-border-lt);
  line-height: 1.35;
}
.sidebar-recent-posts .list1 li:first-child { border-top: none; }
.sidebar-recent-posts .list1 li a {
  color: var(--color-text-dark);
  font-size: 11.5px;
  font-weight: 600;
  display: block;
  line-height: 1.4;
}
.sidebar-recent-posts .list1 li a:hover { color: var(--color-link-hover); text-decoration: none; }
.sidebar-recent-posts .post-date {
  display: block;
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.box2 .idTabs {
  display: flex;
  padding: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.box2 .idTabs li {
  float: none;
}

.box2 .idTabs li a {
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: bold;
  color: var(--color-text-mid);
  background: var(--color-box-inner);
  border: 1px solid var(--color-border);
  border-bottom: none;
  margin-right: 2px;
}

.box2 .idTabs li a:hover,
.box2 .idTabs li.active a {
  background: var(--color-box);
  text-decoration: none;
}

.box2 .spacer.white {
  background: var(--color-box);
  border: 1px solid var(--color-border);
  clear: both;
  margin: 0;
}

/* Sidebar list items */
.list1 {
  padding: 15px;
}

.list1 li {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" viewBox="0 0 8 8"><polygon points="4,0 8,8 0,8" fill="%23e8a02c"/></svg>') no-repeat top 5px left;
  background-size: 8px;
  margin: 0 0 8px;
  padding: 0 0 0 18px;
}

.list1 li a { color: var(--color-text-dark); }
.list1 li a:hover { color: var(--color-link); }

/* Widget list styles */
.widget ul { line-height: 16px; padding: 0; }

.widget ul li {
  border-bottom: 1px solid var(--color-border-lt);
  padding: 5px 0;
}

.widget ul li a { color: var(--color-text-dark); }
.widget ul li a:hover { color: var(--color-link); }

.widget ul li ul { margin: 5px 0 0 10px; }
.widget ul li ul li {
  background: none;
  border-top: 1px solid var(--color-border-lt);
  border-bottom: none;
  padding: 5px 0;
}

/* Tag cloud */
.tag-cloud { font-size: 11px; padding: 10px; }
.tag-cloud a { display: inline-block; margin: 3px; padding: 2px 5px; border: 1px solid var(--color-border); color: var(--color-text-dark); }
.tag-cloud a:hover { background: var(--color-link); color: #fff; border-color: var(--color-link); text-decoration: none; }

/* ============================================================
   PAGINATION
   ============================================================ */
.more-entries {
  font-size: 11px;
  padding-bottom: 35px;
  clear: both;
  overflow: hidden;
}

.more-entries .wp-pagenavi {
  clear: both;
  float: right;
}

.more-entries .wp-pagenavi a,
.more-entries .wp-pagenavi span {
  background: var(--color-box);
  color: #666;
  padding: 4px 8px;
  margin-left: 4px;
  border: 1px solid #dfdccf;
  line-height: 24px;
  display: inline-block;
  font-size: 12px;
  text-decoration: none;
}

.more-entries .wp-pagenavi .current,
.more-entries .wp-pagenavi a:hover {
  background: #f8f8f7;
}

.more-entries .wp-pagenavi .extend {
  background: none;
  border: none;
}

.nav-previous a, .nav-next a {
  color: #666666;
  font-weight: bold;
  font-size: 14px;
}

.nav-previous a:hover, .nav-next a:hover { color: var(--color-link); }

/* ============================================================
   COMMENTS
   ============================================================ */
h2.comments-title {
  font-size: 1.4em;
  padding: 0 0 5px;
  color: #333;
}

ol.comment-list {
  margin: 10px 0 20px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 20px;
}

ol.comment-list p, #respond p { margin-bottom: 10px; line-height: 20px; }

ol.comment-list .comment-content { margin-left: 70px; }

.comment-metadata a { font-size: 11px; color: #333333; }
ol.comment-list cite { font-style: normal; font-weight: bold; }

ol.comment-list li.comment {
  padding: 15px 15px 5px;
  margin: 10px 0;
  background: var(--color-box-inner);
  border: 1px solid var(--color-border);
}

input#submit {
  font-size: 12px;
  color: var(--color-text-mid);
  font-weight: bold;
  padding: 7px 10px;
  margin: 0 0 7px 0;
  border: 1px solid var(--color-border);
  background: #F5F4F0;
  cursor: pointer;
}

input#submit:hover { background: var(--color-link); color: #fff; border-color: var(--color-link); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-bg-dark);
  /* emulate bgr-footer.gif horizontal line */
  border-top: 2px solid #ccc9be;
  font-size: 11px;
  padding: 10px 0;
  margin-top: 10px;
  line-height: 22px;
  color: var(--color-text-muted);
}

#site-footer .site-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-links {
  margin: 0;
  text-align: center;
  line-height: 1.9;
}

#site-footer a { color: var(--color-link-dark); }
#site-footer a:hover { text-decoration: underline; }

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 14px;
  z-index: 500;
  width: 36px;
  height: 36px;
  background: var(--color-link);
  color: #fff;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show button after a bit of scroll — handled via CSS :target trick plus JS */
.back-to-top:hover { background: var(--color-link-hover); text-decoration: none; }

/* Always show on desktop once the anchor changes; JS below toggles `visible` */
.back-to-top.visible {
  opacity: 0.85;
  pointer-events: auto;
}

@media (max-width: 600px) {
  .back-to-top {
    bottom: 12px;
    right: 8px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 30px;
  }
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-results-header {
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

.search-no-results { padding: 20px 0; color: var(--color-text-muted); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 h1 { font-size: 1.8em; margin-bottom: 10px; color: var(--color-text-dark); }
.error-404 p  { font-size: 13px; color: var(--color-text-muted); margin-bottom: 15px; }

/* ============================================================
   WP ALIGNMENT CLASSES (used in post editor)
   ============================================================ */
.alignleft  { display: inline; float: left; margin: 10px 12px 8px 0; }
.alignright { display: inline; float: right; margin: 10px 0 8px 12px; }
.aligncenter { display: block; margin: 10px auto 20px auto; }

.wp-caption {
  border-radius: 0;
  padding: 1px;
  background: var(--color-box-inner);
  border: 1px solid #e6e6e6;
  text-align: center;
}
.wp-caption img { border: 0; padding: 4px 0; background: none; margin: 0; }
.wp-caption-text { padding: 0; margin: 0; font-size: 11px; text-align: center; }

/* ============================================================
   MISC
   ============================================================ */
.clearfix::after { content: ''; display: table; clear: both; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

/* Archive-specific catrss inline */
.archive-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

/* Pingbacks / trackbacks */
h3#pings { margin: 20px 0 10px 0; }
.pinglist { margin-bottom: 20px; }
.pinglist li { margin: 0 0 0 20px; list-style-type: decimal; }
.pinglist li .author { font-weight: bold; font-size: 15px; }
.pinglist li .date { font-size: 11px; }
.pinglist li .pingcontent { display: block; margin: 10px 0; }

/* ===========================================================
   SIDEBAR CATEGORIES BOX
   =========================================================== */
.sidebar-categories {
  padding: 14px 14px 12px;
}

.sidebar-widget-heading {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0 0 10px;
  padding-bottom: 0;
  border-bottom: none;
  display: block;
}

.cat-list {
  padding: 0;
  margin: 0;
}

.cat-list li {
  background: none !important;
  padding: 6px 0;
  padding-left: 0 !important;
  margin: 0;
  border-top: 1px solid var(--color-border-lt);
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-list li:first-child { border-top: none; }

.cat-list li a {
  color: var(--color-text-dark);
  font-size: 11.5px;
  flex: 1;
  text-decoration: none;
}
.cat-list li a:hover { color: var(--color-link-hover); }

.cat-count {
  color: var(--color-text-muted);
  font-size: 10px;
  margin-left: 6px;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE — COMPLETE MOBILE SUPPORT
   ============================================================ */

/* ---- Mobile / Tablet: 900px and below ---- */
@media screen and (max-width: 900px) {
  :root {
    --col-content: 100%;
    --col-sidebar: 100%;
  }

  #main-content {
    flex-direction: column;
    padding: 12px 10px 0;
    gap: 0;
  }

  #centercol, #sidebar {
    flex: 0 0 100%;
    width: 100%;
  }

  /* 2-col grid collapses to 1 */
  .post-grid { grid-template-columns: 1fr; }

  /* Header: compact, no search */
  .header-search { display: none; }

  #site-header {
    height: 70px;
  }

  #site-header .site-container {
    height: 70px;
    justify-content: flex-start;
    padding: 0 12px;
  }

  .site-branding img.logo {
    max-height: 48px;
    margin-top: 12px;
  }

  /* CWD logo hidden on mobile */
  #header-cwd-logo { display: none; }

  /* === HAMBURGER MENU === */
  /* Show the hamburger button */
  .menu-toggle {
    display: flex;
  }

  /* Nav defaults to hidden; .is-open class toggled by JS */
  #cat-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 6px;
  }

  #cat-nav.is-open {
    display: flex;
  }

  #topmenu {
    height: auto;
    min-height: 44px;
    position: relative;
  }

  #topmenu .site-container {
    height: auto;
    min-height: 44px;
    flex-wrap: wrap;
    align-items: center;
    padding: 0 12px;
    gap: 0;
  }

  #cat-nav li {
    width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  #cat-nav li:last-child { border-bottom: none; }

  #cat-nav li a {
    padding: 11px 14px;
    line-height: normal;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 13px;
  }

  /* Sidebar stacks below content */
  #sidebar {
    border-top: 2px solid var(--color-border);
    padding-top: 18px;
    margin-top: 12px;
  }

  /* Post nav stacks */
  .post-navigation {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---- Mobile: 600px and below ---- */
@media screen and (max-width: 600px) {
  body { font-size: 13px; }

  .site-container { padding: 0 10px; }

  #site-header {
    height: 64px;
  }

  #site-header .site-container {
    height: 64px;
    padding: 0 10px;
  }

  .site-branding img.logo {
    max-width: 220px;
    max-height: 40px;
    margin-top: 12px;
  }

  .box, .box2, .widget {
    padding: 12px 10px;
    margin-bottom: 10px;
  }

  .box h2,
  .single-post-header h2.entry-title {
    font-size: 1.25em;
    line-height: 1.3;
  }

  .box h2 a { color: var(--color-text-dark); }

  /* Featured post hero image */
  .feat-image {
    width: 100% !important;
    max-height: 200px;
    object-fit: cover;
  }

  /* All inline post images: no more float, full width */
  .entry img,
  .entry figure img,
  .entry .wp-caption {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    float: none !important;
    margin: 12px auto !important;
    display: block;
  }

  /* Touch-friendly links */
  .continue a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0;
  }

  /* Sidebar tabs */
  .box2 .idTabs li a {
    padding: 6px 10px;
    font-size: 11px;
  }

  /* Footer: centered, slightly smaller */
  #site-footer .site-container p {
    font-size: 10px;
    text-align: center;
    line-height: 2;
  }

  /* Pagination */
  .more-entries {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .more-entries .nav-previous,
  .more-entries .nav-next {
    text-align: center;
  }

  .post-navigation {
    flex-direction: column;
    gap: 8px;
  }

  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    text-align: center;
  }
}

/* ---- Large screens ---- */
@media screen and (min-width: 1100px) {
  :root { --max-width: 980px; }
}

/* ============================================================
   BREADCRUMB NAVIGATION
   Visible on single posts — helps mobile users navigate back,
   improves Google sitelinks and Discover rich results.
   ============================================================ */
.breadcrumb {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--color-border-lt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-link);
  text-decoration: underline;
}

.bc-sep {
  margin: 0 5px;
  color: var(--color-border);
}

.bc-current {
  color: var(--color-text-dark);
  font-weight: 600;
}

/* Estimated reading time badge */
.reading-time {
  display: inline-block;
  font-size: 10px;
  color: #fff;
  background: var(--color-text-muted);
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ============================================================
   SKIP NAVIGATION LINK
   Hidden off-screen until focused — then slides in at top-left.
   Required for WCAG 2.1 AA, keyboard users, screen readers.
   Google bot also follows it to locate main content.
   ============================================================ */
.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 99999;
  padding: 8px 16px;
  background: var(--color-link);
  color: #fff !important;
  font-size: 13px;
  font-weight: bold;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.2s ease;
  white-space: nowrap;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-link-hover);
  outline-offset: 2px;
}

/* ============================================================
   CODE / PRE BLOCKS
   Styled for legibility in post content — important for tech
   articles about Google, APIs, etc.
   ============================================================ */
.entry code,
.entry pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11.5px;
}

.entry code {
  background: #f4f3f0;
  border: 1px solid #e0ddd5;
  border-radius: 3px;
  padding: 1px 5px;
  color: #c7254e;
}

.entry pre {
  background: #f4f3f0;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-link);
  padding: 12px 14px;
  margin: 10px 0 16px;
  overflow-x: auto;
  line-height: 1.6;
  font-size: 11.5px;
  white-space: pre;
  color: var(--color-text-dark);
}

.entry pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Iframe / embeds */
.entry iframe,
.entry embed,
.entry object {
  max-width: 100%;
  height: auto;
}

/* Responsive video wrapper (used for YouTube etc.) */
.entry .video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin-bottom: 10px;
}
.entry .video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

/* ============================================================
   PRINT STYLES
   Hides navigation chrome; keeps article content readable.
   Google can use print media to assess clean article rendition.
   ============================================================ */
@media print {
  #site-header,
  #topmenu,
  #sidebar,
  .post-navigation,
  .more-entries,
  #site-footer,
  .continue,
  .author-info,
  .post-tags,
  .skip-link {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  #main-content {
    display: block;
    max-width: 100%;
    padding: 0;
  }

  #centercol {
    width: 100%;
  }

  .box, .box2 {
    border: none;
    box-shadow: none;
    padding: 0;
    background: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #555;
  }

  /* Don't print URLs for internal nav links */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: '' !important;
  }

  img {
    max-width: 50% !important;
    page-break-inside: avoid;
  }

  .single-post-header h2.entry-title {
    font-size: 18pt;
    margin-bottom: 8pt;
  }
}

