/*
Theme Name: Asamteer
Theme URI: https://asamteer.com/
Author: Asamteer
Author URI: https://asamteer.com/
Description: A fast, responsive WordPress publishing theme with configurable homepage sections, Pinterest image sharing and manual share counts. SEO metadata and schema are intentionally left to Rank Math.
Version: 2.1.1
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: asamteer
*/

:root {
  --brand: #29a777;
  --brand-dark: #f66767;
  --brand-darker: #134e36;
  --brand-bg: #ecfff8;
  --brand-bg-2: #d8f5e8;
  --brand-bg-strong: #b8e8d2;
  --text: #333;
  --white: #fff;
  --card-radius: 2px;
  --card-shadow: 2px 2px 5px #bbb;
  --card-shadow-hover: 0 8px 20px rgb(0 0 0 / 12%);
  --wrap: 1140px;
}

html { box-sizing: border-box; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  background: var(--brand-bg);
  color: var(--text);
  font-family: "Rubik", Arial, Helvetica, sans-serif;
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: .3px;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover, a:focus { color: var(--brand-darker); }
button, input, textarea, select { font: inherit; }
button, input[type="submit"] { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 20px;
  color: #000;
  font-family: "Rubik", Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.4;
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
p { margin: 0 0 24px; }
ul, ol { margin-top: 0; }
.wrap, .site-inner { width: min(100% - 30px, var(--wrap)); margin-inline: auto; }
.site-container { min-height: 100vh; background: var(--brand-bg); }
.site-inner { margin-top: 10px; padding: 15px; background: #fafafa; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  top: 6px; left: 6px; z-index: 100000;
  width: auto; height: auto; padding: 14px 18px; margin: 0;
  clip: auto; background: #fff; color: #000; font-weight: 700;
}
:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: 100px;
  background: #fff;
  border-top: 1px solid var(--brand);
  border-bottom: 2px solid var(--brand);
}
.admin-bar .site-header { top: 32px; }
.header-wrap { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.title-area { flex: 0 0 215px; }
.custom-logo-link { display: block; }
.custom-logo { width: 215px; max-height: 76px; object-fit: contain; }
.default-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-dark); font-weight: 800; line-height: 1; }
.default-logo:hover, .default-logo:focus { color: var(--brand-darker); }
.default-logo-mark { display: grid; width: 54px; height: 54px; place-items: center; border: 3px solid var(--brand); border-radius: 50%; color: var(--brand); font-size: 29px; }
.default-logo-text { font-size: 29px; letter-spacing: -.8px; }
.nav-primary { display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end; gap: 20px; }
.primary-menu, .primary-menu .sub-menu { padding: 0; margin: 0; list-style: none; }
.primary-menu { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.primary-menu > li { position: relative; }
.primary-menu a { display: block; padding: 22px 15px; color: var(--brand); font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.primary-menu > .menu-item-has-children > a { padding-right: 28px; }
.primary-menu > .menu-item-has-children > a::after { content: "▾"; position: absolute; right: 10px; }
.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: -9999px;
  z-index: 50;
  width: 280px;
  padding: 5px 0;
  background: var(--brand-bg);
  box-shadow: 0 8px 18px rgb(0 0 0 / 12%);
  opacity: 0;
}
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { left: 0; opacity: 1; }
.primary-menu .sub-menu .sub-menu { top: 0; left: -9999px; }
.primary-menu .sub-menu li:hover > .sub-menu, .primary-menu .sub-menu li:focus-within > .sub-menu { left: 280px; }
.primary-menu .sub-menu a { padding: 11px 15px; color: #333; font-size: 14px; line-height: 1.35; }
.primary-menu .sub-menu a:hover { background: var(--brand-bg-strong); }
.header-search { width: 315px; }
.search-form { position: relative; }
.search-form label { display: block; }
.search-field {
  width: 100%;
  min-height: 50px;
  padding: 6px 42px 6px 10px;
  border: 0;
  border-bottom: 2px solid var(--brand);
  border-radius: 0;
  background: var(--brand-bg) url("assets/images/search.svg") center right 12px / 20px 20px no-repeat;
  color: #444;
}
.search-submit { position: absolute; inset: 0 0 0 auto; width: 42px; border: 0; background: transparent; }
.menu-toggle, .search-toggle, .submenu-toggle { display: none; }

/* Home and archive cards */
.home-inner { padding: 32px 40px 40px; }
.home-category-section { margin-bottom: 28px; }
.section-title, .archive-title { margin-bottom: 18px; font-family: "Rubik", Arial, Helvetica, sans-serif; font-size: 36px; }
.fsri-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.listing-item {
  overflow: hidden;
  padding: 0 0 17px;
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.listing-item:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.card-image { display: block; background: var(--brand-bg-2); }
.card-image img, .card-placeholder { display: block; width: 100%; aspect-ratio: 1280 / 780; object-fit: cover; }
.card-placeholder { background: linear-gradient(135deg, var(--brand-bg-2), var(--brand-bg-strong)); }
.fsri-title {
  display: block;
  min-height: 95px;
  margin: 0 7px;
  padding: 12px 6px 4px;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.more-category { margin: 20px 0 6px; text-align: right; font-size: 24px; }
.archive-main .site-inner { padding: 30px 40px 45px; }
.archive-header { margin-bottom: 22px; }
.archive-description { font-size: 17px; }
.archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.navigation.pagination { margin: 34px 0 0; text-align: center; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 8px; background: var(--brand); color: var(--brand-darker); font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--brand-darker); color: #fff; }
.no-results { max-width: 720px; }

/* Single posts and pages */
.content-sidebar-wrap { display: grid; grid-template-columns: minmax(0, 1fr) var(--asamteer-sidebar-width, 300px); gap: clamp(30px, calc(375px - var(--asamteer-sidebar-width, 300px)), 75px); align-items: start; }
.content-sidebar-wrap.no-sidebar { grid-template-columns: minmax(0, 720px); justify-content: center; }
.content { min-width: 0; }
.page-content { width: min(100%, 900px); margin-inline: auto; }
.single-main .site-inner, .page-main .site-inner { padding: 20px; }
.single-post .entry-title {
  margin: 0 0 7px;
  padding: 10px 18px;
  background: var(--brand-bg-2);
  border-bottom: 2px solid #e0e0e0;
  color: #000;
  font-size: 32px;
  text-align: center;
}
.entry-content { min-width: 0; }
.single-post .entry-content { padding: 10px; background: #fff; }
.single-post .entry-content > p { margin: 0 0 10px; padding: 20px; background: #fff; }
.entry-content ul, .entry-content ol { margin: 0 0 25px 32px; }
.entry-content li { margin-bottom: 7px; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 35px; padding: 8px 12px; background: var(--brand-bg-strong); }
.entry-content iframe, .entry-content video { max-width: 100%; }
.entry-content .alignwide { width: auto; max-width: none; margin-left: -20px; margin-right: -20px; }
.single-post .entry-content figcaption,
.single-post .entry-content .wp-element-caption {
  display: block;
  width: min(92%, 640px);
  margin: 9px auto 20px;
  padding: 8px 14px 9px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #4d5a55;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

/* Automatic heading-image-description cards. */
.single-post .entry-content .asamteer-idea-heading { margin: 40px 0 0; padding: 12px 16px; border-radius: 12px 12px 0 0; box-shadow: 0 4px 12px rgb(0 0 0 / 8%); position: relative; z-index: 1; }
.single-post .entry-content .asamteer-idea-image { margin: 0; box-shadow: 0 4px 12px rgb(0 0 0 / 8%); }
.single-post .entry-content .asamteer-idea-image img { width: 100%; height: auto; object-fit: contain; }
.single-post .entry-content .asamteer-idea-copy { margin: 0 0 24px; padding: 16px; border-radius: 0; background: #fff; box-shadow: none; line-height: 1.6; }

/* Pinterest image control, matching the source overlay. */
.single-post .entry-content figure.asamteer-pin-target { position: relative; cursor: default; }
.single-post .entry-content figure.asamteer-pin-target::before {
  content: "";
  position: absolute;
  top: 20px; left: 20px;
  z-index: 11;
  width: 54px; height: 54px;
  background: #c8232c url("assets/images/pinterest.svg") center / 32px 32px no-repeat;
  pointer-events: none;
}
.single-post .entry-content figure.asamteer-pin-target::after {
  content: "↖Pin to Save for Later";
  position: absolute;
  top: 36px; left: 80px;
  z-index: 10;
  padding: 4px 10px 4px 8px;
  border-radius: 4px;
  background: #c8232c;
  box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
  color: #fff;
  font: 600 .95rem/1.1 "Inter", Arial, sans-serif;
  transform: rotate(-6deg);
  animation: asamteer-save-bounce 1.2s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes asamteer-save-bounce {
  0% { transform: translate(0, 0) rotate(-6deg); }
  50% { transform: translate(-4px, -4px) rotate(-6deg); }
  100% { transform: translate(0, 0) rotate(-6deg); }
}

/* Manual share-count bar. */
.asamteer-share-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  min-height: 52px;
  margin-top: 14px;
  background: #fff;
  box-shadow: 0 -2px 8px rgb(0 0 0 / 9%);
}
.asamteer-pinterest-share { display: grid; grid-template-columns: 34px 1fr; align-items: center; background: #ed0028; color: #fff; font-weight: 700; text-align: center; }
.asamteer-pinterest-share:hover { color: #fff; background: #c8232c; }
.asamteer-pinterest-share img { width: 18px; height: 18px; margin-left: 12px; }
.asamteer-native-share { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 4px 8px; border: 0; background: #fff; color: #333; font-size: 12px; line-height: 1; }
.asamteer-native-share svg { width: 20px; height: 20px; fill: #51606a; }
.asamteer-native-share strong { display: block; font-size: 20px; }
.asamteer-native-share.copied::after { content: "Copied"; position: absolute; margin-top: -75px; padding: 5px 10px; background: #111; color: #fff; border-radius: 4px; }

/* Exact reference-style fixed previous/next controls. */
.asamteer-sticky-nav {
  position: fixed;
  top: 50%; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(.9);
  transition: .35s;
}
.asamteer-sticky-nav.is-visible { opacity: 1; transform: translateY(-50%) scale(1); }
.asamteer-arrow { position: relative; display: flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand); color: #fff; pointer-events: auto; transition: .3s; }
.asamteer-arrow::before { content: ""; width: 12px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(-45deg); }
.asamteer-arrow.prev::before { transform: rotate(135deg); }
.asamteer-arrow.next { margin-left: auto; }
.asamteer-arrow:hover, .asamteer-arrow:focus { background: var(--brand-dark); color: #fff; transform: scale(1.1); }
.asamteer-arrow::after { content: attr(data-label); position: absolute; top: 50%; padding: 4px 8px; border-radius: 4px; background: var(--brand-dark); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; pointer-events: none; transform: translateY(-50%); transition: .25s; white-space: nowrap; }
.asamteer-arrow.prev::after { left: calc(100% + 6px); }
.asamteer-arrow.next::after { right: calc(100% + 6px); }
.asamteer-arrow:hover::after, .asamteer-arrow:focus::after { opacity: 1; }

/* Sidebar */
.sidebar { min-width: 0; }
.widget { margin-bottom: 30px; }
.widget-title { margin-bottom: 20px; font-size: 32px; }
.sidebar-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sidebar-grid-columns-1 { grid-template-columns: 1fr; }
.sidebar-grid-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sidebar-card { overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgb(0 0 0 / 8%); }
.sidebar-card a { display: block; color: #000; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: center; }
.sidebar-card img, .sidebar-card .card-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sidebar-card a > span:last-child { display: block; min-height: 110px; padding: 10px 7px; }
.sidebar-grid-columns-1 .sidebar-card img, .sidebar-grid-columns-1 .sidebar-card .card-placeholder { aspect-ratio: 16 / 9; }
.sidebar-grid-columns-1 .sidebar-card a > span:last-child { min-height: 0; padding: 12px 14px 15px; font-size: 18px; }
.widget ul { padding-left: 20px; }

/* Five-post inline idea widgets inserted after each five content groups. */
.asamteer-inline-related { clear: both; margin: 30px 0; padding: 0; }
.single-post .entry-content .asamteer-inline-related-title {
  margin: 0 0 14px;
  padding: 7px 10px;
  border: 2px solid var(--brand-dark);
  border-radius: 3px;
  background: #fff39a;
  color: #111;
  font-size: 21px;
  line-height: 1.25;
}
.asamteer-inline-related-list { display: grid; gap: 12px; margin: 0 !important; padding: 0 !important; list-style: none; }
.asamteer-inline-related-list li { margin: 0 !important; list-style: none !important; }
.asamteer-inline-related-list a {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 38px;
  min-height: 88px;
  align-items: center;
  gap: 12px;
  padding: 7px 9px;
  border: 1px solid #efd38b;
  border-radius: 12px;
  background: #fff;
  color: #000 !important;
  box-shadow: 0 2px 5px rgb(0 0 0 / 3%);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.asamteer-inline-related-list a:hover, .asamteer-inline-related-list a:focus { border-color: var(--brand); box-shadow: 0 6px 15px rgb(0 0 0 / 9%); transform: translateY(-2px); }
.asamteer-inline-related-image { display: block; overflow: hidden; border-radius: 8px; background: var(--brand-bg-2); }
.asamteer-inline-related-image img, .asamteer-inline-related-image .card-placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.asamteer-inline-related-list a:hover img { transform: scale(1.04); }
.asamteer-inline-related-link { font-size: 17px; font-weight: 700; line-height: 1.35; text-decoration: underline; text-decoration-color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.asamteer-inline-related-arrow { color: #f15a35; font: 34px/1 Arial, sans-serif; text-align: center; transition: transform .2s ease; }
.asamteer-inline-related-list a:hover .asamteer-inline-related-arrow { transform: translateX(4px); }

/* Six unique same-category cards after the article. */
.asamteer-end-related { margin: 30px 0 12px; padding: 18px; border-radius: 12px; background: var(--brand-bg-2); }
.asamteer-end-related > h2 { margin-bottom: 16px; font-size: 28px; text-align: center; }
.asamteer-end-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.asamteer-end-related-card { overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgb(0 0 0 / 9%); transition: transform .2s ease, box-shadow .2s ease; }
.asamteer-end-related-card:hover { transform: translateY(-4px); box-shadow: 0 9px 20px rgb(0 0 0 / 14%); }
.asamteer-end-related-card a { display: block; color: #000; }
.asamteer-end-related-card img, .asamteer-end-related-card .card-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.asamteer-end-related-card a > span:last-child { display: block; padding: 10px 8px 12px; font-size: 15px; font-weight: 700; line-height: 1.35; text-align: center; }

/* Pages, comments and footer */
.page-main .entry-title { padding: 10px 18px; background: var(--brand-bg-2); text-align: center; }
.page-main .entry-content { padding: 20px; background: #fff; }
.narrow-content { max-width: 760px; }
.comments-area { margin-top: 35px; padding: 20px; background: #fff; }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { margin-bottom: 20px; padding: 14px; background: #fafafa; }
input, textarea, select { max-width: 100%; padding: 12px; border: 1px solid #ccc; background: #fff; }
textarea { width: 100%; }
input[type="submit"], .wp-element-button { padding: 12px 24px; border: 0; border-radius: 6px; background: var(--brand); color: #000; font-weight: 700; }
.site-footer { margin-top: 35px; padding: 26px 0; background: #fff; border-top: 2px solid var(--brand); text-align: center; }
.footer-wrap p { margin: 8px 0 0; font-size: 15px; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 0; padding: 0; list-style: none; font-size: 15px; }

/* Helpful, on-brand 404 page. */
.error-inner { padding: 40px; }
.error-hero {
  max-width: 760px;
  margin-inline: auto;
  padding: 48px 40px;
  border: 1px solid var(--brand-bg-strong);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgb(0 0 0 / 9%);
  text-align: center;
}
.error-code { margin: 0; color: var(--brand); font-size: clamp(76px, 11vw, 118px); font-weight: 800; letter-spacing: -5px; line-height: .9; }
.error-hero h1 { margin: 16px 0 12px; font-size: clamp(30px, 4vw, 46px); }
.error-hero > p:not(.error-code) { max-width: 610px; margin-inline: auto; color: #52605a; }
.error-search { max-width: 520px; margin: 24px auto 18px; }
.error-home-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 700; }
.error-home-button:hover, .error-home-button:focus { background: var(--brand-darker); color: #fff; }
.error-latest { margin-top: 42px; }
.error-latest h2 { text-align: center; }
.error-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1199px) {
  body { padding-top: 80px; font-size: 18px; }
  .admin-bar { padding-top: 80px; }
  .site-header, .admin-bar .site-header { position: fixed; top: 0; left: 0; right: 0; min-height: 80px; }
  .admin-bar .site-header { top: 32px; }
  .header-wrap { min-height: 78px; justify-content: center; }
  .title-area { flex: 0 1 215px; }
  .custom-logo { width: 190px; max-height: 70px; }
  .default-logo-mark { width: 48px; height: 48px; font-size: 25px; }
  .default-logo-text { font-size: 26px; }
  .menu-toggle {
    position: absolute; left: 15px; top: 15px;
    display: block; width: 50px; height: 50px;
    border: 0; background: transparent;
  }
  .search-toggle {
    position: absolute; right: 15px; top: 15px;
    display: grid; width: 50px; height: 50px; place-items: center;
    border: 0; background: transparent;
  }
  .search-toggle svg { width: 30px; height: 30px; fill: none; stroke: #111; stroke-linecap: round; stroke-width: 2; }
  .menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { position: absolute; left: 10px; width: 30px; height: 3px; background: #111; content: ""; transition: transform .2s ease; }
  .menu-toggle-lines { top: 23px; }
  .menu-toggle-lines::before { left: 0; top: -9px; }
  .menu-toggle-lines::after { left: 0; top: 9px; }
  .menu-is-open .menu-toggle-lines { background: transparent; }
  .menu-is-open .menu-toggle-lines::before { top: 0; transform: rotate(45deg); }
  .menu-is-open .menu-toggle-lines::after { top: 0; transform: rotate(-45deg); }
  .nav-primary {
    position: fixed; top: 80px; left: 0; right: 0;
    display: none; max-height: calc(100vh - 80px); padding: 16px 5%;
    overflow-y: auto; background: #fff; border-bottom: 2px solid var(--brand); box-shadow: 0 8px 18px rgb(0 0 0 / 12%);
  }
  .admin-bar .nav-primary { top: 112px; }
  .menu-is-open .nav-primary { display: block; }
  .primary-menu { display: block; }
  .primary-menu a { padding: 13px 45px 13px 12px; border-bottom: 1px solid #eee; }
  .primary-menu > .menu-item-has-children > a::after { display: none; }
  .primary-menu .sub-menu, .primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu,
  .primary-menu .sub-menu .sub-menu, .primary-menu .sub-menu li:hover > .sub-menu, .primary-menu .sub-menu li:focus-within > .sub-menu {
    position: static; display: none; width: auto; padding: 0 0 0 18px; opacity: 1; box-shadow: none;
  }
  .primary-menu .submenu-is-open > .sub-menu { display: block; }
  .submenu-toggle { position: absolute; top: 4px; right: 0; display: grid; width: 42px; height: 42px; place-items: center; border: 0; background: transparent; color: var(--brand-darker); }
  .submenu-toggle span[aria-hidden="true"] { font-size: 24px; transition: transform .2s; }
  .submenu-is-open > .submenu-toggle span[aria-hidden="true"] { transform: rotate(180deg); }
  .header-search { width: 100%; margin-top: 12px; }
  .content-sidebar-wrap { grid-template-columns: minmax(0, 1fr); gap: 35px; max-width: 720px; margin-inline: auto; }
  .sidebar { width: 100%; }
  .asamteer-sticky-nav { left: 0; right: 0; }
}

@media (max-width: 900px) {
  .fsri-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav-primary { top: 126px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; line-height: 1.8; }
  h1, .section-title, .archive-title { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .wrap, .site-inner { width: 100%; }
  .site-inner, .home-inner, .archive-main .site-inner, .single-main .site-inner, .page-main .site-inner { margin-top: 0; padding: 18px 5%; }
  .fsri-list, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .fsri-title { min-height: 80px; margin: 0 3px; padding: 8px 3px 2px; font-size: 15px; }
  .listing-item { padding-bottom: 8px; }
  .more-category { font-size: 18px; }
  .single-post .entry-title { font-size: 26px; }
  .single-post .entry-content { padding: 6px; }
  .single-post .entry-content > p { padding: 14px; }
  .single-post .entry-content figure.asamteer-pin-target::after { font-size: .8rem; }
  .asamteer-share-bar { grid-template-columns: minmax(0, 1fr) 112px; }
  .asamteer-sticky-nav { padding: 0 4px; }
  .asamteer-arrow { width: 38px; height: 38px; }
  .asamteer-arrow::before { width: 10px; height: 10px; border-width: 0 2px 2px 0; }
  .asamteer-arrow::after { display: none; }
  .asamteer-inline-related-list a { grid-template-columns: 82px minmax(0, 1fr) 28px; min-height: 76px; gap: 8px; padding: 6px; }
  .asamteer-inline-related-link { font-size: 14px; }
  .asamteer-inline-related-arrow { font-size: 27px; }
  .asamteer-end-related { padding: 12px; }
  .asamteer-end-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sidebar-card a > span:last-child { min-height: 88px; font-size: 14px; }
  .error-inner { padding: 20px 5%; }
  .error-hero { padding: 34px 20px; border-radius: 14px; }
  .error-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  .custom-logo { width: 155px; }
  .default-logo { gap: 7px; }
  .default-logo-mark { width: 42px; height: 42px; font-size: 22px; }
  .default-logo-text { font-size: 22px; }
  .single-post .entry-content figure.asamteer-pin-target::before { width: 48px; height: 48px; background-size: 29px 29px; }
  .single-post .entry-content figure.asamteer-pin-target::after { left: 72px; max-width: 190px; }
}
