.topbar__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.topbar__actions .button {
  min-height: 44px;
  padding-inline: 16px;
  font-size: 0.92rem;
}

.polish-home .official-masthead {
  padding: clamp(92px, 10vw, 132px) 0 clamp(48px, 7vw, 86px);
}

.polish-home .official-masthead__content {
  max-width: 900px;
}

.polish-hero-actions,
.polish-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
}

.polish-hero-actions .button {
  min-width: 180px;
}

.polish-hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.polish-hero-chip {
  padding: 14px 16px;
  border: 1px solid rgba(216, 224, 235, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 34px rgba(24, 59, 99, 0.06);
}

.polish-hero-chip strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
}

.polish-hero-chip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.polish-section {
  margin-top: clamp(42px, 7vw, 86px);
}

.polish-section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.45fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.polish-section__head h2 {
  margin: 8px 0 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.18;
}

.polish-section__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.polish-module-card {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.polish-module-card--split {
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.45fr);
  align-items: stretch;
}

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

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

.polish-feature-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(216, 224, 235, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 34px rgba(24, 59, 99, 0.06);
}

.polish-feature-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.72rem);
  line-height: 1.3;
}

.polish-feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.polish-feature-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.polish-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(231, 238, 248, 0.86);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 800;
}

.polish-feature-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.polish-feature-card__actions .button {
  min-height: 42px;
  padding-inline: 16px;
  font-size: 0.92rem;
}

.polish-reading-panel {
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(216, 224, 235, 0.92);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 249, 255, 0.82)),
    linear-gradient(135deg, rgba(45, 119, 172, 0.16), rgba(59, 183, 166, 0.1));
}

.polish-reading-panel h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.5rem, 3.8vw, 2.3rem);
}

.polish-reading-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.polish-reading-stats span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.88rem;
}

.polish-reading-stats strong {
  color: var(--primary);
  font-size: 1.12rem;
}

.polish-claim-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(216, 224, 235, 0.92);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.polish-claim-band h3 {
  margin: 0;
  font-size: 1.28rem;
}

.polish-claim-band p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.polish-mini-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.polish-case-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 247, 218, 0.9);
  color: #705118;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .polish-section__head,
  .polish-module-card--split {
    grid-template-columns: 1fr;
  }

  .polish-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar__actions {
    display: grid;
    width: 100%;
  }

  .topbar__actions .button {
    width: 100%;
  }

  .polish-home .official-masthead {
    padding-top: 56px;
  }

  .polish-hero-actions {
    display: grid;
  }

  .polish-hero-actions .button,
  .polish-inline-actions .button,
  .polish-feature-card__actions .button {
    width: 100%;
  }

  .polish-hero-strip,
  .polish-reading-stats,
  .polish-claim-band {
    grid-template-columns: 1fr;
  }

  .polish-module-card,
  .polish-reading-panel,
  .polish-feature-card {
    border-radius: 20px;
  }
}

