/*
Theme Name: BaroCalc
Theme URI: https://바로계산.com
Author: BaroCalc
Description: 검색과 입력을 중심으로 설계된 바로계산 전용 블록 테마.
Version: 1.0.6
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: barocalc
*/

:root {
  --bc-blue: #1463ff;
  --bc-blue-dark: #0d49c8;
  --bc-blue-soft: #edf4ff;
  --bc-ink: #101828;
  --bc-muted: #5d697a;
  --bc-line: #dfe5ee;
  --bc-canvas: #f6f8fb;
  --bc-card: #ffffff;
  --bc-success: #087a55;
  --bc-danger: #c52a38;
  --bc-radius-sm: 10px;
  --bc-radius: 16px;
  --bc-radius-lg: 24px;
  --bc-shadow: 0 14px 38px rgba(20, 45, 82, 0.08);
  --bc-display: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --bc-body: "SUIT Variable", SUIT, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bc-canvas);
  color: var(--bc-ink);
  font-family: var(--bc-body);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .bc-site-header {
  top: 32px;
}

a {
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--bc-blue);
  outline-offset: 3px;
}

.bc-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 229, 238, 0.92);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.bc-header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 68px;
  margin-inline: auto;
}

.bc-header-inner .wp-block-site-title {
  margin: 0;
  font-family: var(--bc-display);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.bc-header-inner .wp-block-site-title a {
  display: inline-flex;
  gap: 0.3em;
  align-items: center;
  color: var(--bc-ink);
  text-decoration: none;
  white-space: nowrap;
}

.bc-header-inner .wp-block-site-title a::after {
  display: inline-block;
  width: 0.78em;
  height: 0.66em;
  flex: 0 0 auto;
  background: var(--bc-blue);
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M1.5 6.2 5.15 9.7 12.5 2.25' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M1.5 6.2 5.15 9.7 12.5 2.25' fill='none' stroke='black' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-0.05em);
}

.bc-header-inner .wp-block-navigation {
  font-size: 0.88rem;
  font-weight: 650;
}

.bc-header-inner .wp-block-navigation__container {
  gap: clamp(14px, 2.1vw, 28px);
}

.bc-header-inner .wp-block-navigation-item__content {
  color: #344054;
}

.bc-header-inner .wp-block-navigation-item__content:hover {
  color: var(--bc-blue);
}

.bc-search-link {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--bc-line);
  border-radius: 50%;
  color: var(--bc-ink);
  place-items: center;
}

.bc-search-link:hover {
  border-color: var(--bc-blue);
  background: var(--bc-blue-soft);
  color: var(--bc-blue);
}

.bc-main {
  min-height: calc(100vh - 238px);
}

.bc-main > .wp-block-post-content {
  margin-top: 0;
}

.bc-site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--bc-line);
  background: #fff;
}

.bc-site-footer > .wp-block-group {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.bc-site-footer .wp-block-site-title {
  font-size: 1rem;
  font-weight: 800;
}

.bc-footer-copy,
.bc-footer-note {
  color: var(--bc-muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.bc-footer-links {
  gap: 18px;
  font-size: 0.82rem;
}

.bc-footer-links a {
  color: #475467;
  text-decoration: none;
}

.bc-page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.bc-hero {
  position: relative;
  padding: 96px 0 70px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
}

.bc-hero::before {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 700px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 99, 255, 0.11), rgba(20, 99, 255, 0) 68%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.bc-hero-copy {
  position: relative;
  max-width: 790px;
  margin: 0 auto;
  text-align: center;
}

.bc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--bc-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bc-eyebrow::before {
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
}

.bc-hero h1 {
  margin: 0;
  font-family: var(--bc-display);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.bc-hero h1 em {
  position: relative;
  color: var(--bc-blue);
  font-style: normal;
}

.bc-hero h1 em::after {
  position: absolute;
  right: 0.04em;
  bottom: -0.08em;
  width: 0.3em;
  height: 0.13em;
  border-radius: 99px;
  background: var(--bc-blue);
  content: "";
}

.bc-hero-subtitle {
  margin: 18px auto 34px;
  color: var(--bc-muted);
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.7;
}

.bc-tool-search {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.bc-search-box {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 11px 10px 22px;
  border: 2px solid var(--bc-blue);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(20, 99, 255, 0.14);
}

.bc-search-box svg {
  color: #8290a5;
}

.bc-search-box input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bc-ink);
  font-size: 1.05rem;
  font-weight: 650;
}

.bc-search-box input::placeholder {
  color: #667085;
  font-weight: 500;
}

.bc-search-box:focus-within {
  outline: 3px solid var(--bc-blue-dark);
  outline-offset: 3px;
}

.bc-search-submit,
.bc-primary-button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--bc-blue);
  box-shadow: 0 6px 16px rgba(20, 99, 255, 0.18);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.bc-search-submit:hover,
.bc-primary-button:hover {
  background: var(--bc-blue-dark);
}

.bc-primary-button:disabled {
  background: #6f9cf4;
  box-shadow: none;
  cursor: wait;
}

.bc-search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--bc-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--bc-shadow);
  text-align: left;
}

