/* Large Wall Clock US - Styles (USA English, accessible, air-fryer.com.au inspired) */
:root {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;
  --color-muted: #4a4a4a;
  --color-accent: #0d6b5c;
  --color-accent-hover: #094d42;
  --color-border: #e0e0e0;
  --color-star: #c9a227;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, sans-serif;
  --content-max: 1200px;
  --space-page: 1.5rem;
}

* { box-sizing: border-box; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--color-accent); background: rgba(13,107,92,0.08); text-decoration: none; }
.site-logo:hover { opacity: 0.9; }

/* Main content */
main { max-width: var(--content-max); margin: 0 auto; padding: var(--space-page); width: 100%; }
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-page); width: 100%; }

/* Hero */
.hero {
  background: var(--color-surface);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.hero h1 { margin: 0 0 0.75rem; font-size: 1.75rem; color: var(--color-text); }
.hero p { margin: 0; color: var(--color-text-muted); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-cta { margin-top: 1.25rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { display: inline-block; padding: 0.6rem 1.25rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.hero-cta .btn-primary { background: var(--color-accent); color: #fff; border: none; }
.hero-cta .btn-primary:hover { background: var(--color-accent-hover); color: #fff; }
.hero-cta .btn-secondary { background: transparent; color: var(--color-accent); border: 2px solid var(--color-accent); }
.hero-cta .btn-secondary:hover { background: var(--color-accent); color: #fff; }

/* Trust badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  text-align: center;
}
.trust-badges span { font-size: 0.9rem; color: var(--color-text-muted); }
.trust-badges.trust-badges--standout .trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.trust-badges.trust-badges--standout .trust-badge-icon {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.trust-badges.trust-badges--standout .trust-badge-icon img {
  display: block;
  margin: 0 auto;
  width: 28px;
  height: auto;
  max-height: 21px;
  object-fit: contain;
}
.trust-badges.trust-badges--standout .trust-badge-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-accent);
}

/* Section titles */
.section-title { font-size: clamp(1.25rem, 1.5vw + 0.75rem, 1.5rem); margin: 2rem 0 1rem; color: var(--color-text); line-height: 1.3; }
.section-subtitle { color: var(--color-text-muted); margin-bottom: 1.25rem; font-size: 0.95rem; }
.section-title.text-center,
.section-subtitle.text-center { text-align: center; }
.section-subtitle.text-center { max-width: 640px; margin-left: auto; margin-right: auto; }

/* Centered content block (aligns with card grid above) */
.text-center { text-align: center; }
.seo-description.text-center {
  text-align: center;
  max-width: 100%;
}
.seo-description.text-center h2,
.seo-description.text-center p {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Product grid (cards) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-color: rgba(13,107,92,0.3);
}
.product-card-icon {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin: 0 -1.25rem 0.5rem -1.25rem;
  padding: 1rem 1.25rem;
  text-align: center;
  background: rgba(13, 107, 92, 0.1);
  border-radius: 6px;
}
.product-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: var(--color-text); }
.product-card .category {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.product-card .rating {
  margin: 0.25rem 0;
  color: var(--color-star);
  font-size: 1rem;
  letter-spacing: 0.05em;
}
.product-card .features { margin: 0.5rem 0; padding-left: 1.2rem; font-size: 0.9rem; color: var(--color-text-muted); }
.product-card .price { font-weight: 700; color: var(--color-accent); margin-top: auto; }
.product-card .price .from { font-weight: 500; font-size: 0.9rem; }
.product-card a.external-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.product-card a.external-link:hover { text-decoration: underline; }

/* Tables */
.qc-default-table-wrapper { padding: 1rem 0; }
.qc-default-table-wrapper table { margin: 0; }
.qc-default-table-wrapper th { background: var(--color-accent); color: #fff; font-weight: 600; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin: 1rem 0;
}
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
th { background: var(--color-accent); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: rgba(0,0,0,0.02); }
tr:hover { background: rgba(13,107,92,0.06); }
table a { color: var(--color-accent); font-weight: 500; text-decoration: none; }
table a:hover { text-decoration: underline; }

/* Articles list (guides) */
.articles-table-wrap { overflow-x: auto; }

/* Guide cards: icon in first half, title below */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
}
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guide-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.guide-card-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-surface);
  border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  border-radius: 0;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.guide-card-icon {
  flex: 0 0 auto;
  min-height: 90px;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  font-size: 2.5rem;
  line-height: 1;
}
.guide-card-title {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.25rem 1rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card:hover .guide-card-title { color: var(--color-accent); }
.guide-card-readmore {
  flex-shrink: 0;
  display: block;
  padding: 0 1rem 1rem;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}
.guide-card:hover .guide-card-readmore { text-decoration: underline; }

/* Home / guides: popular style hubs — width matches main; horizontal inset comes from main padding */
.popular-styles-section {
  max-width: var(--content-max);
  margin: 0 auto 2rem;
  padding: 0;
  width: 100%;
}

/* Content area (blog-style) */
.article-content, .page-content { max-width: 720px; margin: 0 auto; padding-left: 0; padding-right: 0; width: 100%; }
.page-content.text-center ul {
  list-style-position: inside;
  padding-left: 0;
  text-align: center;
}
.article-content h2 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; color: var(--color-text); }
.article-content h3 { margin: 1.25rem 0 0.5rem; font-size: 1.1rem; }
.article-content p { margin: 0.75rem 0; color: var(--color-text); }
.article-content ul { margin: 0.75rem 0; padding-left: 1.5rem; }
.article-meta { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 1rem; }
.back-link { display: inline-block; margin-bottom: 1rem; color: var(--color-accent); text-decoration: none; font-weight: 500; }
.back-link:hover { text-decoration: underline; }
.article-breadcrumb { font-size: 0.9rem; color: var(--color-text-muted); margin: -0.5rem 0 1rem; }
.article-breadcrumb a { color: var(--color-accent); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }

/* Guides: topical cluster hubs (4 topic directories) */
.guide-cluster-hubs {
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.guide-cluster-hubs-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}
.guide-cluster-hubs-intro {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0 0 1.25rem;
  max-width: 42rem;
}
.guide-cluster-hubs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Four style hubs: one row on laptop, 2×2 on tablet, stacked on phone */
.guide-cluster-hubs-list--four-cols {
  grid-template-columns: 1fr;
}
.guide-cluster-hub {
  display: block;
  padding: 1.25rem 1.25rem 1rem;
  min-width: 0;
  background: var(--color-surface);
  border: 2px solid rgba(13,107,92,0.2);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.guide-cluster-hub:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(13,107,92,0.12);
  text-decoration: none;
  color: inherit;
}
.guide-cluster-hub-title {
  display: block;
  font-weight: 700;
  font-size: clamp(0.95rem, 0.5vw + 0.85rem, 1.05rem);
  color: var(--color-accent);
  margin-bottom: 0.35rem;
  line-height: 1.25;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.guide-cluster-hub-desc {
  display: block;
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.guide-cluster-hub-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 600;
}

/* Topic sections below cards on guides/index (anchor targets) */
.guide-topic-sections {
  margin-top: 2.5rem;
}
.guide-topic-section {
  scroll-margin-top: 1.5rem;
}
.guide-topic-section .guide-section-title {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin-top: 2rem;
}
.guide-topic-section:first-of-type .guide-section-title {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Guides: category TOC above all articles */
.guide-toc-all-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}
.guide-toc-all {
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(13,107,92,0.06);
  border-radius: 12px;
  border: 1px solid rgba(13,107,92,0.15);
}
.guide-toc-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.guide-toc-group:last-child { margin-bottom: 0; }
.guide-toc-group-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 5.5rem;
  flex-shrink: 0;
}
.guide-toc-all .guide-toc-btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.guide-toc-all .guide-toc-btn:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}
.guide-toc-all .guide-toc-btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.guide-articles {
  margin-top: 0;
}
.guide-category-heading {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.5rem;
  color: var(--color-text);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--color-accent);
}
.guide-category-heading:first-of-type { margin-top: 0; }
.guide-category-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.guide-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.guide-subnav-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.guide-subnav-btn:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}
.guide-category-section {
  margin-bottom: 2.5rem;
}
.guide-section-title {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.35rem;
  color: var(--color-accent);
  font-weight: 700;
}
.guide-section-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.h3-like { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

/* Contact form iframe */
.contact-form-wrap {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.contact-form-wrap h2 { margin: 0 0 1rem; }
.iframe-container {
  max-width: 640px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}
.contact-iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: none;
}

/* Forms */
form label { display: block; margin-top: 1rem; font-weight: 500; color: var(--color-text); }
form input, form select, form textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.6rem;
  margin-top: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
form textarea { min-height: 120px; resize: vertical; }
form button[type="submit"] {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
form button[type="submit"]:hover { background: var(--color-accent-hover); }

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.site-footer .wrap { max-width: 1200px; margin: 0 auto; }
.site-footer a { color: var(--color-accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-nav a { margin-right: 0; padding: 0.25rem 0; }
.footer-nav a:hover { text-decoration: underline; }
.seo-description { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); max-width: 720px; }
.footer-date { margin-top: 1rem; font-size: 0.85rem; }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ========== Responsive layout ========== */

/* Popular styles: 4 equal columns on laptop, 2 on tablet, 1 on phone */
@media (min-width: 640px) and (max-width: 1023px) {
  .guide-cluster-hubs-list--four-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .guide-cluster-hubs-list--four-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (max-width: 639px) {
  :root {
    --space-page: 1rem;
  }

  .site-header {
    padding: 0.75rem var(--space-page);
  }

  .site-logo {
    font-size: 1.15rem;
  }

  .site-nav {
    gap: 0.65rem 1rem;
    justify-content: flex-end;
  }

  .site-nav a {
    padding: 0.4rem 0.35rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 1.5rem var(--space-page);
    margin-bottom: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .trust-badges.trust-badges--standout {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .guide-card {
    min-height: 0;
  }

  .contact-iframe {
    min-height: 420px;
  }

  .site-footer {
    padding: 1.5rem var(--space-page);
  }

  .guide-topic-section .guide-section-title,
  .guide-section-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 767px) {
  .qc-default-table-wrapper {
    margin-left: calc(-1 * var(--space-page));
    margin-right: calc(-1 * var(--space-page));
    padding-left: var(--space-page);
    padding-right: var(--space-page);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .qc-default-table-wrapper table {
    min-width: 520px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