/* Homepage UI Redesign V2 */
.polish-home {
  --home-ink: #142033;
  --home-muted: #5f7187;
  --home-soft: #eef6f8;
  --home-line: rgba(31, 64, 94, 0.12);
  --home-primary: #153f66;
  --home-primary-hover: #0f3151;
  --home-teal: #2f9f94;
  --home-card-shadow: 0 22px 60px rgba(24, 59, 99, 0.09);
  background:
    linear-gradient(180deg, #f8fbfd 0%, #eef6f8 34%, #f9fbfc 72%, #f7fafc 100%);
  color: var(--home-ink);
}

.polish-home .site-shell__inner {
  width: min(100% - 40px, 1120px);
}

.polish-home .site-header {
  padding-top: 18px;
  background: linear-gradient(180deg, rgba(248, 251, 253, 0.96), rgba(248, 251, 253, 0.72), transparent);
}

.polish-home .topbar--official {
  gap: 22px;
  padding: 12px 14px 12px 18px;
  border-color: rgba(31, 64, 94, 0.11);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 44px rgba(20, 32, 51, 0.07);
}

.polish-home .brand__mark {
  color: var(--home-ink);
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.12rem;
}

.polish-home .brand__subline {
  color: var(--home-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.polish-home .topbar__links {
  gap: 4px;
  color: #44566c;
  font-size: 0.93rem;
  font-weight: 750;
}

.polish-home .topbar__links a {
  border-radius: 999px;
  padding: 8px 12px;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.polish-home .topbar__links a:hover,
.polish-home .topbar__links a:focus-visible,
.polish-home .topbar__links a.is-active {
  background: rgba(21, 63, 102, 0.08);
  color: var(--home-primary);
  box-shadow: none;
}

.polish-home .topbar__actions {
  gap: 8px;
}

.polish-home .button {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 19px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.polish-home .button--primary {
  background: var(--home-primary);
  border-color: var(--home-primary);
  color: #fff;
  box-shadow: 0 16px 34px rgba(21, 63, 102, 0.18);
}

.polish-home .button--primary:hover,
.polish-home .button--primary:focus-visible {
  background: var(--home-primary-hover);
  border-color: var(--home-primary-hover);
  box-shadow: 0 20px 42px rgba(21, 63, 102, 0.22);
}

.polish-home .button--secondary {
  background: #ffffff;
  border-color: rgba(21, 63, 102, 0.18);
  color: var(--home-primary);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.polish-home .button--secondary:hover,
.polish-home .button--secondary:focus-visible {
  background: #f3f8fb;
  border-color: rgba(21, 63, 102, 0.28);
}

.polish-home .button--ghost {
  min-height: 42px;
  padding-inline: 10px;
  border-color: transparent;
  background: transparent;
  color: #355a75;
  box-shadow: none;
}

.polish-home .button--ghost:hover,
.polish-home .button--ghost:focus-visible {
  background: rgba(21, 63, 102, 0.06);
  border-color: transparent;
  color: var(--home-primary);
  box-shadow: none;
}

.polish-home .button[disabled],
.polish-home .button[aria-disabled="true"] {
  cursor: default;
  background: #edf2f5;
  border-color: rgba(31, 64, 94, 0.1);
  color: #7c8a99;
  box-shadow: none;
  transform: none;
}

.polish-home .official-masthead {
  margin-top: 34px;
  padding: clamp(86px, 9vw, 122px) 0 clamp(72px, 8vw, 104px);
}

.polish-home .official-masthead__content {
  max-width: 920px;
  padding: 0;
}

.polish-home .official-masthead h1 {
  color: var(--home-ink);
  font-size: clamp(3.15rem, 7vw, 5.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.polish-home .official-masthead__brandline {
  max-width: 42rem;
  margin-top: 24px;
  color: #34506c;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.72;
}

.polish-home .official-masthead__subtitle {
  max-width: 48rem;
  margin-top: 16px;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.42vw, 1.08rem);
  font-weight: 600;
  line-height: 1.84;
}

.polish-hero-actions {
  gap: 12px;
  margin-top: 30px;
}

.polish-hero-actions .button {
  min-width: 178px;
}

.polish-hero-actions .button--ghost {
  min-width: 150px;
}

.polish-hero-strip {
  gap: 20px;
  margin-top: 52px;
}

.polish-hero-chip {
  display: grid;
  align-content: start;
  min-height: 148px;
  padding: 22px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--home-card-shadow);
}

.polish-hero-chip strong {
  color: var(--home-ink);
  font-size: 1.08rem;
  line-height: 1.35;
}

.polish-hero-chip span {
  margin-top: 10px;
  color: var(--home-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.polish-section {
  margin-top: clamp(96px, 9vw, 124px);
}

.polish-section__head {
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.54fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.polish-section__head h2 {
  color: var(--home-ink);
  font-size: clamp(2.35rem, 5vw, 4rem);
  letter-spacing: 0;
}

.polish-section__head p {
  color: var(--home-muted);
  font-size: 1.02rem;
  font-weight: 600;
}

.polish-home .eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  background: rgba(47, 159, 148, 0.1);
  color: #277d75;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
}

.polish-module-card {
  gap: 28px;
  padding: clamp(26px, 4vw, 42px);
  border-color: rgba(31, 64, 94, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 72px rgba(20, 32, 51, 0.08);
}

.polish-module-card--split {
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.42fr);
}

.polish-feature-grid {
  gap: 22px;
}

.polish-feature-card {
  min-height: 292px;
  padding: 26px;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(20, 32, 51, 0.06);
}

.polish-feature-card h3 {
  color: var(--home-ink);
  font-size: clamp(1.28rem, 2.2vw, 1.55rem);
  letter-spacing: 0;
}

.polish-feature-card p {
  color: var(--home-muted);
  font-size: 0.98rem;
  line-height: 1.76;
}

.polish-feature-card__tags {
  min-height: 32px;
}

.polish-tag,
.polish-case-status {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(21, 63, 102, 0.08);
  border-radius: 999px;
  background: #edf6f7;
  color: #2b6b73;
  font-size: 0.78rem;
  font-weight: 850;
}

.polish-case-status {
  background: #f7f1df;
  color: #77602b;
}

.polish-feature-card__actions {
  align-items: center;
  gap: 9px;
  margin-top: 4px;
}

.polish-feature-card__actions .button {
  min-height: 42px;
  padding-inline: 15px;
  font-size: 0.9rem;
}

.polish-feature-card__actions .button--ghost {
  padding-inline: 6px;
}

.polish-reading-panel {
  border-color: rgba(47, 159, 148, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 248, 0.82));
  box-shadow: 0 18px 46px rgba(20, 32, 51, 0.07);
}

.polish-reading-panel h3 {
  color: var(--home-ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

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

.polish-reading-stats span {
  border: 1px solid rgba(31, 64, 94, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.polish-reading-stats strong {
  color: var(--home-primary);
}

.polish-claim-band {
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(248, 251, 253, 0.74);
  box-shadow: none;
}

.polish-claim-band h3 {
  color: var(--home-ink);
}

.polish-claim-band p,
.polish-mini-note {
  color: #6c7e90;
}

@media (max-width: 1040px) {
  .polish-home .topbar--official {
    align-items: flex-start;
    border-radius: 24px;
  }

  .polish-home .topbar__links {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .polish-section__head,
  .polish-module-card--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .polish-home .site-shell__inner {
    width: min(100% - 24px, 1120px);
  }

  .polish-home .site-header {
    padding-top: 10px;
  }

  .polish-home .topbar--official {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
  }

  .polish-home .topbar__links {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .polish-home .topbar__links::-webkit-scrollbar {
    display: none;
  }

  .polish-home .topbar__actions {
    display: grid;
    width: 100%;
  }

  .polish-home .official-masthead {
    margin-top: 20px;
    padding: 56px 0 68px;
  }

  .polish-home .official-masthead h1 {
    font-size: clamp(2.45rem, 12vw, 3.2rem);
  }

  .polish-hero-actions {
    display: grid;
    margin-top: 24px;
  }

  .polish-hero-actions .button,
  .polish-feature-card__actions .button,
  .polish-claim-band .button {
    width: 100%;
  }

  .polish-hero-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
  }

  .polish-section {
    margin-top: 68px;
  }

  .polish-section__head {
    gap: 18px;
    margin-bottom: 20px;
  }

  .polish-module-card {
    gap: 20px;
    padding: 18px;
    border-radius: 22px;
  }

  .polish-feature-card {
    min-height: 0;
    padding: 20px;
    border-radius: 18px;
  }

  .polish-feature-card__actions {
    display: grid;
  }

  .polish-reading-stats,
  .polish-claim-band {
    grid-template-columns: 1fr;
  }
}

/* Homepage Mobile Redesign V2.1 */
@media (max-width: 640px) {
  html {
    scroll-padding-top: 172px;
  }

  .polish-home {
    background:
      linear-gradient(180deg, #f8fbfd 0%, #edf6f8 42%, #f7fbfb 100%);
  }

  .polish-home .site-shell__inner {
    width: min(100% - 28px, 1120px);
  }

  .polish-home .site-header {
    padding-top: 8px;
  }

  .polish-home .topbar--official {
    gap: 8px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(15, 44, 74, 0.08);
  }

  .polish-home .brand {
    min-width: 0;
  }

  .polish-home .brand__mark {
    font-size: 0.96rem;
    line-height: 1.2;
  }

  .polish-home .brand__subline {
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .polish-home .topbar__actions {
    order: 2;
    display: block;
    width: 100%;
  }

  .polish-home .topbar__actions .topbar__cta {
    display: none;
  }

  .polish-home .topbar__actions .button--secondary {
    width: 100%;
    min-height: 40px;
    border-color: #164b77;
    background: #164b77;
    color: #fff;
    box-shadow: 0 12px 26px rgba(22, 75, 119, 0.16);
  }

  .polish-home .topbar__links {
    order: 3;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    padding: 0 0 2px;
    flex-wrap: nowrap;
  }

  .polish-home .topbar__links a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 10px;
    font-size: 0.86rem;
  }

  .polish-home .ui-section {
    scroll-margin-top: 172px;
  }

  .polish-home .official-masthead {
    margin-top: 8px;
    padding: 38px 0 52px;
  }

  .polish-home .official-masthead__content {
    max-width: 100%;
  }

  .polish-home .official-masthead h1 {
    font-size: clamp(2.38rem, 10vw, 2.75rem);
    line-height: 1.14;
    text-wrap: balance;
  }

  .polish-home .official-masthead__brandline {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .polish-home .official-masthead__subtitle {
    margin-top: 10px;
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .polish-hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .polish-hero-actions .button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    font-size: 0.96rem;
  }

  .polish-hero-actions .button--ghost {
    min-height: 34px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .polish-hero-strip {
    gap: 12px;
    margin-top: 28px;
  }

  .polish-hero-chip {
    min-height: 0;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(20, 32, 51, 0.05);
  }

  .polish-hero-chip strong {
    font-size: 1.04rem;
  }

  .polish-hero-chip span {
    margin-top: 7px;
    font-size: 0.93rem;
    line-height: 1.62;
  }

  .polish-section {
    margin-top: 72px;
  }

  .polish-section__head {
    gap: 12px;
    margin-bottom: 22px;
  }

  .polish-section__head h2 {
    margin-top: 10px;
    font-size: clamp(2.2rem, 11vw, 2.85rem);
    line-height: 1.08;
  }

  .polish-section__head p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .polish-home .eyebrow {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 0.78rem;
  }

  .polish-module-card {
    gap: 18px;
    width: 100%;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.64);
    box-shadow: 0 18px 46px rgba(20, 32, 51, 0.06);
  }

  .polish-feature-grid,
  .polish-feature-grid--two {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .polish-feature-card {
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 30px rgba(20, 32, 51, 0.045);
  }

  .polish-feature-card__tags {
    min-height: 0;
    gap: 6px;
    margin-bottom: 10px;
  }

  .polish-feature-card__tags .polish-tag:nth-child(n+3),
  .polish-feature-card__tags .polish-case-status:nth-child(n+3) {
    display: none;
  }

  .polish-tag,
  .polish-case-status {
    min-height: 26px;
    padding: 0 9px;
    font-size: 0.74rem;
  }

  .polish-feature-card h3 {
    font-size: clamp(1.42rem, 7vw, 1.75rem);
    line-height: 1.16;
    text-wrap: balance;
  }

  .polish-feature-card p {
    margin-top: 10px;
    font-size: 0.98rem;
    line-height: 1.66;
  }

  .polish-mini-note {
    font-size: 0.88rem !important;
    line-height: 1.58 !important;
  }

  .polish-feature-card__actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .polish-feature-card__actions .button {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    font-size: 0.95rem;
  }

  .polish-feature-card__actions .button--ghost {
    min-height: 34px;
    padding-inline: 0;
    justify-content: center;
    background: transparent;
    border-color: transparent;
  }

  .polish-reading-panel {
    padding: 22px;
    border-radius: 18px;
    background: rgba(247, 252, 252, 0.9);
    box-shadow: 0 12px 30px rgba(20, 32, 51, 0.045);
  }

  .polish-reading-panel h3 {
    font-size: clamp(1.6rem, 8vw, 2rem);
    line-height: 1.15;
  }

  .polish-reading-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .polish-reading-stats span {
    min-height: 62px;
    padding: 13px 14px;
    border-radius: 14px;
  }

  .polish-claim-band {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 18px;
  }

  .polish-claim-band h3 {
    font-size: 1.28rem;
  }

  .polish-claim-band p {
    font-size: 0.94rem;
    line-height: 1.64;
  }

  .polish-claim-band .button {
    min-height: 42px;
  }
}

@media (max-width: 390px) {
  .polish-home .official-masthead h1 {
    font-size: 2.4rem;
  }

  .polish-feature-card {
    padding: 20px;
  }
}
