@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Noto+Sans+TC:wght@400;500;700&family=Noto+Serif+TC:wght@700&display=swap");
@import url("base.css");

:root {
  --teal: #119a8a;
  --teal-soft: #1cb49b;
  --blue: #6bb9da;
  --bg: #f2fafc;
  --card: #ffffff;
  --border: #cbd8e2;
  --text: #243649;
  --muted: #5b6b7c;
  --footer-1: #21818f;
  --footer-2: #21818f;
  --container: 1180px;
  --header: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: var(--header);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text);
}

.logo-img {
  width: 220px;
  height: 80px;
  margin-left: -25px;
  object-fit: contain;
  display: block;
  padding-top: 8px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links img {
  width: 26px;
  height: 26px;
  display: block;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.social-links a:hover {
  background: rgba(18, 24, 38, 0.06);
}

.webview-banner {
  background: #1f6fbf;
  color: #ffffff;
  font-family: "Space Grotesk", "Noto Sans TC", sans-serif;
}

.webview-banner__inner {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
}

.webview-banner__btn {
  background: #ffffff;
  color: #1f6fbf;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .webview-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


.page {
  min-height: 100vh;
  padding: 0 0 120px;
}

.hero {
  background: linear-gradient(135deg, var(--footer-1) 0%, var(--footer-2) 100%);
  padding: 62px 24px 52px;
  text-align: center;
  color: #f9fdff;
  margin: 0;
}

.hero h1 {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: 1px;
  text-shadow: 0 10px 22px rgba(18, 31, 54, 0.35);
}

.hero p {
  margin: 10px 0 0;
  font-weight: 500;
  letter-spacing: 2px;
}

.choice-section {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.choice-header {
  text-align: center;
  margin-bottom: 18px;
}

.choice-title {
  margin: 0;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 1.5em;
  color: var(--text);
}

.choice-carousel {
  position: relative;
  padding: 0 72px;
}

.choice-track-mask {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: 6px 0;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.choice-track-mask::-webkit-scrollbar {
  display: none;
}

.choice-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: nowrap;
  padding-right: 16px;
  box-sizing: border-box;
}

.choice-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 220px;
  background: var(--card);
  border: 1px solid rgba(203, 216, 226, 0.7);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(25, 60, 89, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

.choice-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.choice-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.choice-card h3 {
  margin: 0;
  font-size: 17px;
  color: var(--text);
  font-weight: 400;
}

.choice-card .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.choice-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(203, 216, 226, 0.9);
  background: #ffffff;
  color: var(--teal);
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.choice-nav:hover {
  background: var(--teal);
  color: #ffffff;
  transform: translateY(calc(-50% - 2px));
}

.choice-nav[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  transform: translateY(-50%);
}

.choice-nav.prev {
  left: 10px;
}

.choice-nav.next {
  right: 10px;
}

.filter-section {
  max-width: 1040px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.filter-card {
  background: var(--card);
  border: 1px solid rgba(203, 216, 226, 0.7);
  border-radius: 14px;
  box-shadow: 0 24px 52px rgba(25, 60, 89, 0.18);
  padding: 22px 26px 24px;
}

.card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--text);
}

.card-title h2 {
  margin: 0;
}

.icon-filter {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10a58d, #1bb39e);
  position: relative;
  box-shadow: 0 8px 16px rgba(16, 165, 141, 0.28);
}

.icon-filter::before,
.icon-filter::after {
  content: "";
  position: absolute;
  background: #f9fffe;
  border-radius: 999px;
}

.icon-filter::before {
  width: 14px;
  height: 3px;
  top: 8px;
  left: 7px;
  box-shadow: 0 8px 0 0 #f9fffe;
}

.icon-filter::after {
  width: 4px;
  height: 14px;
  top: 5px;
  left: 10px;
  box-shadow: 8px 0 0 0 #f9fffe;
}

.field-row {
  display: grid;
  gap: 12px 16px;
}

.field-row + .field-row {
  margin-top: 12px;
}

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

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

.field-row.double .field {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 16px;
  color: var(--text);
}

.field span {
  font-weight: 600;
}

select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--muted);
  background: #ffffff;
  color-scheme: light;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7b8b9b 50%), linear-gradient(135deg, #7b8b9b 50%, transparent 50%);
  background-position: right 14px center, right 8px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(36, 54, 73, 0.08);
}

select:hover {
  border-color: #9eb5c7;
  background-color: #f5f8fb;
}

select:focus-visible {
  outline: none;
  border-color: #7cb0ff;
  box-shadow: 0 0 0 3px rgba(124, 176, 255, 0.35);
}

select[multiple] {
  min-height: 140px;
  background-image: none;
  padding-right: 10px;
}

select[multiple] option {
  padding: 6px 8px;
}

select option {
  background: #ffffff;
  color: var(--text);
  padding: 8px 10px;
}

select option:hover,
select option:focus,
select option:checked {
  background: #e8f2fb;
  color: #0f4f7f;
}

.custom-select {
  position: relative;
}

.custom-select__native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.custom-select__button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(36, 54, 73, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.custom-select__button:hover {
  border-color: #9eb5c7;
  background-color: #f7faff;
}

.custom-select__button:focus-visible {
  outline: none;
  border-color: #7cb0ff;
  box-shadow: 0 0 0 3px rgba(124, 176, 255, 0.35);
}

.custom-select__label {
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}

.custom-select__caret {
  color: var(--muted);
  font-size: 14px;
  margin-left: 12px;
}

.custom-select__menu {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(25, 60, 89, 0.16);
  padding: 8px 0;
  display: grid;
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 12;
}

.custom-select__menu[hidden] {
  display: none;
}

.custom-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text);
}

.custom-select__option:hover,
.custom-select__option.is-active {
  background: #f2f7ff;
}

.custom-select__option .option-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #c8d6e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #ffffff;
  background: transparent;
}

