/*
Theme Name: GFG Custom Theme
Theme URI: https://marketingstrategyforbusiness.com/
Author: Nitin
Description: Clean, lightweight WordPress theme with a professional responsive header, article cards, archive pages, search, and related topic sidebar.
Version: 1.1
Text Domain: gfg-custom-theme
*/

:root {
  --gfg-bg: #f6f8fb;
  --gfg-surface: #ffffff;
  --gfg-surface-soft: #f9fafb;
  --gfg-text: #111827;
  --gfg-muted: #5f6b7a;
  --gfg-border: #e5eaf0;
  --gfg-brand: #047857;
  --gfg-brand-dark: #065f46;
  --gfg-dark: #111827;
  --gfg-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
  --gfg-radius: 18px;
  --gfg-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--gfg-bg);
  color: var(--gfg-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gfg-brand);
  text-decoration: none;
}

a:hover {
  color: var(--gfg-brand-dark);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: var(--gfg-dark);
  color: #fff;
  border-radius: 8px;
  z-index: 9999;
}

/* Header */
.site-header {
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--gfg-border);
  position: relative;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr;
  align-items: center;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.site-logo img {
  max-height: 52px;
  width: auto;
  display: block;
}

.site-title-wrap {
  min-width: 0;
}

.site-title-link {
  color: var(--gfg-text);
  display: inline-block;
  text-decoration: none;
}

.site-title-link:hover {
  color: var(--gfg-brand);
  text-decoration: none;
}

.site-title-main {
  display: block;
  font-size: 25px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: normal;
}

.site-tagline {
  margin: 4px 0 0;
  color: var(--gfg-muted);
  font-size: 13px;
  line-height: 1.35;
}

.primary-menu-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}

.site-nav {
  min-width: 0;
}

.primary-menu,
.primary-menu ul,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  display: block;
  padding: 10px 12px;
  color: var(--gfg-text);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
  background: #ecfdf5;
  color: var(--gfg-brand-dark);
  text-decoration: none;
}

.primary-menu .sub-menu,
.primary-menu .children {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--gfg-border);
  border-radius: 14px;
  box-shadow: var(--gfg-shadow);
  padding: 8px;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:hover > .children,
.primary-menu li:focus-within > .sub-menu,
.primary-menu li:focus-within > .children {
  display: block;
}

.primary-menu .sub-menu a,
.primary-menu .children a {
  border-radius: 10px;
  white-space: normal;
}

.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(310px, 100%);
}

.site-search .search-field,
.site-search input[type="search"] {
  width: 100%;
  min-width: 140px;
  padding: 11px 12px;
  border: 1px solid var(--gfg-border);
  border-radius: 999px;
  background: #fff;
  color: var(--gfg-text);
  font-size: 14px;
  outline: none;
}

.site-search .search-field:focus,
.site-search input[type="search"]:focus {
  border-color: rgba(4,120,87,0.45);
  box-shadow: 0 0 0 4px rgba(4,120,87,0.10);
}

.site-search .search-submit,
.site-search button,
.site-search input[type="submit"] {
  padding: 11px 15px;
  background: var(--gfg-brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.site-search .search-submit:hover,
.site-search button:hover,
.site-search input[type="submit"]:hover {
  background: var(--gfg-brand-dark);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  justify-self: end;
  padding: 10px 13px;
  border: 1px solid var(--gfg-border);
  border-radius: 999px;
  background: #fff;
  color: var(--gfg-text);
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  content: "";
}

.menu-toggle-icon {
  position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  position: absolute;
  left: 0;
}

.menu-toggle-icon::before { top: -6px; }
.menu-toggle-icon::after { top: 6px; }

/* Shared layouts */
.main-wrap,
.latest-home-wrap,
.home-clean-wrap {
  max-width: var(--gfg-container);
  margin: 0 auto;
  padding: 42px 24px;
}

.main-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
}

.content-card,
.sidebar-card,
.latest-empty,
.homepage-section,
.home-clean-hero,
.home-topic-section,
.home-article-section {
  background: var(--gfg-surface);
  border: 1px solid var(--gfg-border);
  border-radius: var(--gfg-radius);
  box-shadow: 0 8px 28px rgba(17,24,39,0.04);
}

.content-card,
.sidebar-card {
  padding: 24px;
}

.sidebar-card {
  margin-bottom: 18px;
}

.sidebar-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
}