.bc-search-results[hidden] {
  display: none;
}

.bc-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eef1f5;
  color: var(--bc-ink);
  text-decoration: none;
}

.bc-search-result:last-child {
  border-bottom: 0;
}

.bc-search-result:hover,
.bc-search-result[aria-selected="true"] {
  background: var(--bc-blue-soft);
}

.bc-search-result small {
  color: var(--bc-muted);
}

.bc-search-empty {
  padding: 20px;
  color: var(--bc-muted);
  text-align: center;
}

.bc-popular-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 20px;
}

.bc-chip {
  padding: 8px 13px;
  border: 1px solid var(--bc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #475467;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none;
}

.bc-chip:hover {
  border-color: #a7c3ff;
  color: var(--bc-blue);
}

.bc-section {
  padding: 70px 0 0;
}

.bc-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.bc-section-heading h2 {
  margin: 0;
  font-family: var(--bc-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.045em;
}

.bc-section-heading p {
  margin: 0;
  color: var(--bc-muted);
  font-size: 0.9rem;
}

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

.bc-category-card {
  min-height: 226px;
  padding: 25px;
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  background: #fff;
  box-shadow: 0 4px 16px rgba(34, 55, 86, 0.035);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.bc-category-card:hover {
  border-color: #a9c4fb;
  box-shadow: var(--bc-shadow);
  transform: translateY(-3px);
}

.bc-category-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 800;
}

.bc-category-icon {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bc-blue-soft);
  color: var(--bc-blue);
  place-items: center;
}

.bc-tool-links {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bc-tool-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #475467;
  font-size: 0.86rem;
  text-decoration: none;
}

.bc-tool-links a::after {
  color: #a3adbb;
  content: "›";
}

.bc-tool-links a:hover {
  color: var(--bc-blue);
}

.bc-category-more {
  display: inline-block;
  margin-top: 13px;
  color: var(--bc-blue);
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.bc-tool-page,
.bc-category-page,
.bc-policy-page {
  padding-top: 40px;
}

.bc-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--bc-muted);
  font-size: 0.76rem;
}

.bc-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.bc-breadcrumbs a:hover {
  color: var(--bc-blue);
}

.bc-tool-header h1,
.bc-category-header h1,
.bc-policy-page h1 {
  margin: 0;
  font-family: var(--bc-display);
  font-size: clamp(2rem, 5vw, 3.15rem);
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.bc-tool-header p,
.bc-category-header p {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--bc-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.bc-calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 30px;
}

.bc-local-processing {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 24px 0 -10px;
  padding: 13px 15px;
  border: 1px solid #c5d8fb;
  border-radius: 12px;
  background: var(--bc-blue-soft);
  color: #24446f;
  font-size: 0.8rem;
  line-height: 1.55;
}

.bc-local-processing svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--bc-blue-dark);
}

.bc-external-processing {
  border-color: #f1cf87;
  background: #fff8e8;
  color: #614818;
}

.bc-external-processing svg {
  color: #9a6200;
}

.bc-external-processing a {
  color: #764b00;
  font-weight: 750;
}

.bc-postcode-panel {
  grid-column: 1 / -1;
  overflow: hidden;
  margin-top: 4px;
  border: 1px solid #b9c7db;
  border-radius: 14px;
  background: #fff;
}

.bc-postcode-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--bc-line);
  background: #f8fafc;
}

