:root {
  --color-bg: #050505;
  --color-panel: #ffffff;
  --color-text: #111111;
  --color-text-invert: #ffffff;
  --color-red: #e21b1b;
  --color-teal: #00aeb5;
  --color-border: #111111;
  --color-muted: #6d6d6d;
  --color-line: rgba(255, 255, 255, 0.16);
  --shadow-ink: 0 0 0 2px #111111;
  --radius-sm: 6px;
  --radius-md: 10px;
  --thumb-card-min-height: 108px;
  --thumb-card-padding-y: 10px;
  --thumb-card-padding-x: 12px;
  --thumb-base-size: 92px;
  --thumb-community-size: 56px;
  --thumb-library-size: 72px;
  --thumb-grid-min: 150px;
  --thumb-title-gap: 8px;
  --thumb-title-font-size: 1.4rem;
  --thumb-title-line-height: 0.9;
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.82)),
    url("skate-doodle-pattern-v1.png"),
    radial-gradient(circle at top right, rgba(0, 174, 181, 0.15), transparent 20%),
    radial-gradient(circle at left center, rgba(226, 27, 27, 0.12), transparent 24%),
    var(--color-bg);
  color: var(--color-text-invert);
  font-family: var(--font-body);
  min-height: 100vh;
  background-size: auto, 760px, auto, auto, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, scroll, scroll, scroll;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-shell {
  position: relative;
  overflow-x: clip;
}

.doodles {
  display: none;
}

.doodle-rail {
  position: absolute;
  top: 88px;
  bottom: 20px;
  width: 48px;
  display: grid;
  align-content: space-between;
  color: rgba(255, 255, 255, 0.45);
  font: 700 34px/1 var(--font-display);
}

.doodle-rail.left {
  left: 8px;
}

.doodle-rail.right {
  right: 8px;
}

.doodle-rail span {
  transform: rotate(-8deg);
}

.container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
}

.nav-toggle {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(164px, 18vw, 228px);
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 0;
}

.nav a.active::after,
.utility-links a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 4px;
  background: var(--color-red);
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.utility-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-tool {
  opacity: 0.72;
  font-size: 0.9rem !important;
}

.nav-tool:first-of-type {
  margin-left: 8px;
  padding-left: 16px !important;
  border-left: 1px solid rgba(255,255,255,0.25);
}

.main {
  padding: 26px 0 64px;
}

.main[data-builder] .container {
  width: min(1380px, calc(100% - 48px));
}

.panel,
.card,
.feature-card,
.mini-card,
.review-card,
.info-card,
.tool-result {
  background: var(--color-panel);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.panel {
  padding: clamp(22px, 4vw, 34px);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.hero-simple {
  grid-template-columns: 1fr;
}

.hero-simple .hero-copy {
  padding-right: 0;
  max-width: 560px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding-right: 12px;
}

.eyebrow,
.section-title,
.card-title,
.tool-heading,
.metric-label,
.steps-title,
.form-title {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-copy p {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-copy .sub-accent {
  color: var(--color-teal);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 22px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-text-invert);
}

.btn-secondary {
  background: var(--color-panel);
  color: var(--color-text);
}

.btn-accent {
  background: var(--color-teal);
  color: var(--color-text);
}

.btn-hero {
  min-height: 72px;
  padding: 0 36px;
  font-size: 1.7rem;
}

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 32vw, 360px);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 42px 48px auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 174, 181, 0.22), transparent 68%);
  filter: blur(20px);
}

.reaper-scene {
  position: absolute;
  inset: 0;
}

.reaper-scene-image {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 0;
}

.hero-illustration {
  width: min(100%, 360px);
  max-height: clamp(220px, 28vw, 320px);
  height: auto;
  object-fit: contain;
  transform: none;
  filter: none;
}

.section {
  margin-top: 20px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
}

.section-title.teal {
  color: var(--color-teal);
}

.section-title.red {
  color: var(--color-red);
}

@media (max-width: 1260px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-art {
    min-height: 260px;
  }
}

.section-link {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-teal);
  text-transform: uppercase;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 14px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.mini-card,
.review-card,
.info-card,
.tool-result {
  padding: 18px;
}

.feature-card {
  min-height: 156px;
}

.template-icon,
.upload-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 12px;
}