.custom-select__option.is-selected .option-check {
  background: var(--teal);
  border-color: var(--teal);
}

.custom-select__label.is-placeholder {
  color: var(--muted);
  font-weight: 400;
  font-size: 16px;
}

.custom-select.is-disabled .custom-select__button {
  background: #f3f6f9;
  color: #9aa6b3;
  cursor: not-allowed;
}

.type-field {
  position: relative;
}

.type-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.type-toggle {
  margin-top: 6px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f9fbfe;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.type-caret {
  font-size: 14px;
  color: var(--muted);
}

.type-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(25, 60, 89, 0.14);
  padding: 10px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  max-height: 260px;
  overflow-y: auto;
  z-index: 10;
}

.type-dropdown[hidden] {
  display: none !important;
}

.type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  flex: 1 1 140px;
  min-width: 120px;
  box-sizing: border-box;
}

.type-option:hover {
  background: #f5f8fb;
}

.type-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.field-label {
  font-weight: 700;
  font-size: 16px;
}

.field-chips {
  margin-top: 6px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1px;
  background: #ecf8f5;
  border-radius: 10px;
  padding: 10px;
}

.chip-option {
  position: relative;
}

.chip-option input {
  position: static;
  opacity: 1;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.chip-option label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s ease;
}

.chip-option label[data-variant="all"] {
  background: none;
  border-color: transparent;
  color: #3b4f6d;
}

.chip-option label:hover {
  color: var(--teal);
}

.chip-option input:focus-visible + label {
  outline: 2px solid #8ac6ff;
  outline-offset: 2px;
}

.chip-option input:checked + label {
  color: var(--teal);
  font-weight: 700;
}

.chip-option input:checked + label[data-variant="blue"] {
  background: none;
  border-color: transparent;
}

.chip-option input:checked + label[data-variant="purple"] {
  background: none;
  border-color: transparent;
}

.chip-option input:checked + label[data-variant="teal"] {
  background: none;
  border-color: transparent;
}

.chip-option input:checked + label[data-variant="pink"] {
  background: none;
  border-color: transparent;
}

.chip-option input:checked + label[data-variant="orange"] {
  background: none;
  border-color: transparent;
}

.chip-option input:checked + label[data-variant="type"] {
  background: none;
  border-color: transparent;
}

.chip-option input:checked + label[data-variant="all"] {
  background: none;
  border-color: transparent;
  color: var(--teal);
}

.results-section {
  max-width: 1040px;
  margin: 32px auto 0;
  padding: 0 20px 80px;
}

