:root {
  --d0fc-card-shadow: 0 10px 26px rgba(0,0,0,.08);
  --d0fc-card-shadow-hover: 0 16px 42px rgba(0,0,0,.14);
  --d0fc-ring: 0 0 0 3px color-mix(in srgb, var(--c-accent, #ff6a00) 24%, transparent);
}

.d0fc-community-page .site-main.d0fc-main,
.d0fc-main {
  background: var(--c-bg, #f1f1f1);
  color: var(--c-text, #3a3a3a);
  font-family: var(--font-body, inherit);
  min-height: 65vh;
}

.d0fc-container {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.d0fc-hero {
  border-bottom: 1.5px solid var(--c-border, #d0d0d0);
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--c-accent, #ff6a00) 14%, transparent) 0 28%, transparent 42%),
    linear-gradient(135deg, var(--c-surface, #fff), color-mix(in srgb, var(--c-bg, #f1f1f1) 74%, var(--c-surface, #fff)));
}

.d0fc-hero .d0fc-container {
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding-top: 42px;
  padding-bottom: 42px;
}

.d0fc-hero__content h1 {
  margin: 0;
  color: var(--c-dark, #2a2a2a);
  font-family: var(--font-display, inherit);
  font-size: clamp(38px, 5vw, 78px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.d0fc-hero__content p:not(.d0fc-kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--c-muted, #777);
  font-size: 17px;
}

.d0fc-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  line-height: 1.2;
  color: var(--c-accent, #ff6a00);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

.d0fc-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.d0fc-wrap {
  padding: 28px 0 56px;
}

.d0fc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px;
  border: 1.5px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-lg, 10px);
  background: var(--c-surface, #fff);
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}

.d0fc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--radius-sm, 5px);
  color: var(--c-text, #3a3a3a);
  font-family: var(--font-display, inherit);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.d0fc-tab:hover,
.d0fc-tab.is-active {
  background: var(--c-accent, #ff6a00);
  color: var(--c-white, #fff);
  transform: translateY(-1px);
}

.d0fc-panel {
  position: relative;
  padding: 24px;
  border: 1.5px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-xl, 14px);
  background: var(--c-surface, #fff);
  box-shadow: var(--d0fc-card-shadow);
  overflow: hidden;
}

.d0fc-panel::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent, #ff6a00), color-mix(in srgb, var(--c-accent, #ff6a00) 30%, transparent));
  opacity: .95;
}

.d0fc-panel + .d0fc-panel,
.d0fc-grid + .d0fc-panel,
.d0fc-panel + .d0fc-grid {
  margin-top: 22px;
}

.d0fc-panel__head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.d0fc-panel__head h2,
.d0fc-panel__head h3 {
  margin: 0;
  color: var(--c-dark, #2a2a2a);
  font-family: var(--font-display, inherit);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.d0fc-panel__head h2 { font-size: clamp(28px, 3vw, 44px); }
.d0fc-panel__head h3 { font-size: 26px; }
.d0fc-panel__head p:not(.d0fc-kicker) { margin: 8px 0 0; color: var(--c-muted, #777); }
.d0fc-panel__head--split { align-items: center; }

.d0fc-grid {
  display: grid;
  gap: 22px;
}

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

.d0fc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.d0fc-stat {
  padding: 20px;
  border: 1.5px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-lg, 10px);
  background: var(--c-surface, #fff);
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.d0fc-stat strong {
  display: block;
  color: var(--c-accent, #ff6a00);
  font-family: var(--font-display, inherit);
  font-size: 42px;
  line-height: .9;
}

.d0fc-stat span {
  display: block;
  margin-top: 8px;
  color: var(--c-muted, #777);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  text-transform: uppercase;
}

.d0fc-list {
  display: grid;
  gap: 14px;
}

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

.d0fc-list--compact {
  grid-template-columns: 1fr;
}

.d0fc-card {
  display: flex;
  min-width: 0;
  border: 1.5px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-lg, 10px);
  background: color-mix(in srgb, var(--c-surface, #fff) 93%, var(--c-bg, #f1f1f1));
  overflow: hidden;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.d0fc-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--c-accent, #ff6a00) 55%, var(--c-border, #d0d0d0));
  box-shadow: var(--d0fc-card-shadow-hover);
}

.d0fc-list--cards .d0fc-card {
  flex-direction: column;
}

.d0fc-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--c-bg, #f1f1f1);
  overflow: hidden;
}

.d0fc-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.d0fc-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 18px;
}

.d0fc-card__meta,
.d0fc-card__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--c-muted, #777);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.d0fc-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--c-accent, #ff6a00) 38%, var(--c-border, #d0d0d0));
  border-radius: 999px;
  background: var(--c-accent-light, rgba(255,106,0,.1));
  color: var(--c-accent, #ff6a00);
  font-weight: 700;
}

.d0fc-card h3 {
  margin: 12px 0 8px;
  color: var(--c-dark, #2a2a2a);
  font-family: var(--font-display, inherit);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.d0fc-card h3 a:hover {
  color: var(--c-accent, #ff6a00);
}

.d0fc-card p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--c-muted, #777);
}

.d0fc-card__foot {
  padding-top: 12px;
  border-top: 1px solid var(--c-border-soft, #e6e6e6);
}

.d0fc-btn,
.d0fc-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm, 5px);
  cursor: pointer;
  font-family: var(--font-display, inherit);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.d0fc-btn:hover,
.d0fc-form button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.d0fc-btn--primary,
.d0fc-form button[type="submit"] {
  background: var(--c-accent, #ff6a00);
  color: var(--c-white, #fff);
  border-color: var(--c-accent, #ff6a00);
}

.d0fc-btn--primary:hover,
.d0fc-form button[type="submit"]:hover {
  background: var(--c-accent2, #e65f00);
  color: var(--c-white, #fff);
}

.d0fc-btn--ghost {
  background: var(--c-surface, #fff);
  color: var(--c-text, #3a3a3a);
  border-color: var(--c-border2, #bbb);
}

.d0fc-btn--ghost:hover {
  border-color: var(--c-accent, #ff6a00);
  color: var(--c-accent, #ff6a00);
}

.d0fc-link {
  color: var(--c-accent, #ff6a00);
  font-family: var(--font-display, inherit);
  font-weight: 800;
  text-transform: uppercase;
}

.d0fc-form {
  display: grid;
  gap: 16px;
}

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

.d0fc-form label {
  display: grid;
  gap: 7px;
  color: var(--c-dark, #2a2a2a);
  font-weight: 700;
}

.d0fc-form small,
.d0fc-muted {
  color: var(--c-muted, #777);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
}

.d0fc-form input[type="text"],
.d0fc-form input[type="email"],
.d0fc-form input[type="file"],
.d0fc-form input[type="number"],
.d0fc-form textarea,
.d0fc-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--c-border2, #bbb);
  border-radius: var(--radius-sm, 5px);
  background: var(--c-bg, #f1f1f1);
  color: var(--c-text, #3a3a3a);
  font: inherit;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.d0fc-form textarea {
  resize: vertical;
  line-height: 1.55;
}

.d0fc-form input:focus,
.d0fc-form textarea:focus,
.d0fc-form select:focus {
  border-color: var(--c-accent, #ff6a00);
  box-shadow: var(--d0fc-ring);
  background: var(--c-surface, #fff);
}

.d0fc-form__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  padding-top: 4px;
}

.d0fc-single__head,
.d0fc-profile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.d0fc-single__head h2,
.d0fc-profile-head h2 {
  margin: 0;
  color: var(--c-dark, #2a2a2a);
  font-family: var(--font-display, inherit);
  font-size: clamp(32px, 4vw, 58px);
  line-height: .95;
  text-transform: uppercase;
}

.d0fc-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.d0fc-single__actions button,
.d0fc-comment__actions button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1.2px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-sm, 5px);
  background: var(--c-surface, #fff);
  color: var(--c-text, #3a3a3a);
  cursor: pointer;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.d0fc-single__actions button:hover,
.d0fc-comment__actions button:hover,
.d0fc-single__actions button.is-done,
.d0fc-comment__actions button.is-done {
  border-color: var(--c-accent, #ff6a00);
  background: var(--c-accent-light, rgba(255,106,0,.1));
  color: var(--c-accent, #ff6a00);
}

.d0fc-single__image {
  margin: 18px 0;
  overflow: hidden;
  border: 1.5px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-lg, 10px);
  background: var(--c-bg, #f1f1f1);
}

.d0fc-single__image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.d0fc-content {
  color: var(--c-text, #3a3a3a);
  font-size: 16px;
}

.d0fc-content p:first-child { margin-top: 0; }
.d0fc-content p:last-child { margin-bottom: 0; }

.d0fc-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.d0fc-specs div {
  padding: 12px;
  border: 1px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-md, 8px);
  background: var(--c-bg, #f1f1f1);
}

.d0fc-specs span {
  display: block;
  color: var(--c-muted, #777);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
}

.d0fc-specs strong {
  display: block;
  margin-top: 4px;
  color: var(--c-dark, #2a2a2a);
}

.d0fc-products {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border-soft, #e6e6e6);
}

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

.d0fc-product {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-md, 8px);
  background: var(--c-bg, #f1f1f1);
  color: var(--c-text, #3a3a3a);
}

.d0fc-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.d0fc-product span {
  font-weight: 700;
  line-height: 1.25;
}

.d0fc-product strong {
  color: var(--c-accent, #ff6a00);
}

.d0fc-comments .d0fc-panel__head { margin-bottom: 14px; }

.d0fc-comment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.d0fc-comment {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.d0fc-comment__avatar img {
  border-radius: 50%;
}

.d0fc-comment__body {
  padding: 14px;
  border: 1px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-md, 8px);
  background: var(--c-bg, #f1f1f1);
}

.d0fc-comment__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.d0fc-comment__head strong {
  color: var(--c-dark, #2a2a2a);
}

.d0fc-comment__head span {
  color: var(--c-muted, #777);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}

.d0fc-comment__text p {
  margin: 0 0 8px;
}

.d0fc-comment__text p:last-child { margin-bottom: 0; }

.d0fc-comment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.d0fc-comment__children {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.d0fc-comment.depth-3 .d0fc-comment__children,
.d0fc-comment.depth-4 .d0fc-comment__children,
.d0fc-comment.depth-5 .d0fc-comment__children {
  margin-left: 0;
}

.d0fc-inline-reply {
  margin-top: 10px;
}

.d0fc-inline-reply .d0fc-form {
  padding: 12px;
  border: 1px dashed var(--c-accent, #ff6a00);
  border-radius: var(--radius-md, 8px);
  background: var(--c-surface, #fff);
}

.d0fc-empty,
.d0fc-login-gate {
  padding: 24px;
  border: 1.5px dashed var(--c-border2, #bbb);
  border-radius: var(--radius-lg, 10px);
  background: var(--c-bg, #f1f1f1);
  text-align: center;
}

.d0fc-empty h2,
.d0fc-empty h3,
.d0fc-login-gate h2 {
  margin: 0 0 8px;
  font-family: var(--font-display, inherit);
  text-transform: uppercase;
  color: var(--c-dark, #2a2a2a);
}

.d0fc-empty p,
.d0fc-login-gate p {
  margin: 0 0 14px;
  color: var(--c-muted, #777);
}

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

.d0fc-steps > div {
  padding: 18px;
  border: 1.5px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-lg, 10px);
  background: var(--c-bg, #f1f1f1);
}

.d0fc-steps strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-accent, #ff6a00);
  color: var(--c-white, #fff);
  font-family: var(--font-display, inherit);
}

.d0fc-steps h3 {
  margin: 14px 0 6px;
  color: var(--c-dark, #2a2a2a);
  font-family: var(--font-display, inherit);
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.d0fc-steps p {
  margin: 0;
  color: var(--c-muted, #777);
}

.d0fc-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
}

.d0fc-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  border: 1.2px solid var(--c-border, #d0d0d0);
  border-radius: var(--radius-sm, 5px);
  background: var(--c-surface, #fff);
}

.d0fc-pagination a.is-active,
.d0fc-pagination a:hover {
  background: var(--c-accent, #ff6a00);
  border-color: var(--c-accent, #ff6a00);
  color: var(--c-white, #fff);
}

.d0fc-floating-notice {
  position: fixed;
  z-index: var(--z-toast, 999999);
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 18px);
  right: 18px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  border-radius: var(--radius-md, 8px);
  background: var(--c-dark, #2a2a2a);
  color: var(--c-white, #fff);
  box-shadow: 0 12px 32px rgba(0,0,0,.22);
  animation: d0fcNotice .25s ease both;
}

@keyframes d0fcNotice {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.d0fc-is-loading {
  opacity: .65;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .d0fc-grid--2,
  .d0fc-list--cards,
  .d0fc-products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .d0fc-specs,
  .d0fc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .d0fc-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .d0fc-hero .d0fc-container {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 0;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .d0fc-hero__actions {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .d0fc-hero__actions .d0fc-btn {
    flex: 1 1 180px;
  }

  .d0fc-wrap {
    padding-top: 18px;
  }

  .d0fc-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 6px;
    scrollbar-width: thin;
  }

  .d0fc-tab {
    white-space: nowrap;
  }

  .d0fc-stats,
  .d0fc-grid--2,
  .d0fc-list--cards,
  .d0fc-form-grid,
  .d0fc-products__grid,
  .d0fc-specs,
  .d0fc-steps {
    grid-template-columns: 1fr;
  }

  .d0fc-panel {
    padding: 18px;
    border-radius: var(--radius-lg, 10px);
  }

  .d0fc-panel__head,
  .d0fc-panel__head--split,
  .d0fc-single__head,
  .d0fc-profile-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .d0fc-single__actions {
    justify-content: flex-start;
  }

  .d0fc-comment {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .d0fc-comment__avatar img {
    width: 34px;
    height: 34px;
  }

  .d0fc-comment__children {
    margin-left: -34px;
  }
}