.sidebar-card ul {
  padding-left: 18px;
  margin: 0;
}

.sidebar-card li {
  margin-bottom: 10px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--gfg-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.breadcrumbs a {
  color: var(--gfg-brand);
}

.breadcrumbs span {
  margin: 0 4px;
}

.latest-home-head,
.archive-intro,
.home-intro {
  margin-bottom: 30px;
}

.latest-home-head h1,
.archive-intro h1,
.home-intro h1 {
  margin: 0 0 10px;
  color: var(--gfg-text);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.latest-home-head p,
.archive-description,
.home-intro p,
.category-clean-description {
  margin: 0;
  max-width: 760px;
  color: var(--gfg-muted);
  font-size: 17px;
  line-height: 1.65;
}

/* Article cards */
.latest-article-grid,
.home-article-grid,
.home-post-grid,
.home-topic-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.latest-article-card,
.home-article-card,
.category-card,
.home-topic-card {
  background: #fff;
  border: 1px solid var(--gfg-border);
  border-radius: var(--gfg-radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.latest-article-card:hover,
.home-article-card:hover,
.category-card:hover,
.home-topic-card:hover {
  transform: translateY(-3px);
  border-color: #cfd8e3;
  box-shadow: var(--gfg-shadow);
}

.latest-article-card {
  display: flex;
  flex-direction: column;
  min-height: 335px;
}

.latest-article-image,
.home-article-image,
.home-post-image,
.post-card-image {
  display: block;
  background: #edf2f7;
}

.latest-article-image img,
.home-article-image img,
.home-post-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.latest-article-body,
.home-article-card,
.category-card,
.home-topic-card {
  padding: 22px;
}

.latest-article-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.latest-article-category,
.home-article-category,
.post-card-category {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gfg-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.latest-article-body h2,
.home-article-card h2,
.post-card-title,
.category-card h3,
.home-topic-card h3,
.home-post-card h3 {
  margin: 0 0 10px;
  color: var(--gfg-text);
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.latest-article-body h2 a,
.home-article-card h2 a,
.post-card-title a,
.category-card h3 a,
.home-topic-card h3 a,
.home-post-card h3 a {
  color: var(--gfg-text);
  text-decoration: none;
}

.latest-article-body h2 a:hover,
.home-article-card h2 a:hover,
.post-card-title a:hover,
.category-card h3 a:hover,
.home-topic-card h3 a:hover,
.home-post-card h3 a:hover {
  color: var(--gfg-brand);
  text-decoration: none;
}

.latest-article-meta,
.home-article-meta,
.post-card-meta {
  margin-bottom: 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.latest-article-body p,
.home-article-card p,
.category-card p,
.home-topic-card p,
.home-post-card p,
.post-card-excerpt {
  margin: 0 0 16px;
  color: #374151;
  font-size: 15.5px;
  line-height: 1.65;
}

.latest-article-link,
.home-read-more,
.read-more-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  color: var(--gfg-brand);
  font-size: 15px;
  font-weight: 800;
}

.latest-empty {
  padding: 28px;
}

.latest-empty h2,
.no-posts-found h2 {
  margin-top: 0;
}

/* Post list */
.post-list {
  display: grid;
  gap: 22px;
}

.post-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--gfg-border);
  padding-bottom: 22px;
}

.post-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-card-image img {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Search and pagination */
.search-page-form,
.search-clean-form {
  margin-bottom: 28px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--gfg-border);
  border-radius: var(--gfg-radius);
}

.search-page-form form,
.search-clean-form form,
.archive-sidebar .sidebar-card form,
.sidebar-card .search-form {
  display: flex;
  gap: 8px;
}

.search-page-form input[type="search"],
.search-clean-form input[type="search"],
.archive-sidebar .sidebar-card input[type="search"],
.sidebar-card .search-field {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--gfg-border);
  border-radius: 10px;
}

.search-page-form input[type="submit"],
.search-clean-form input[type="submit"],
.archive-sidebar .sidebar-card input[type="submit"],
.sidebar-card .search-submit {
  padding: 11px 14px;
  background: var(--gfg-brand);
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.pagination,
.latest-pagination {
  margin-top: 36px;
}

.pagination .nav-links,
.latest-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pagination a,
.pagination span,
.latest-pagination a,
.latest-pagination span {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid var(--gfg-border);
  border-radius: 10px;
  background: #fff;
  color: var(--gfg-text);
  font-size: 14px;
  text-decoration: none;
}

.pagination .current,
.latest-pagination .current {
  background: var(--gfg-brand);
  color: #fff;
  border-color: var(--gfg-brand);
}

/* Homepage legacy sections */
.homepage-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

.homepage-hero,
.home-clean-hero,
.home-topic-section,
.home-article-section,
.homepage-section {
  padding: 32px;
  margin-bottom: 28px;
}

.homepage-hero h1,
.home-clean-hero h1,
.home-section-head h2,
.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.homepage-hero p,
.home-clean-hero p,
.home-section-head p,
.section-heading p {
  margin: 0 0 20px;
  color: var(--gfg-muted);
  line-height: 1.65;
}

.homepage-search,
.home-clean-search {
  display: flex;
  gap: 8px;
  max-width: 560px;
}

.homepage-search input,
.home-clean-search input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--gfg-border);
  border-radius: 999px;
  font-size: 16px;
}

.homepage-search button,
.home-clean-search button {
  padding: 13px 18px;
  background: var(--gfg-brand);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
}

.homepage-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.simple-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.simple-link-list li {
  border-bottom: 1px solid var(--gfg-border);
  padding: 10px 0;
}

.simple-link-list li:last-child {
  border-bottom: 0;
}

.tag-cloud-wrap a {
  display: inline-block;
  margin: 0 6px 8px 0;
}

/* Single article layout */
.article-page-shell,
.article-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 30px;
  padding: 30px 24px 48px;
}

.left-topic-sidebar {
  background: #fff;
  border: 1px solid var(--gfg-border);
  border-radius: var(--gfg-radius);
  height: calc(100vh - 118px);
  position: sticky;
  top: 92px;
  overflow-y: auto;
  padding: 16px 0;
  box-shadow: 0 8px 28px rgba(17,24,39,0.04);
}

.left-sidebar-box {
  margin-bottom: 22px;
}

.left-sidebar-box h3 {
  margin: 0 0 8px;
  padding: 0 16px;
  color: var(--gfg-text);
  font-size: 17px;
  line-height: 1.3;
}

.left-sidebar-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.left-sidebar-box a {
  display: block;
  padding: 9px 16px;
  color: #243041;
  font-size: 14.5px;
  line-height: 1.38;
  text-decoration: none;
}

.left-sidebar-box a:hover {
  background: #f3f7fb;
  color: var(--gfg-brand);
  text-decoration: none;
}

.left-sidebar-box .active-post a {
  background: #ecfdf5;
  color: var(--gfg-brand-dark);
  font-weight: 750;
}

.article-main {
  max-width: 900px;
  background: #fff;
  border: 1px solid var(--gfg-border);
  border-radius: var(--gfg-radius);
  padding: 48px 56px;
  box-shadow: 0 8px 28px rgba(17,24,39,0.04);
}

.article-title {
  margin: 0 0 12px;
  color: var(--gfg-text);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.article-meta {
  margin-bottom: 30px;
  color: var(--gfg-muted);
  font-size: 14px;
}

.article-featured-image {
  margin-bottom: 32px;
}

.article-featured-image img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.article-content {
  color: #1f2937;
  font-size: 18px;
  line-height: 1.78;
}

.article-content h2 {
  margin: 42px 0 14px;
  color: var(--gfg-text);
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.article-content h3 {
  margin: 32px 0 12px;
  color: var(--gfg-text);
  font-size: 24px;
  line-height: 1.3;
}

.article-content p {
  margin-top: 0;
  margin-bottom: 22px;
}

.article-content ul,
.article-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
}

.article-content th,
.article-content td {
  border: 1px solid var(--gfg-border);
  padding: 11px 12px;
  text-align: left;
}

.article-content th {
  background: var(--gfg-surface-soft);
}

.article-content blockquote {
  border-left: 4px solid var(--gfg-brand);
  padding: 14px 18px;
  margin: 26px 0;
  background: #f0fdf4;
  color: #1f2937;
  border-radius: 0 12px 12px 0;
}

.article-tags {
  margin-top: 36px;
  font-size: 15px;
}

.mobile-topic-bar,
.mobile-topic-head,
.topic-overlay {
  display: none;
}

/* Footer */
.site-footer {
  margin-top: 44px;
  padding: 34px 24px;
  background: var(--gfg-dark);
  color: #fff;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.footer-brand a {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.footer-brand p,
.footer-copy p {
  margin: 8px 0 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-menu a {
  color: #d1d5db;
  font-size: 14px;
}

.footer-menu a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1080px) {
  .site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-menu-wrap {
    display: none;
    grid-column: 1 / -1;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 12px;
  }

  body.primary-menu-open .primary-menu-wrap {
    display: flex;
  }

  .primary-menu {
    display: block;
    border: 1px solid var(--gfg-border);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }

  .primary-menu a {
    border-radius: 0;
    padding: 13px 14px;
    border-bottom: 1px solid var(--gfg-border);
  }

  .primary-menu li:last-child > a {
    border-bottom: 0;
  }

  .primary-menu .sub-menu,
  .primary-menu .children {
    display: block;
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 14px;
    background: #f9fafb;
  }

  .site-search {
    width: 100%;
  }
}

@media (max-width: 1000px) {
  .latest-article-grid,
  .home-article-grid,
  .home-post-grid,
  .home-topic-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-wrap {
    grid-template-columns: 1fr;
  }

  .homepage-two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body {
    background: #fff;
  }

  .site-header {
    position: relative;
  }

  .site-header-inner {
    padding: 12px 16px;
  }

  .site-title-main {
    font-size: 22px;
  }

  .site-tagline {
    display: none;
  }

  .main-wrap,
  .latest-home-wrap,
  .home-clean-wrap,
  .homepage-wrap {
    padding: 28px 16px;
  }

  .content-card,
  .sidebar-card,
  .homepage-hero,
  .home-clean-hero,
  .home-topic-section,
  .home-article-section,
  .homepage-section {
    padding: 22px 20px;
  }

  .post-card {
    display: block;
  }

  .post-card-image img {
    height: auto;
    margin-bottom: 14px;
  }

  .article-page-shell,
  .article-layout {
    display: block;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .mobile-topic-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 42px;
    background: #172033;
    color: #fff;
    padding: 0 16px;
    position: relative;
    z-index: 90;
    overflow-x: auto;
    white-space: nowrap;
  }

  .mobile-topic-menu-btn {
    background: transparent;
    color: #fff;
    border: 0;
    font-size: 22px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
  }

  .mobile-topic-label,
  .mobile-topic-text {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .left-topic-sidebar {
    position: fixed !important;
    top: 0 !important;
    right: -330px !important;
    left: auto !important;
    width: 310px !important;
    height: 100vh !important;
    z-index: 120 !important;
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--gfg-border);
    overflow-y: auto;
    padding: 0 0 16px;
    transition: right 0.25s ease;
  }

  body.topic-menu-open .left-topic-sidebar {
    right: 0 !important;
  }

  .mobile-topic-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid var(--gfg-border);
    padding: 14px 16px;
    position: sticky;
    top: 0;
    z-index: 121;
  }

  .mobile-topic-head button {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  body.topic-menu-open .topic-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.46);
    z-index: 110;
  }

  .article-main {
    max-width: 100%;
    min-height: auto;
    padding: 28px 20px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.75;
  }

  .article-content h2 {
    font-size: 26px;
    margin-top: 34px;
  }

  .article-content h3 {
    font-size: 22px;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .latest-article-grid,
  .home-article-grid,
  .home-post-grid,
  .home-topic-grid,
  .category-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .latest-article-card {
    min-height: auto;
  }

  .latest-article-image img,
  .home-article-image img,
  .home-post-image img {
    height: 190px;
  }

  .homepage-search,
  .home-clean-search,
  .search-page-form form,
  .search-clean-form form,
  .archive-sidebar .sidebar-card form,
  .sidebar-card .search-form {
    display: block;
  }

  .homepage-search input,
  .home-clean-search input,
  .search-page-form input[type="search"],
  .search-clean-form input[type="search"],
  .archive-sidebar .sidebar-card input[type="search"],
  .sidebar-card .search-field {
    margin-bottom: 8px;
  }

  .homepage-search button,
  .home-clean-search button,
  .search-page-form input[type="submit"],
  .search-clean-form input[type="submit"],
  .archive-sidebar .sidebar-card input[type="submit"],
  .sidebar-card .search-submit {
    width: 100%;
  }

  .site-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .site-search .search-submit,
  .site-search button,
  .site-search input[type="submit"] {
    width: auto;
  }

  .site-footer {
    margin-top: 20px;
    padding: 28px 18px;
  }
}