.base-card-preview {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 100%;
  place-items: center;
  width: var(--thumb-base-size);
  height: var(--thumb-base-size);
  padding: 0;
  margin: 0 auto var(--thumb-title-gap);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.base-card-preview .preview-svg {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.base-card-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.9rem;
  line-height: 0.92;
}

.card-copy,
.meta-line,
.body-copy,
.review-copy,
.tool-copy,
.legal-copy {
  margin: 0;
  font-size: 1rem;
  line-height: 1.38;
}

.rank-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--color-red);
  color: var(--color-text-invert);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.rank-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.banner {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  background: #0d0d0d;
  color: var(--color-text-invert);
  border: 2px solid #474747;
  border-radius: var(--radius-sm);
}

.banner-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-teal);
}

.banner-logo svg {
  width: 84px;
  height: 54px;
}

.banner-logo h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0.85;
  text-transform: uppercase;
}

.banner-logo h3 span {
  color: var(--color-text-invert);
}

.banner-copy {
  margin: 0;
  font-size: 1.1rem;
}

.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.meta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.social-proof {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.stars {
  color: var(--color-red);
  letter-spacing: 0.08em;
}

.review-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: start;
}

.review-thumb {
  display: grid;
  place-items: center;
  height: 96px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f8f8, #dcdcdc);
}

.review-thumb svg {
  width: 100%;
  height: 100%;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 7vw, 6.3rem);
  line-height: 0.86;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-hero .accent {
  color: var(--color-teal);
}

.page-hero p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.stack {
  display: grid;
  gap: 18px;
}

.sticky-preview-column {
  align-self: start;
}

.builder-block {
  padding: 18px;
}

.steps-title,
.tool-heading,
.form-title {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 0.9;
}

.base-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--thumb-grid-min), 1fr));
  gap: 12px;
}

.base-card {
  appearance: none;
  display: grid;
  justify-items: center;
  align-content: start;
  min-height: var(--thumb-card-min-height);
  padding: var(--thumb-card-padding-y) var(--thumb-card-padding-x);
  background: #f6f6f6;
  border: 2px solid #c8c8c8;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.base-card.active,
.base-card:hover {
  border-color: var(--color-red);
  transform: translateY(-1px);
}

.base-card h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: var(--thumb-title-font-size);
  line-height: var(--thumb-title-line-height);
  text-transform: uppercase;
}

.upload-zone {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 168px;
  padding: 14px 16px;
  border: 2px dashed #b5b5b5;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #f6f6f6);
}

.upload-zone.dragover {
  border-color: var(--color-teal);
  background: #ebfeff;
}

.upload-zone svg {
  width: 50px;
  height: 50px;
}

.upload-zone strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.upload-zone p {
  margin: 5px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.control-help {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 0.94rem;
}

.control-stack {
  display: grid;
  gap: 8px;
}

.community-strip {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dedede;
}

.community-strip-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--thumb-grid-min), 1fr));
  gap: 12px;
}

.community-quick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #111;
  font-family: var(--font-display);
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
}

.community-quick-button:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.community-quick-card {
  display: grid;
  align-content: start;
  justify-items: stretch;
  min-width: 0;
  min-height: var(--thumb-card-min-height);
  padding: var(--thumb-card-padding-y) var(--thumb-card-padding-x);
  gap: var(--thumb-title-gap);
}

.community-quick-title {
  display: block;
  color: #111;
  text-align: center;
  font-size: var(--thumb-title-font-size);
  line-height: var(--thumb-title-line-height);
  text-transform: uppercase;
}

.community-quick-cross {
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.community-quick-cross .top-view-svg {
  width: var(--thumb-community-size);
  height: var(--thumb-community-size);
  background: transparent;
}

.community-quick-link-card {
  text-align: center;
}

.community-quick-cross-placeholder {
  width: var(--thumb-community-size);
  height: var(--thumb-community-size);
}

.top-view-thumb-image {
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--color-border);
  background: #fff;
  font: inherit;
}

.preset-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.preset-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.preset-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #111;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.preset-links a:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
  transform: translateY(-1px);
}

.sample-svg-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.section-subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
}

.upload-zone .chip {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.84rem;
}

.upload-zone .btn {
  min-height: 40px;
  padding: 0 16px;
}

.library-card {
  align-content: start;
}

.library-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.library-visibility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.library-visibility.public {
  color: var(--color-teal);
  border-color: var(--color-teal);
}