.bc-postcode-panel-header h3,
.bc-postcode-panel-header p {
  margin: 0;
}

.bc-postcode-panel-header h3 {
  font-size: 0.96rem;
}

.bc-postcode-panel-header p {
  color: var(--bc-muted);
  font-size: 0.76rem;
}

.bc-postcode-close {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 7px 11px;
  border: 1px solid #cdd6e4;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.bc-postcode-frame {
  width: 100%;
  height: 500px;
}

.bc-calculator-card,
.bc-result-card,
.bc-info-card,
.bc-related-card,
.bc-category-list-card,
.bc-policy-card {
  border: 1px solid var(--bc-line);
  border-radius: var(--bc-radius);
  background: #fff;
}

.bc-calculator-card {
  padding: 26px;
  border-color: #8fb4ff;
  box-shadow: 0 10px 30px rgba(20, 99, 255, 0.08);
}

.bc-result-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.bc-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 0.86rem;
  font-weight: 800;
}

.bc-card-label::before {
  width: 4px;
  height: 14px;
  border-radius: 99px;
  background: var(--bc-blue);
  content: "";
}

.bc-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.bc-field-grid[data-columns="1"] {
  grid-template-columns: 1fr;
}

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

.bc-field--wide {
  grid-column: 1 / -1;
}

.bc-field label,
.bc-field legend {
  color: #344054;
  font-size: 0.82rem;
  font-weight: 750;
}

.bc-input-wrap {
  position: relative;
}

.bc-field input,
.bc-field select,
.bc-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd4e1;
  border-radius: 11px;
  background: #fff;
  color: var(--bc-ink);
}

.bc-field input,
.bc-field select {
  height: 54px;
  padding: 0 14px;
}

.bc-field input[type="number"] {
  padding-right: 46px;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.bc-field textarea {
  min-height: 165px;
  padding: 14px;
  line-height: 1.6;
  resize: vertical;
}

.bc-file-drop {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1.5px dashed #9bb9ed;
  border-radius: 13px;
  background: #f8fbff;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.bc-file-drop:hover,
.bc-file-drop:focus-within,
.bc-file-drop--selected {
  border-color: var(--bc-blue);
  background: var(--bc-blue-soft);
}

.bc-file-drop:focus-within {
  outline: 3px solid var(--bc-blue);
  outline-offset: 2px;
}

.bc-file-drop input[type="file"] {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.bc-file-drop-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--bc-blue);
  font-size: 1.15rem;
  font-weight: 850;
  place-items: center;
  box-shadow: 0 4px 12px rgba(20, 99, 255, 0.1);
}

.bc-file-drop-copy {
  display: grid;
  gap: 3px;
  color: #344054;
  font-size: 0.82rem;
}

.bc-file-drop-copy strong {
  color: var(--bc-blue-dark);
}

.bc-file-drop-copy small {
  color: var(--bc-muted);
  font-size: 0.72rem;
}

.bc-file-selection {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #475467;
  font-size: 0.75rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bc-field input:focus,
.bc-field select:focus,
.bc-field textarea:focus {
  border-color: var(--bc-blue);
  outline: 3px solid var(--bc-blue);
}

.bc-unit {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--bc-muted);
  font-size: 0.78rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.bc-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 20px;
  padding: 4px;
  border: 1px solid var(--bc-line);
  border-radius: 12px;
  background: var(--bc-canvas);
}

.bc-mode-tab {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #667085;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.bc-mode-tab[aria-pressed="true"] {
  background: var(--bc-blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(20, 99, 255, 0.18);
}

.bc-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bc-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475467;
  font-size: 0.82rem;
}

.bc-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--bc-blue);
}

.bc-form-error {
  min-height: 20px;
  margin: 13px 0 0;
  color: var(--bc-danger);
  font-size: 0.8rem;
}

.bc-transfer-note {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--bc-blue);
  border-radius: 4px 10px 10px 4px;
  background: var(--bc-blue-soft);
  color: #24446f;
  font-size: 0.78rem;
  font-weight: 700;
}

.bc-result-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.bc-result-row {
  display: flex;
  gap: 18px;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f4;
}

.bc-result-row dt {
  color: #667085;
  font-size: 0.82rem;
}

.bc-result-row dd {
  margin: 0;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  text-align: right;
}

