/*
Theme Name: Harshal Portfolio Custom
Theme URI: https://example.com/
Author: OpenAI
Description: Custom WordPress theme adapted from the uploaded static website.
Version: 1.0.0
Text Domain: harshal-portfolio
*/

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #fafbfe;
  --text: #191a1f;
  --text-soft: #2a2d36;
  --muted: #626878;
  --muted-soft: #7d8494;
  --line: #e6e8ef;
  --line-strong: #d9dde8;
  --accent: #6f5bd3;
  --accent-strong: #624dcc;
  --accent-deep: #5643a8;
  --accent-soft: #f3f0ff;
  --accent-secondary: #d4ad32;
  --accent-secondary-strong: #bf971c;
  --accent-secondary-deep: #7a5d0d;
  --accent-secondary-soft: #f8e39a;
  --max-width: 1180px;
  --radius: 18px;
  --shadow-soft: 0 10px 30px rgba(25, 35, 52, 0.04);
  --shadow-card: 0 14px 34px rgba(25, 26, 31, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: 78px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

p {
  line-height: 1.7;
}

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding-top: 24px;
  padding-bottom: 64px;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(247, 248, 251, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(111, 91, 211, 0.08);
  box-shadow: 0 6px 20px rgba(25, 26, 31, 0.05);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* tighter spacing */
  min-width: 0;
}

.site-brand {
  flex-shrink: 0; /* prevents drifting */
}

.site-logo,
.footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  border: 1px solid rgba(111, 91, 211, 0.12);
}

.site-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-left: 4px;
  white-space: nowrap;
  color: var(--text-soft);	
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.site-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-deep);
  background: rgba(111, 91, 211, 0.06);
  outline: none;
  box-shadow: none;
}

.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-page-ancestor > a,
.site-nav .current_page_parent > a,
.site-nav a.active {
  color: var(--text);
  background: transparent;
  font-weight: 700;
}

.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after,
.site-nav .current-page-ancestor > a::after,
.site-nav .current_page_parent > a::after,
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-secondary);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent-strong);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  padding-top: 84px;
  padding-bottom: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.hero-photo-wrap {
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
.hero-photo {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  border-radius: 28px;
  background: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(111, 91, 211, 0.14);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-content h1,
.blogs-page-header h1,
.page-header h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.02;
}

.hero-content,
.text-column,
.contact-item-body,
.docs-content-inner,
.reading-panel,
#blogContent,
#projectContent {
  min-width: 0;
}

.hero-intro,
.page-intro,
.blogs-page-intro {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 720px;
}

.hero-intro {
  max-width: 640px;
  margin-top: 22px;
  font-size: 1.08rem;
}

.three-column-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.text-column h2,
.section-heading-block h2 {
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.text-column p,
.elsewhere-text {
  margin: 0;
  color: var(--muted);
}

.section-heading-block {
  margin-bottom: 18px;
}

.elsewhere-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.elsewhere-links a,
.button,
.button-secondary,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.elsewhere-links a,
.button-secondary {
  background: rgba(255,255,255,.8);
  color: var(--text-soft);
  border-color: var(--line);
}

.elsewhere-links a:hover,
.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(111, 91, 211, 0.18);
  color: var(--accent-strong);
  outline: none;
}

.button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(111,91,211,.22);
}

.button:hover,
.button:focus-visible {
  background: var(--accent-strong);
  transform: translateY(-1px);
  outline: none;
}

@keyframes announcement-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.announcement-strip {
  overflow: hidden;
  border-top: 1px solid rgba(111, 91, 211, 0.18);
  border-bottom: 1px solid rgba(111, 91, 211, 0.18);
  background: var(--accent-soft);
}

.announcement-track {
  display: flex;
  width: max-content;
  animation: announcement-scroll 26s linear infinite;
}

.announcement-content {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 0 0 auto;
  min-height: 68px;
  padding-right: 32px;
  white-space: nowrap;
  font-size: .96rem;
  color: var(--accent-deep);
}

.announcement-content span {
  flex: 0 0 auto;
}

.announcement-content strong {
  color: var(--text);
}

.page-shell {
  max-width: 1180px;
}

.page-shell-narrow {
  max-width: 980px;
}

.page-header,
.blogs-page-header {
  margin-bottom: 30px;
}

.blog-shell {
  max-width: 1220px;
}

.blogs-page-section {
  padding-top: 56px;
  padding-bottom: 84px;
}