.library-visibility.private {
  color: var(--color-red);
  border-color: var(--color-red);
}

.cross-section-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  background: linear-gradient(180deg, #fafafa, #f1f1f1);
}

.community-preview-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.community-preview-stack .cross-section-card {
  margin-top: 0;
}

.community-preview-stack .top-view-card .top-view-svg,
.community-preview-stack .top-view-card .top-view-thumb-image {
  width: var(--thumb-library-size);
  height: var(--thumb-library-size);
}

.top-view-card {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.top-view-svg {
  display: block;
  width: 100%;
  height: 150px;
  background: transparent;
}

.cross-section-svg {
  display: block;
  width: 100%;
  height: 82px;
}

.side-view-card {
  display: grid;
  place-items: center;
}

.settings-grid {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.settings-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  grid-template-areas:
    "settings preview"
    "settings dimensions";
  gap: 16px 18px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.inline-preview-pane {
  grid-area: preview;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.inline-dimensions-card {
  grid-area: dimensions;
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid #d8d8d8;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8f8f8);
}

.mini-dimensions-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-teal);
}

.inline-dimensions {
  gap: 6px;
}

.inline-dimensions .metric {
  padding-bottom: 4px;
}

.inline-dimensions .metric-label {
  font-size: 0.95rem;
}

.inline-dimensions .metric-value {
  font-size: 0.82rem;
}

.preview-pane-title {
  margin-bottom: 0;
}

.control-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 80px 24px;
  gap: 10px;
  align-items: center;
}

.settings-grid {
  grid-area: settings;
}

.control-row label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
}

.control-row input[type="range"] {
  accent-color: var(--color-teal);
  width: 100%;
  min-width: 0;
}

.number-input {
  width: 100%;
  max-width: 80px;
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid #c5c5c5;
  border-radius: 4px;
}

.unit {
  font-family: var(--font-display);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  appearance: none;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid #c5c5c5;
  border-radius: 6px;
  background: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  cursor: pointer;
}

.chip.active {
  border-color: var(--color-red);
  border-width: 2px;
}

.select-wrap select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid #c5c5c5;
  border-radius: 6px;
  background: #fff;
}