.bc-result-output {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.bc-result-value {
  min-width: 0;
}

.bc-color-swatch {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cbd4e1, 0 3px 10px rgba(16, 24, 40, 0.12);
}

.bc-result-copy {
  min-height: 28px;
  padding: 4px 8px;
  flex: 0 0 auto;
  border: 1px solid #c8d8f8;
  border-radius: 7px;
  background: #fff;
  color: var(--bc-blue-dark);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 750;
}

.bc-result-copy:hover {
  border-color: var(--bc-blue);
  background: var(--bc-blue-soft);
}

.bc-result-row-actions {
  display: inline-flex;
  gap: 7px;
  flex: 0 0 auto;
}

.bc-result-download {
  display: inline-grid;
  min-width: 54px;
  min-height: 32px;
  padding: 4px 11px;
  box-sizing: border-box;
  place-items: center;
  border: 1px solid var(--bc-blue);
  border-radius: 8px;
  background: var(--bc-blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.bc-result-download:hover {
  background: var(--bc-blue-dark);
  color: #fff;
}

.bc-result-row--primary {
  margin-top: auto;
  padding-top: 22px;
  border-bottom: 0;
}

.bc-result-row--primary dt {
  color: var(--bc-ink);
  font-weight: 800;
}

.bc-result-row--primary dd {
  color: var(--bc-blue);
  font-family: var(--bc-display);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  letter-spacing: -0.035em;
}

.bc-result-row--long {
  display: grid;
}

.bc-result-row--long .bc-result-value {
  max-height: 230px;
  margin-top: 7px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

.bc-result-row--long .bc-result-output {
  align-items: flex-start;
  justify-content: flex-start;
}

.bc-result-row--media .bc-result-output {
  display: grid;
  width: 100%;
  gap: 11px;
}

.bc-result-row--media dd {
  width: 100%;
  margin-top: 0;
}

.bc-result-preview {
  width: 100%;
  max-height: 300px;
  box-sizing: border-box;
  border: 1px solid var(--bc-line);
  border-radius: 12px;
  background-color: #fff;
  background-image: linear-gradient(45deg, #f3f5f8 25%, transparent 25%), linear-gradient(-45deg, #f3f5f8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #f3f5f8 75%), linear-gradient(-45deg, transparent 75%, #f3f5f8 75%);
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-size: 12px 12px;
  object-fit: contain;
}

.bc-copy-button:disabled {
  border-color: var(--bc-line);
  color: #98a2b3;
  cursor: not-allowed;
}

.bc-copy-button {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  border: 1px solid #8fb4ff;
  border-radius: 11px;
  background: #fff;
  color: var(--bc-blue);
  cursor: pointer;
  font-weight: 800;
}

.bc-copy-button:hover {
  background: var(--bc-blue-soft);
}

.bc-next-panel[hidden] {
  display: none;
}

.bc-next-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1.58fr);
  gap: 22px;
  margin-top: 18px;
  padding: 24px 24px 24px 28px;
  overflow: hidden;
  border: 1px solid #a9c6ff;
  border-radius: var(--bc-radius);
  background: #f5f9ff;
  box-shadow: 0 10px 28px rgba(20, 99, 255, 0.07);
}

.bc-next-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--bc-blue);
  content: "";
}

.bc-next-heading {
  align-self: center;
}

.bc-next-kicker {
  margin: 0 0 6px;
  color: var(--bc-blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.bc-next-heading h2 {
  margin: 0;
  font-family: var(--bc-display);
  font-size: 1.18rem;
  letter-spacing: -0.035em;
}

.bc-next-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--bc-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.bc-next-actions {
  display: grid;
  gap: 9px;
}

.bc-next-action {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 13px 14px 13px 16px;
  border: 1px solid #d6e3fa;
  border-radius: 12px;
  background: #fff;
  color: var(--bc-ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.bc-next-action:hover {
  border-color: #8fb4ff;
  box-shadow: 0 7px 18px rgba(20, 99, 255, 0.09);
  transform: translateX(3px);
}

.bc-next-action-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bc-next-action-copy strong {
  font-size: 0.88rem;
  line-height: 1.4;
}

.bc-next-action-copy small {
  color: var(--bc-muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.bc-next-arrow {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--bc-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.bc-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.bc-info-card,
.bc-related-card {
  padding: 24px;
}

.bc-info-card h2,
.bc-related-card h2 {
  margin: 0 0 13px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.bc-info-card p {
  margin: 0;
  color: #526071;
  font-size: 0.86rem;
  line-height: 1.75;
}

.bc-notice {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f1f4f8;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.7;
}

.bc-category-header {
  padding: 24px 0 18px;
}

.bc-category-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 26px;
}

.bc-category-list-card {
  display: block;
  min-height: 150px;
  padding: 22px;
  color: var(--bc-ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.bc-category-list-card:hover {
  border-color: #8fb4ff;
  transform: translateY(-2px);
}

.bc-category-list-card h2 {
  margin: 0 0 9px;
  font-size: 1.02rem;
}

.bc-category-list-card p {
  margin: 0;
  color: var(--bc-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.bc-category-list-card span {
  display: inline-block;
  margin-top: 16px;
  color: var(--bc-blue);
  font-size: 0.78rem;
  font-weight: 750;
}

.bc-policy-page {
  max-width: 820px;
}

.bc-policy-card {
  margin-top: 28px;
  padding: clamp(24px, 5vw, 48px);
  color: #475467;
  line-height: 1.8;
}

.bc-policy-card h2 {
  margin: 32px 0 8px;
  color: var(--bc-ink);
  font-size: 1.15rem;
}

.bc-policy-card h2:first-child {
  margin-top: 0;
}

.bc-policy-card a {
  color: var(--bc-blue);
}

.bc-noscript {
  padding: 18px;
  border: 1px solid #f1b9bf;
  border-radius: 12px;
  background: #fff5f5;
  color: #8f1d2a;
}

@media (max-width: 900px) {
  .bc-category-grid,
  .bc-category-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bc-calculator-grid {
    grid-template-columns: 1fr;
  }

  .bc-result-card {
    min-height: 300px;
  }
}

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

  .bc-header-inner {
    min-height: 60px;
  }

  .bc-site-header .wp-block-navigation__responsive-container-open {
    display: flex;
  }

  .bc-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .bc-site-header .wp-block-navigation__responsive-container.is-menu-open {
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
  }

  .bc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: min(100% - 16px, 640px);
    margin-inline: auto;
    padding-top: 96px;
  }

  .bc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
  }

  .bc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100%;
  }

  .bc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    display: flex;
    width: 100%;
    min-height: 52px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    border: 1px solid var(--bc-line);
    border-radius: 10px;
    background: #fff;
    font-size: clamp(0.65rem, 2.8vw, 0.75rem);
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .bc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
  .bc-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
    border-color: var(--bc-blue);
    background: var(--bc-blue-soft);
    color: var(--bc-blue);
  }

  .bc-hero {
    padding: 68px 0 54px;
  }

  .bc-section {
    padding-top: 52px;
  }

  .bc-section-heading {
    display: block;
  }

  .bc-section-heading p {
    margin-top: 8px;
  }

  .bc-support-grid {
    grid-template-columns: 1fr;
  }

  .bc-next-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .bc-header-inner,
  .bc-site-footer > .wp-block-group {
    width: min(100% - 28px, 1120px);
  }

  .bc-page-shell {
    width: min(100% - 28px, 1120px);
  }

  .bc-search-box {
    grid-template-columns: 24px 1fr;
    gap: 11px;
    padding: 9px 14px;
  }

  .bc-search-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .bc-popular-row {
    justify-content: flex-start;
  }

  .bc-category-grid,
  .bc-category-tool-grid {
    grid-template-columns: 1fr;
  }

  .bc-category-card {
    min-height: 0;
  }

  .bc-tool-page,
  .bc-category-page,
  .bc-policy-page {
    padding-top: 26px;
  }

  .bc-calculator-card,
  .bc-result-card,
  .bc-info-card,
  .bc-related-card {
    padding: 20px;
  }

  .bc-field-grid {
    grid-template-columns: 1fr;
  }

  .bc-field--wide {
    grid-column: auto;
  }

  .bc-result-row {
    align-items: flex-start;
  }

  .bc-result-output {
    flex-wrap: wrap;
  }

  .bc-next-panel {
    padding: 20px 18px 20px 22px;
  }

  .bc-site-footer {
    margin-top: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