.rail-label {
  margin: 0;
  color: #5c637a;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.content-layout,
.blog-reading-layout-horizontal {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.page-shell,
.blog-shell,
.blog-reading-layout-horizontal,
.content-layout,
.reading-panel,
#blogContent,
#projectContent,
.articles-panel,
.left-list-panel {
  min-width: 0;
  max-width: 100%;
}

.panel-sticky {
  position: sticky;
  top: 104px;
}

.list-panel-header,
.articles-panel-header {
  margin-bottom: 12px;
}

.list-panel-header h2,
.articles-panel-header h2 {
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
}

.panel-scroll {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 8px;
}

.item-list,
.article-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.item-list button,
.article-list button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 12px 12px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
  cursor: pointer;
  border-radius: 14px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.item-list button:hover,
.item-list button:focus-visible,
.article-list button:hover,
.article-list button:focus-visible {
  color: var(--accent-strong);
  background: rgba(111,91,211,.06);
  border-color: rgba(111,91,211,.12);
  outline: none;
}

.item-list button.is-active,
.article-list button.is-active {
  color: #5b4306;
  background: var(--accent-secondary-soft);
  border-color: rgba(216,180,63,.4);
  font-weight: 700;
}

.reading-panel-centered {
  display: flex;
  justify-content: center;
}

.docs-content-inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 28px 32px;
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow-x: hidden;
}

.docs-content-inner h1 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-content-inner h2 {
  margin: 40px 0 14px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-content-inner p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-content-inner img {
  margin: 30px 0;
  width: 100%;
  border-radius: 16px;
  display: block;
}

.docs-meta {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(111,91,211,.16);
  font-size: .9rem;
  font-weight: 700;
}

.docs-empty {
  color: var(--muted);
}

.panel-scroll::-webkit-scrollbar {
  width: 8px;
}

.panel-scroll::-webkit-scrollbar-thumb {
  background: rgba(111,91,211,.32);
  border-radius: 999px;
}

.panel-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.theme-rail-horizontal,
.downloads-filter-bar {
  margin-bottom: 30px;
  padding: 24px 28px;
  border-radius: 28px;
  background: #ece9fb;
  border: 1px solid rgba(111,91,211,.18);
  box-shadow: 0 10px 28px rgba(25,26,31,.04);
}

.projects-filter-bar {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #eee9d8;
  border: 1px solid rgba(201,162,39,.28);
  box-shadow: 0 6px 18px rgba(25,26,31,.04);
}

.downloads-filter-bar {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(25,26,31,.04);
}

.theme-rail-head,
.theme-rail-controls {
  display: flex;
  align-items: center;
}

.theme-rail-head {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.theme-rail-controls {
  gap: 10px;
}

.theme-arrow {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(111,91,211,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #5c637a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.theme-arrow:hover,
.theme-arrow:focus-visible {
  background: #fff;
  border-color: rgba(111,91,211,.3);
  color: var(--accent-deep);
  outline: none;
}

.theme-rail-track {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.theme-rail-track::-webkit-scrollbar {
  display: none;
}

.theme-chip-list,
.filter-chip-list {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.filter-chip-list {
  flex-wrap: wrap;
  margin-top: 14px;
}

.theme-chip-list li {
  flex: 0 0 auto;
}

.theme-chip-list button,
.filter-chip {
  border: 1px solid rgba(111,91,211,.18);
  background: rgba(255,255,255,.84);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: .98rem;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.theme-chip-list button:hover,
.theme-chip-list button:focus-visible,
.filter-chip:hover,
.filter-chip:focus-visible {
  background: #fff;
  border-color: rgba(111,91,211,.35);
  color: var(--accent-deep);
  outline: none;
}

.theme-chip-list button.is-active,
.filter-chip.is-active {
  background: #fff;
  border-color: rgba(111,91,211,.45);
  color: var(--accent-deep);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(111,91,211,.12);
}

.downloads-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.download-item {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
}

.download-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.download-item h2 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.download-field-tag {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-secondary-soft);
  color: var(--accent-secondary-deep);
  border: 1px solid rgba(201,162,39,.2);
  font-size: .92rem;
  font-weight: 600;
}

.download-description {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 780px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-button {
  min-height: 42px;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  color: var(--muted);
  cursor: pointer;
}

.download-button:hover,
.download-button:focus-visible {
  color: var(--accent-strong);
  border-color: rgba(111,91,211,.32);
  background: var(--accent-soft);
  outline: none;
}

.download-button-primary {
  color: #4a3a06;
  border-color: rgba(201,162,39,.32);
  background: #f4e3a3;
  font-weight: 700;
}

.contact-shell {
  max-width: 880px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
}

.contact-item-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  max-width: 34px;
  max-height: 34px;
  flex-shrink: 0;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--accent-secondary-soft);
  color: var(--accent-secondary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
}


.contact-item-body h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.contact-item-body p {
  margin: 0;
  color: var(--muted);
}

.contact-status {
  margin-top: 20px;
  color: var(--accent-strong);
  font-weight: 600;
  min-height: 24px;
}

.site-footer {
  margin-top: 56px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand {
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

.footer-nav {
  flex-wrap: wrap;
  gap: 16px;
}

/* Extra-safe text spacing rules for WordPress/plugin overrides */
.hero-intro,
.page-intro,
.blogs-page-intro,
.text-column p,
.elsewhere-text,
.contact-item-body p,
.download-description,
.docs-content-inner p,
.footer-brand p {
  line-height: 1.7 !important;
}

/* Prevent weird inherited transforms/spacing from plugins */
.hero-intro,
.page-intro,
.blogs-page-intro,
.text-column p,
.elsewhere-text,
.contact-item-body p,
.download-description,
.docs-content-inner p,
.download-field-tag,
.docs-meta {
  letter-spacing: normal;
  word-spacing: normal;
}

/* Make editor-generated content safer */
.docs-content-inner > *:first-child {
  margin-top: 0;
}

.docs-content-inner > *:last-child {
  margin-bottom: 0;
}

@media (min-width: 901px) {
  .articles-panel .theme-rail-controls {
    display: none;
  }
}

@media (max-width: 1100px) {
  .blog-reading-layout-horizontal,
  .content-layout {
    grid-template-columns: 220px minmax(0,1fr);
    gap: 30px;
  }

  .docs-content-inner {
    max-width: 700px;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    gap: 48px;
    grid-template-columns: 320px minmax(0,1fr);
  }

  .three-column-grid {
    gap: 28px;
  }

  .site-nav {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .blog-reading-layout-horizontal,
  .content-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .blog-shell,
  .page-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .panel-sticky {
    position: static;
  }

  .panel-scroll {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 2px;
    padding-right: 2px;
    max-width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .panel-scroll::-webkit-scrollbar,
  .item-list::-webkit-scrollbar,
  .article-list::-webkit-scrollbar {
    display: none;
  }

  .articles-panel,
  .left-list-panel {
    width: 100%;
    max-width: 100%;
    padding-left: 4px;
    padding-right: 4px;
  }

  .article-list,
  .item-list,
  #blogContent,
  #projectContent,
  .docs-content-inner {
    width: 100%;
    max-width: 100%;
  }

  .item-list,
  .article-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 8px;
    margin-left: -4px;
    margin-right: -4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .item-list li,
  .article-list li {
    flex: 0 0 260px;
    min-width: 260px;
    max-width: 260px;
  }

  .item-list button,
  .article-list button {
    white-space: normal;
  }

  .articles-panel .theme-rail-controls {
    display: flex;
  }

  .projects-filter-bar .theme-rail-track {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }

  .projects-filter-bar .theme-rail-track::-webkit-scrollbar {
    display: none;
  }

  .docs-content-inner {
    max-width: 100%;
    border-radius: 20px;
  }

  .contact-item {
    grid-template-columns: 48px 1fr;
  }

  .contact-item-action {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-content .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    text-align: center;
  }

  .hero-intro {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    background: rgba(247,248,251,.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(111,91,211,.12);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 14px;
  }

  .site-nav .current-menu-item > a::after,
  .site-nav .current_page_item > a::after,
  .site-nav .current-page-ancestor > a::after,
  .site-nav .current_page_parent > a::after,
  .site-nav a.active::after {
    bottom: 4px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-photo-wrap {
    max-width: 320px;
  }

  .three-column-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    gap: 14px 18px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .section {
    padding: 56px 0;
  }

  .hero-intro {
    font-size: 1rem;
  }

  .announcement-content {
    gap: 26px;
    font-size: .9rem;
    padding: 12px 18px;
  }

  .site-title {
    font-size: .94rem;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .blogs-page-header h1,
  .page-header h1 {
    font-size: 2.6rem;
  }

  .docs-content-inner h1 {
    font-size: 2.2rem;
  }

  .theme-chip-list {
    gap: 10px;
  }

  .theme-chip-list button,
  .filter-chip {
    padding: 9px 12px;
    font-size: .92rem;
  }

  .download-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-shell,
  .page-shell,
  .page-shell-narrow {
    width: 100%;
  }

  .blog-reading-layout-horizontal,
  .content-layout {
    gap: 22px;
  }

  .docs-content-inner {
    padding: 20px 16px;
  }

  .docs-content-inner,
  .download-item,
  .contact-item,
  .theme-rail-horizontal,
  .projects-filter-bar,
  .downloads-filter-bar {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Remove circle when logo is used */
.contact-item-icon.has-logo {
  background: transparent;
}

.contact-item-icon.has-logo {
  width: auto;
  height: auto;
}

.site-logo-image .custom-logo,
.site-logo-link .custom-logo {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
  display: block;
}

.footer-logo-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}

.footer-logo-image .custom-logo,
.footer-logo-image img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  object-fit: contain;
  display: block;
}

/* Remove WordPress default menu dots */
.site-nav,
.site-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  font-size: 0.92rem;
}

.footer-brand {
  align-items: center;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.download-count {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}