.tip {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.preview-block {
  display: grid;
  gap: 16px;
}

.preview-frame {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: linear-gradient(180deg, #fefefe, #f4f4f4);
  padding: 16px;
}

.preview-svg {
  width: min(280px, 100%);
}

.preview-vector .cls-1,
.preview-vector path,
.preview-vector rect,
.preview-vector circle,
.preview-vector ellipse,
.preview-vector polygon,
.preview-vector polyline {
  vector-effect: non-scaling-stroke;
}

.preview-base .preview-outer path,
.preview-base .preview-outer rect,
.preview-base .preview-outer circle,
.preview-base .preview-outer ellipse,
.preview-base .preview-outer polygon,
.preview-base .preview-outer polyline {
  fill: #111;
  stroke: none;
}

.preview-base .preview-inner path,
.preview-base .preview-inner rect,
.preview-base .preview-inner circle,
.preview-base .preview-inner ellipse,
.preview-base .preview-inner polygon,
.preview-base .preview-inner polyline {
  fill: #fff;
  stroke: none;
}

.preview-hole path,
.preview-hole rect,
.preview-hole circle,
.preview-hole ellipse,
.preview-hole polygon,
.preview-hole polyline {
  fill: #fff;
  stroke: none;
}

.side-profile {
  width: min(280px, 100%);
  justify-self: center;
  display: grid;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px dashed #bbbbbb;
}

.side-profile-svg {
  display: block;
  width: 100%;
  height: 132px;
}

.front-rear {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-display);
}

.dimensions {
  display: grid;
  gap: 10px;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #d7d7d7;
  padding-bottom: 6px;
}

.metric-label {
  font-size: 1.25rem;
}

.metric-value {
  font-weight: 700;
}

.dimension-note {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.export-stack {
  display: grid;
  gap: 10px;
}

.builder-export-panel {
  width: min(100%, 560px);
}

.export-note {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.api-status {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  text-transform: uppercase;
}

.api-status.ok {
  color: var(--color-teal);
}

.api-status.warn {
  color: var(--color-red);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.check-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
}

.check-item svg {
  width: 54px;
  height: 54px;
}

.list-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.tool-form,
.tool-result {
  padding: 20px;
}

.tool-form form {
  display: grid;
  gap: 14px;
}

.tool-helper {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.field input,
.field select {
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid #c5c5c5;
  border-radius: 6px;
}

.result-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.result-pill {
  padding: 14px;
  background: #f7f7f7;
  border: 2px solid #d7d7d7;
  border-radius: 8px;
}

.result-pill h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.result-pill strong {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.9;
}

.insight-list {
  display: grid;
  gap: 10px;
}

.insight {
  padding: 12px 14px;
  border-left: 6px solid var(--color-teal);
  background: #f8f8f8;
}

.legal-layout {
  display: grid;
  gap: 18px;
}

button.mini-card {
  appearance: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.legal-block h2,
.legal-block h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.footer {
  border-top: 1px solid var(--color-line);
  padding: 24px 0 36px;
}

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

.footer-tagline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.footer-tagline .accent {
  color: var(--color-red);
}

.footer-links,
.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-social a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
}

.footer-meta {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.notice {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .page-hero,
  .builder-grid,
  .tool-layout {
    grid-template-columns: 1fr;
  }

  .settings-preview-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "settings"
      "dimensions";
  }

  .grid-4,
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .banner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-art {
    min-height: 240px;
  }

  .sticky-preview-column {
    position: static;
  }
}

@media (min-width: 1101px) {
  .sticky-preview-column {
    position: sticky;
    top: 96px;
  }
}

@media (max-width: 860px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .main[data-builder] .container {
    width: min(100% - 28px, 1380px);
  }

  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-word {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    align-content: center;
    justify-items: center;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(17, 17, 17, 0.18);
    border-radius: 8px;
    background: rgba(17, 17, 17, 0.02);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #111;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav,
  .utility-links {
    display: none;
    justify-content: flex-start;
    width: 100%;
  }

  .topbar.menu-open .nav,
  .topbar.menu-open .utility-links {
    display: flex;
  }

  .topbar.menu-open .nav {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 4px;
  }

  .topbar.menu-open .utility-links {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 4px;
  }

  .topbar.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .topbar.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .grid-3,
  .grid-2,
  .list-page-grid,
  .result-hero {
    grid-template-columns: 1fr;
  }

  .review-card,
  .check-item {
    grid-template-columns: 1fr;
  }

  .page-hero h1 {
    white-space: normal;
  }

  .page-hero {
    gap: 10px;
  }

  .steps-title,
  .tool-heading,
  .form-title {
    font-size: 1.55rem;
  }

  .hero-art {
    min-height: 220px;
  }

  .hero-illustration {
    width: min(100%, 300px);
    max-height: 220px;
  }

  .brand-logo {
    width: 168px;
  }

  .control-row {
    grid-template-columns: 96px auto;
    gap: 8px 10px;
    align-items: start;
  }

  .control-row label {
    grid-column: 1 / -1;
    font-size: 1.05rem;
  }

  .control-row input[type="range"] {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .control-row .number-input {
    grid-column: 1;
    width: 96px;
  }

  .control-row .unit {
    grid-column: 2;
    align-self: center;
  }

  .base-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .base-card {
    min-width: 0;
  }

  .base-card-preview {
    width: 88px;
    height: 88px;
  }

  .base-card h3 {
    font-size: 1.15rem;
  }

  .settings-preview-layout {
    gap: 14px;
  }

  .builder-export-panel {
    width: 100%;
  }

  .preview-frame {
    min-height: 280px;
    padding: 14px;
  }

  .preview-svg {
    width: min(260px, 100%);
  }

  .side-profile {
    width: min(260px, 100%);
  }

  .community-strip-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-zone {
    min-height: 0;
    padding: 12px;
  }

  .upload-zone strong {
    font-size: 1.1rem;
    overflow-wrap: anywhere;
  }

  .upload-zone p {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .preset-actions,
  .preset-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .preset-actions .chip,
  .preset-links a {
    min-width: 0;
    width: 100%;
    text-align: center;
  }

  .doodle-rail {
    display: none;
  }
}

@media (max-width: 560px) {
  .grid-4,
  .checklist {
    grid-template-columns: 1fr;
  }

  .panel,
  .builder-block {
    padding: 16px;
  }

  .page-hero h1 {
    font-size: clamp(3.2rem, 13vw, 4.2rem);
    line-height: 0.9;
  }

  .brand-logo {
    width: 156px;
  }

  .page-hero p {
    font-size: 1rem;
    line-height: 1.2;
  }

  .community-quick-card {
    min-width: 0;
  }

  .community-quick-title {
    font-size: 1rem;
  }

  .upload-zone {
    padding: 10px;
  }

  .upload-zone svg {
    width: 42px;
    height: 42px;
  }

  .upload-zone strong {
    font-size: 0.95rem;
  }

  .preset-actions,
  .preset-links {
    grid-template-columns: 1fr;
  }

  .base-options,
  .community-strip-actions {
    grid-template-columns: 1fr;
  }

  .base-card-preview {
    width: 82px;
    height: 82px;
  }

  .button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Community controls */
.community-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: 10px;
}
.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.control-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.5;
  min-width: 44px;
}
.community-controls .chip {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.community-controls .chip:hover { border-color: rgba(255,255,255,0.4); }
.community-controls .chip.active { background: transparent; border-color: var(--color-red); border-width: 2px; }

.insta-cta {
  text-align: center;
  padding: 20px 24px;
}

#insta-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: #111;
  color: #fff;
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 6px solid var(--color-red);
  font-family: var(--font-display);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#insta-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-text {
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.4;
  padding-right: 20px;
}

.toast-btn {
  display: block;
  background: var(--color-red);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.15s;
}

.toast-btn:hover {
  opacity: 0.85;
  color: #fff;
}

.toast-btn-x {
  background: #111;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}

.toast-btn-x:hover {
  border-color: #fff;
  opacity: 1;
}

.toast-btn-copy {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s;
}

.toast-btn-copy:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

.toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

.toast-close:hover {
  color: #fff;
}

.faq-section {
  margin-top: 28px;
}

.faq-list {
  padding: 0;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid rgba(17,17,17,0.1);
  padding: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-q::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--color-red);
  font-weight: 400;
}

details[open] .faq-q::after {
  content: "−";
}

.faq-a {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.faq-a a {
  color: var(--color-red);
  text-decoration: underline;
}

.tag-clickable {
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tag-clickable:hover {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}

.spec-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.spec-badge {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-bg);
  color: var(--color-text-invert);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 2px 8px;
}

.insta-cta-text {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Like button */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 2px 10px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.like-btn:hover { border-color: #e21b1b; color: #e21b1b; }
.like-btn.liked { border-color: #e21b1b; color: #e21b1b; }

/* Google AdSense unit above footer */
.ad-unit {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px var(--pad-x);
}

/* Community search + count */
.community-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.community-search {
  flex: 1;
  max-width: 320px;
  padding: 8px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 1rem;
}
.community-count {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  opacity: 0.6;
  color: var(--color-text-invert);
}
.badge-new {
  display: inline-block;
  padding: 1px 7px;
  background: var(--color-teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
}
.btn-delete-card {
  border-color: #c0392b;
  color: #c0392b;
}

/* ── Share to Community Modal ──────────────────────────────────────── */
.btn-community {
  background: var(--color-teal, #1abc9c);
  color: #fff;
  border: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0.65em 1.4em;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  transition: opacity 0.15s;
}
.btn-community:hover { opacity: 0.85; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.is-open { display: flex; }

.modal-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #fff; }
.modal-title { font-size: 1.2rem; margin: 0 0 4px; color: var(--color-teal, #1abc9c); }
.modal-sub   { color: #888; font-size: 0.85rem; margin: 0 0 16px; }

.field-group { margin-bottom: 14px; }
.field-group label { display: block; font-size: 0.82rem; color: #ccc; margin-bottom: 4px; }
.field-group .req  { color: var(--color-teal, #1abc9c); }
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  background: #111;
  border: 1px solid #333;
  border-radius: 4px;
  color: #eee;
  padding: 8px 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.field-group textarea { resize: vertical; }
.field-hint { font-size: 0.75rem; color: #666; display: block; margin-top: 3px; }
.char-counter { text-align: right; }

.share-spec-preview {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 6px;
}
.spec-row { font-size: 0.78rem; color: #aaa; }
.spec-row strong { display: block; color: #eee; font-size: 0.88rem; }

.form-error {
  background: #3b1111;
  border: 1px solid #c0392b;
  color: #e74c3c;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.spinner { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

#share-success { text-align: center; padding: 12px 0; }
#share-success .success-icon { font-size: 2.5rem; margin-bottom: 8px; }
#share-success h3 { color: var(--color-teal, #1abc9c); margin: 0 0 8px; }
#share-success p  { color: #aaa; font-size: 0.88rem; margin: 4px 0; }

/* ── Your Uploads Modal ──────────────────────────────────────────────────── */
.yu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #2a2a2a;
}
.yu-row:last-child { border-bottom: none; }
.yu-info { flex: 1; min-width: 0; }
.yu-title {
  display: block;
  font-size: 0.92rem;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yu-date { font-size: 0.75rem; color: #777; }
.yu-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-sm { padding: 4px 10px; font-size: 0.78rem; border-radius: 4px; }
.btn-danger {
  background: #8b1a1a;
  color: #fff;
  border: 1px solid #c0392b;
}
.btn-danger:hover { background: #c0392b; }

/* ── Detail Modal ──────────────────────────────────────────────────────── */
.detail-modal-box { max-width: 680px; max-height: 90vh; overflow-y: auto; }
.detail-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px; }
.detail-header-text { flex:1; min-width:0; }
.detail-header-actions { flex-shrink:0; }
.detail-top-row { display:flex; gap:16px; margin-bottom:16px; }
.detail-thumb { width:140px; flex-shrink:0; }
.detail-specs { flex:1; min-width:0; }
.spec-row-detail { display:flex; justify-content:space-between; padding:4px 0; border-bottom:1px solid #222; font-size:.85rem; }
.spec-label { color:#888; }
.spec-value { color:#ddd; font-weight:600; }
.detail-social { display:flex; align-items:center; gap:12px; margin-top:10px; font-size:.85rem; color:#aaa; }
.detail-section-title { font-size:1rem; color:#eee; margin:20px 0 10px; border-bottom:1px solid #2a2a2a; padding-bottom:6px; }
.detail-section-subtitle { font-size:.88rem; color:#bbb; margin:16px 0 8px; }
.review-count-badge { font-size:.8rem; color:#777; font-weight:400; }
.card-desc-preview { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }

/* ── Reviews ───────────────────────────────────────────────────────────── */
.review-card { padding:10px 0; border-bottom:1px solid #1e1e1e; }
.review-card:last-child { border-bottom:none; }
.review-header { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:4px; }
.review-nick  { font-weight:700; font-size:.88rem; color:#eee; }
.review-stars { color:#f1c40f; font-size:.9rem; letter-spacing:1px; }
.review-date  { font-size:.75rem; color:#666; margin-left:auto; }
.review-comment { font-size:.85rem; color:#bbb; margin:0; }
.review-loading { color:#666; font-size:.85rem; padding:8px 0; }
.review-form-wrap { margin-top:20px; padding-top:16px; border-top:1px solid #2a2a2a; }
.star-picker { display:flex; align-items:center; gap:4px; margin-top:6px; }
.star-btn { background:none; border:none; cursor:pointer; font-size:1.4rem; color:#444; padding:0 2px; line-height:1; transition:color .15s; }
.star-btn.active, .star-btn:hover ~ .star-btn { color:#f1c40f; }
.star-btn:hover, .star-btn:focus { color:#f1c40f; outline:none; }
.star-label { font-size:.8rem; color:#888; margin-left:6px; }
.btn-outline { background:transparent; border:1px solid #555; color:#aaa; }
.btn-outline:hover { border-color:#1abc9c; color:#1abc9c; }

/* ── Ranking page ──────────────────────────────────────────────────────── */
.ranking-controls { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.rank-row { display:flex; align-items:center; gap:14px; padding:14px 16px; background:#111; border-radius:8px; margin-bottom:8px; }
.rank-medal { font-size:1.5rem; flex-shrink:0; width:36px; text-align:center; }
.rank-thumb { width:64px; height:64px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.rank-thumb-svg { width:64px; height:64px; display:flex; align-items:center; justify-content:center; }
.rank-info { flex:1; min-width:0; }
.rank-title { font-weight:700; font-size:.95rem; color:#eee; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rank-meta  { font-size:.78rem; color:#777; margin:2px 0; }
.rank-stats { display:flex; gap:12px; font-size:.8rem; color:#aaa; margin-top:4px; }
.rank-stars { color:#f1c40f; font-size:.8rem; }
.rank-actions { display:flex; flex-direction:column; gap:6px; flex-shrink:0; }
.ranking-loading { color:#666; padding:24px; text-align:center; }

/* ── Ranking widget (index.html) ───────────────────────────────────────── */
.ranking-widget { padding:16px; margin-bottom:4px; }
.ranking-widget-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.ranking-widget-title { font-size:.92rem; font-weight:700; color:#111; }
.ranking-widget-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.rw-card { position:relative; display:flex; flex-direction:column; min-height:0; overflow:hidden; background:#111; border:1px solid #2a2a2a; border-radius:6px; color:inherit; transition:transform .15s, border-color .15s, background .15s; }
.rw-card:hover { transform:translateY(-2px); border-color:#56c5cf; background:#151515; }
.rw-rank { position:absolute; top:8px; left:8px; z-index:2; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#d7352a; color:#fff; font-size:.82rem; font-weight:800; border:2px solid #111; }
.rw-preview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:8px; background:#fff; border-bottom:1px solid #2a2a2a; }
.rw-preview-cell { position:relative; display:grid; place-items:center; min-height:88px; aspect-ratio:1.55 / 1; background:#fff; border:0; border-radius:0; padding:10px; }
.rw-thumb, .rw-side-svg { width:100%; height:68px; object-fit:contain; display:block; }
.rw-card-body { display:flex; flex-direction:column; gap:5px; padding:12px; flex:1; }
.rw-title { font-size:.94rem; font-weight:700; color:#f4f4f4; line-height:1.2; overflow-wrap:anywhere; }
.rw-meta { font-size:.72rem; color:#8e8e8e; }
.rw-specs { display:flex; flex-wrap:wrap; gap:5px; margin-top:2px; }
.rw-specs span { font-size:.68rem; color:#d6d6d6; background:#242424; border:1px solid #333; border-radius:4px; padding:2px 5px; }
.rw-stats { font-size:.78rem; color:#9fdce1; font-weight:700; }
.rw-actions { display:grid; grid-template-columns:1fr 1fr; gap:6px; margin-top:8px; }
.rw-actions .btn { display:flex; align-items:center; justify-content:center; width:100%; min-height:30px; padding:8px 10px; text-align:center; white-space:nowrap; }
.ranking-sample-note { grid-column:1 / -1; margin:0 2px; font-size:.72rem; color:#777; }
@media (max-width:760px) {
  .ranking-widget-list { grid-template-columns:1fr; }
  .rw-card { min-height:0; }
  .rw-card-body { min-width:0; }
  .rw-preview-cell { min-height:96px; }
}

/* ── Instagram Gallery (#44-45) ──────────────────────────── */
.ig-cta-panel { padding:28px 24px; }
.ig-cta-inner { display:flex; gap:20px; align-items:flex-start; }
.ig-cta-icon { font-size:2.5rem; flex-shrink:0; line-height:1; }
.ig-cta-title { font-size:1.25rem; font-weight:700; margin:0 0 8px; }
.btn-ig { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); color:#fff; border:none; }
.btn-ig:hover { opacity:.88; }
.ig-cta-hashtag { display:inline-flex; align-items:center; gap:6px; background:#1a1a1a; border:1px solid #333; border-radius:20px; padding:6px 14px; font-size:.875rem; font-weight:600; color:#ccc; text-decoration:none; transition:border-color .15s,color .15s; }
.ig-cta-hashtag:hover { border-color:#888; color:#fff; }
/* Index page Instagram CTA banner */
.ig-index-banner { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:20px 24px; background:#111; border:1px solid #2a2a2a; border-radius:10px; }
.ig-index-banner-text h3 { margin:0 0 4px; font-size:1rem; font-weight:700; }
.ig-index-banner-text p { margin:0; font-size:.85rem; color:#999; }
@media (max-width:600px) { .ig-cta-inner { flex-direction:column; } .ig-index-banner { flex-direction:column; align-items:flex-start; } }

/* ── SEO Article Pages (#46-50) ──────────────────────────── */
.article-page { max-width:760px; margin:0 auto; }
.article-header { padding:28px 24px 24px; }
.article-breadcrumb { font-size:.78rem; color:#777; margin:0 0 8px; }
.article-breadcrumb a { color:#888; text-decoration:none; }
.article-breadcrumb a:hover { color:#ccc; }
.article-title { font-size:clamp(1.4rem,4vw,2rem); font-weight:800; margin:0 0 8px; line-height:1.2; }
.article-subtitle { color:#aaa; font-size:.95rem; margin:0; }
.article-body { padding:4px 0 40px; }
.article-body h2 { font-size:1.25rem; font-weight:700; margin:32px 0 12px; border-bottom:1px solid #222; padding-bottom:6px; }
.article-body h3 { font-size:1rem; font-weight:600; margin:20px 0 8px; color:#ccc; }
.article-body p { color:#ccc; line-height:1.7; margin:0 0 14px; }
.article-body ul, .article-body ol { color:#ccc; line-height:1.7; margin:0 0 14px; padding-left:24px; }
.article-body li { margin-bottom:6px; }
.article-callout { background:#1a2a1a; border-left:3px solid #4caf50; padding:14px 16px; border-radius:0 6px 6px 0; margin:20px 0; color:#ccc; font-size:.9rem; }
.article-table-wrap { overflow-x:auto; margin:16px 0 24px; }
.article-table { width:100%; border-collapse:collapse; font-size:.85rem; }
.article-table th { background:#1a1a1a; color:#bbb; font-weight:600; padding:10px 12px; text-align:left; border-bottom:2px solid #333; }
.article-table td { padding:9px 12px; border-bottom:1px solid #222; color:#ccc; }
.article-table tr:last-child td { border-bottom:none; }
.faq-block { margin:24px 0; }
.faq-item { border:1px solid #222; border-radius:6px; margin-bottom:8px; overflow:hidden; }
.faq-item summary.faq-q { padding:12px 16px; cursor:pointer; font-weight:600; font-size:.9rem; color:#ddd; list-style:none; display:flex; justify-content:space-between; }
.faq-item summary.faq-q::after { content:'＋'; color:#666; flex-shrink:0; }
.faq-item[open] summary.faq-q::after { content:'－'; }
.faq-a { padding:4px 16px 14px; color:#aaa; font-size:.875rem; line-height:1.65; margin:0; }
.article-cta-row { display:flex; gap:10px; flex-wrap:wrap; margin:32px 0 16px; }
.email-reveal { display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:8px 12px; border:2px solid #111; border-radius:6px; background:#fff; color:#111; font-family:var(--font-display); font-size:.95rem; text-transform:uppercase; cursor:pointer; }
.email-reveal:hover { background:#f1f1f1; }

/* ── Guides index ───────────────────────────────────────── */
.guides-hero { margin-bottom:18px; padding:30px 28px; }
.guides-hero h1 { font-family:var(--font-display); font-size:clamp(2.1rem,6vw,4.4rem); line-height:.96; margin:0 0 12px; text-transform:uppercase; }
.guides-hero p:not(.eyebrow) { max-width:760px; color:#4c4c4c; line-height:1.55; margin:0 0 18px; }
.guides-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.guide-card { display:flex; flex-direction:column; min-height:210px; padding:18px; background:#111; color:#f4f4f4; border:2px solid #111; border-radius:6px; transition:transform .15s,border-color .15s,background .15s; }
.guide-card:hover { transform:translateY(-2px); border-color:#56c5cf; background:#151515; }
.guide-card-featured { grid-column:span 2; background:#fff; color:#111; }
.guide-card-featured:hover { background:#f6f6f6; }
.guide-card-kicker { width:max-content; margin-bottom:14px; padding:4px 8px; border-radius:4px; background:#e21b1b; color:#fff; font-family:var(--font-display); font-size:.82rem; text-transform:uppercase; letter-spacing:.03em; }
.guide-card-title { font-family:var(--font-display); font-size:clamp(1.45rem,3vw,2rem); line-height:.95; text-transform:uppercase; margin-bottom:12px; }
.guide-card-copy { color:#b9b9b9; line-height:1.45; font-size:.92rem; }
.guide-card-featured .guide-card-copy { color:#4f4f4f; }
.guide-card-meta { margin-top:auto; padding-top:18px; color:#9fdce1; font-weight:800; font-size:.78rem; text-transform:uppercase; }
.guide-card-featured .guide-card-meta { color:#007f88; }
@media (max-width:860px) {
  .guides-grid { grid-template-columns:1fr; }
  .guide-card-featured { grid-column:auto; }
}