.results-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.results-header h2 {
  margin: 0;
}

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

.results-list.table-view {
  display: block;
}

.results-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

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

.results-table-wrapper {
  background: #ffffff;
  border: 1px solid rgba(203, 216, 226, 0.7);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(25, 60, 89, 0.1);
  overflow: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.results-table th,
.results-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(203, 216, 226, 0.6);
  text-align: left;
  vertical-align: middle;
}

.results-table th {
  white-space: nowrap;
}

.results-table .table-select {
  text-align: center;
  width: 56px;
  min-width: 56px;
  padding-left: 0;
}

.results-table td {
  font-size: 14px;
}

.results-table th {
  background: #f5f8fb;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}

.results-table .table-degree-subject {
  white-space: nowrap;
  min-width: 120px;
}

.results-table tbody tr:hover {
  background: #f7fbff;
}

.results-table .table-title .result-title {
  margin: 0 0 4px;
  font-size: 17px;
}

.results-table .table-title .result-desc {
  margin: 0;
  color: #4d6478;
  font-size: 14px;
}

.results-table .sel-badges {
  gap: 6px;
}

.results-table .table-sel {
  min-width: 200px;
}

.results-table .table-volumn {
  white-space: nowrap;
  min-width: 75px;
}

.results-table .table-actions {
  white-space: nowrap;
  width: 1%;
}

.results-table .result-actions {
  margin: 0;
}

.results-table .result-link {
  font-size: 14px;
}

.result-card {
  background: #ffffff;
  border: 1px solid rgba(203, 216, 226, 0.7);
  border-radius: 12px;
  padding: 14px 16px 16px;
  box-shadow: 0 12px 28px rgba(25, 60, 89, 0.1);
  position: relative;
}

.result-title {
  margin: 0 0 4px;
  font-size: 21px;
  color: var(--text);
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 8px;
}

.result-desc {
  margin: 0;
  color: #3c4a5b;
  line-height: 1.5;
}

.result-actions {
  margin-top: 10px;
}

.result-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #cbd8e2;
  background: #f5f8fb;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.result-link:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.result-link.download {
  background: linear-gradient(135deg, #0f9a7a 0%, #3be0b7 100%);
  color: #ffffff;
  border-color: #0f9a7a;
  box-shadow: 0 10px 22px rgba(15, 154, 122, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.result-link.download:hover {
  color: #ffffff;
  border-color: #3be0b7;
}

.result-link.video {
  background: linear-gradient(135deg, #2f85ff 0%, #65b5ff 100%);
  color: #ffffff;
  border-color: #2f85ff;
  box-shadow: 0 10px 22px rgba(47, 133, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.result-link.video:hover {
  color: #ffffff;
  border-color: #65b5ff;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #1f4b8f;
  font-weight: 600;
  font-size: 14px;
}

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

.sel-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.sel-badge.awareness {
  background: #3f9af0;
}

.sel-badge.management {
  background: #8c5cf6;
}

.sel-badge.social {
  background: #1fa38c;
}

.sel-badge.relationship {
  background: #d94681;
}

.sel-badge.decision {
  background: #f59e0b;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 18px;
  position: relative;
}

.actions::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-soft) 100%);
  color: #e8fffb;
  box-shadow: 0 12px 28px rgba(17, 154, 138, 0.3);
  min-width: 150px;
  justify-content: center;
}

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

.btn-primary:disabled {
  background: #cfd6db;
  color: #f6f8f9;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  border-color: #cdd7df;
  color: var(--muted);
  background: #f4f7fa;
  min-width: 150px;
  justify-content: center;
}
.actions .btn-ghost {
  margin-left: auto;
}

.action-errors {
  color: #d92b4c;
  font-weight: 700;
  min-height: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.field.is-error > span,
.type-field.is-error .type-label span,
.field-chips.is-error .field-label {
  color: #d92b4c;
}

.custom-select__button.is-error {
  border-color: #f08a9b;
  background: #fff2f4;
  color: #c0374d;
}

.chip-group.is-error {
  background: #fff2f4;
  border-radius: 10px;
  padding: 8px 10px;
}

.chip-group.is-error .chip-option label {
  color: #c0374d;
}

.btn-icon {
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.radio-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #c7d3dc;
  display: inline-block;
  position: relative;
}

.radio-mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #dce6ee;
}

.empty-state {
  margin: 36px auto 0;
  max-width: 340px;
  text-align: center;
  color: #4d6478;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 5px solid #bfcfdb;
  position: relative;
}

.empty-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 26px;
  background: #bfcfdb;
  border-radius: 20px;
  transform: rotate(45deg);
  bottom: -8px;
  right: -4px;
}

.footer,
.page-footer {
  background: var(--footer-1);
  color: #e1f2ef;
  text-align: center;
  padding: 20px 14px;
  position: static;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.footer-inner,
.page-footer__inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.site-footer {
  background: #21818f;
  color: #e8edf7;
  height: 65px;
  padding: 0;
  display: flex;
  align-items: center;
  font-family: "Space Grotesk", "Noto Sans TC", sans-serif;
}

.site-footer .footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 32px 60px;
  align-items: center;
  height: 100%;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-copy {
  color: #e8edf7;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
  white-space: nowrap;
  margin-left: 100px;
}

.footer-logo {
  height: 50px;
  width: auto;
  display: block;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
}

.footer-inner > .footer-social {
  align-self: center;
  transform: none;
}

.footer-social a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-1px);
  opacity: 0.8;
}

.footer-social img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

@media (max-width: 1080px) {
  .site-footer .footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .footer-logo,
  .footer-social {
    display: none;
  }

  .footer-copy {
    margin-left: 0;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    height: auto;
    padding: 12px 0;
  }

  .nav-right {
    flex-direction: column;
    gap: 12px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-inner > .footer-social {
    transform: none;
  }

  .footer-social a {
    width: 44px;
    height: 44px;
  }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1f6fbf;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(16, 41, 85, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    opacity 0.2s ease;
  z-index: 1000;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(16, 41, 85, 0.28);
  background: #195fb0;
}

.back-to-top:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

.results-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

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

.pagination-btn {
  border: 1px solid #cbd8e2;
  background: #f5f8fb;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 14px;
  color: var(--muted);
}

.designer-badge {
  position: fixed;
  left: 18px;
  bottom: 74px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: #f3f5f8;
  border: 1px solid #d7e2eb;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(17, 31, 54, 0.18);
  font-size: 14px;
  color: #7a8895;
}

.drop {
  width: 10px;
  height: 14px;
  border-radius: 8px 8px 10px 10px;
  background: linear-gradient(180deg, #7a5ad3, #6d7dee);
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 74px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(12, 57, 68, 0.88);
  color: #f7fcff;
  font-weight: 700;
  letter-spacing: 0.6px;
  border: none;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(12, 57, 68, 0.32);
}

@media (max-width: 900px) {
  .chips {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

.footer,
.page-footer,
.back-top,
.designer-badge {
    position: static;
    display: block;
    margin: 20px auto 0;
    text-align: center;
  }

  .page {
    padding-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .filter-card {
    padding: 18px 16px;
    gap: 8px;
  }

  .field-row {
    gap: 8px 10px;
  }

  .chip-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .chip-option label {
    justify-content: center;
    padding: 6px 6px;
    font-size: 12px;
    gap: 4px;
    white-space: nowrap;
  }

  select {
    padding: 8px 10px;
    font-size: 15px;
  }

  .actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 1024px) {
  .choice-carousel {
    padding: 0 48px;
  }

  .choice-card {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 720px) {
  .choice-carousel {
    padding: 0 16px;
  }

  .choice-nav {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .choice-card {
    flex-basis: 100%;
  }
}

@media (min-width: 1100px) {
  .filter-card {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .card-title,
  .field-chips,
  .actions {
    grid-column: 1 / -1;
  }

  .field-row {
    display: contents;
    margin-top: 0;
  }

  .field-row + .field-row {
    margin-top: 0;
  }

  .field-row .field {
    min-width: 0;
  }

  .field-row.double .field {
    grid-column: 1 / -1;
  }

  .field-row.triple {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
    grid-column: 1 / -1;
  }

  .field-row.double {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    grid-column: 1 / -1;
  }

  .actions {
    margin-top: 4px;
  }
}
