:root {
  --page: #fbfaf6;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #dbe3ef;
  --line-soft: #eef2f7;
  --navy: #0f172a;
  --navy-2: #1e293b;
  --blue: #334155;
  --green: #15803d;
  --green-soft: #ecfdf3;
  --yellow: #f2b705;
  --yellow-soft: #fff8db;
  --red: #dc2626;
  --red-soft: #fff1f2;
  --radius: 12px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-sans);
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

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

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

button,
label,
summary {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 48px));
  min-height: 66px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
}

.brand img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 5px;
}

.brand-name {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-kicker {
  display: none;
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 66px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a.is-active::after {
  background: var(--yellow);
}

main {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.tool-shell {
  padding: 32px 0 42px;
}

.tool-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.tool-title-row h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(31px, 4vw, 42px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.tool-title-row p {
  max-width: 430px;
  margin-bottom: 0;
  color: #334155;
  font-size: 17px;
  line-height: 1.45;
}

.top-actions {
  display: none !important;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.input-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.input-section {
  margin: 0 0 32px;
  padding: 0;
  border: 0;
}

.input-section legend,
.section-label {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.input-section legend span,
.section-label span {
  display: none;
}

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

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

.weather-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segment {
  position: relative;
  display: block;
  min-width: 0;
}

.segment input,
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment span {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 78px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: #334155;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.weather-options .segment span {
  min-height: 38px;
  grid-auto-flow: column;
  justify-content: start;
  gap: 7px;
  padding: 0 14px;
  border-radius: 9px;
}

.luggage-options .segment span {
  min-height: 48px;
  grid-auto-flow: column;
  justify-content: start;
  padding: 0 14px;
  text-align: left;
}

.segment strong {
  font-size: 14px;
  line-height: 1.16;
}

.segment small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.segment b {
  display: inline-grid;
  place-items: center;
  color: #475569;
  font-size: 22px;
  font-weight: 700;
}

.weather-options .segment b,
.luggage-options .segment b {
  font-size: 16px;
}

.segment span:hover,
.chip span:hover,
.custom-row input:focus {
  border-color: #bfcee0;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.16);
}

.trip-options .segment input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.trip-options .segment input:checked + span small,
.trip-options .segment input:checked + span b {
  color: rgba(255, 255, 255, 0.84);
}

.weather-options .segment input:checked + span {
  border-color: var(--yellow);
  background: var(--yellow-soft);
  color: var(--ink);
}

.luggage-options .segment input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  color: #14532d;
}

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

.compact-section {
  margin: 0;
}

.stepper {
  display: grid;
  grid-template-columns: 40px minmax(58px, 1fr) 40px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.stepper button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 20px;
  font-weight: 750;
  cursor: pointer;
}

.stepper button:hover {
  background: var(--surface-soft);
}

.stepper output {
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.chip input:checked + span {
  border-color: #9fb0c4;
  background: #eff6ff;
  color: #1e3a8a;
}

.tool-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: -4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
}

.tool-note strong {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  flex: 0 0 auto;
  font-size: 12px;
}

.tool-note p {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--navy-2);
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.button.ghost {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button.plain {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.compact {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.result-panel {
  position: sticky;
  top: 86px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 30px 32px;
  background: var(--navy);
  color: #fff;
}

.result-head .eyebrow {
  display: none;
}

.result-head h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 26px;
  font-weight: 850;
  line-height: 1.15;
}

.result-head .tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-summary {
  display: grid;
  gap: 14px;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line-soft);
  background: #f8fafc;
}

.trip-meta {
  margin: -54px 0 12px;
  color: #aab6c7;
  font-size: 14px;
}

.progress-block {
  display: grid;
  gap: 8px;
}

.progress-block div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.progress-block strong {
  color: var(--ink);
}

.progress-block i {
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-block i::before {
  content: "";
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

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

.summary-stats div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.summary-stats dt {
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  line-height: 1;
}

.summary-stats dd {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.summary-line {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

#categoryList {
  padding: 14px 32px 4px;
}

.category-group {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

.category-group:last-child {
  border-bottom: 0;
}

.category-group summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  cursor: pointer;
  list-style: none;
}

.category-group summary::-webkit-details-marker {
  display: none;
}

.category-icon {
  display: none;
}

.category-group summary strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  line-height: 1.2;
}

.category-group summary em {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf2f7;
  color: #94a3b8;
  font-style: normal;
  font-size: 14px;
  font-weight: 850;
}

.item-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 18px;
  padding-top: 18px;
}

.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  min-width: 0;
  color: var(--ink);
}

.check-row input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--navy);
}

.check-row span {
  min-width: 0;
}

.check-row strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.26;
}

.check-row small {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.check-row small em {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 6px;
  border: 1px solid #d5e1ef;
  border-radius: 5px;
  background: #eef4fb;
  color: #64748b;
  font-style: normal;
  font-weight: 800;
}

.check-row small em:nth-child(3) {
  border-color: #fecdd3;
  background: var(--red-soft);
  color: var(--red);
}

.check-row small i {
  flex-basis: 100%;
  color: var(--muted);
  font-style: normal;
}

.custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin: 18px 32px 0;
}

.custom-row input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  outline: 0;
}

.safety-box {
  margin: 18px 32px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.safety-box h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 15px;
}

.safety-box ul {
  margin: 0;
  padding-left: 19px;
  color: #475569;
  font-size: 13px;
}

.result-panel > .tool-actions {
  padding: 0 32px 24px;
}

.copy-status {
  min-height: 20px;
  margin: 10px 32px 24px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  white-space: pre-wrap;
}

.content-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 46px;
}

.content-entry {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.entry-art {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #f8f6ee;
  border: 1px solid #ece4d4;
  overflow: hidden;
}

.entry-art img {
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
}

.content-entry span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.content-entry h2 {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.16;
}

.content-entry p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 14px;
}

.home-blog-section,
.content-strip,
.article-layout,
.blog-index {
  margin: 44px 0;
}

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

.section-head h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.08;
}

.home-blog-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.blog-hero {
  max-width: 760px;
  margin: 48px auto 46px;
  text-align: center;
}

.blog-hero h1 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 42px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}

.blog-hero p {
  margin-bottom: 0;
  color: #334155;
  font-size: 18px;
  line-height: 1.55;
}

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

.blog-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.blog-card img {
  width: 100%;
  height: 264px;
  aspect-ratio: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--line-soft);
}

.home-blog-grid .blog-card img {
  height: 190px;
}

.blog-card div {
  padding: 22px 24px 24px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
}

.blog-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.32;
}

.blog-card p:not(.card-meta) {
  margin-bottom: 24px;
  color: #334155;
  font-size: 16px;
  line-height: 1.55;
}

.blog-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.blog-card strong em {
  font-style: normal;
}

.content-strip {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.content-strip h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.1;
}

.content-strip p {
  margin-bottom: 0;
  color: #334155;
}

.page-hero,
.article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: stretch;
  margin: 40px 0 28px;
}

.page-hero > div,
.article-hero > div,
.hero-aside,
.side-nav,
.article-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.page-hero > div,
.article-hero > div {
  padding: 30px;
}

.page-hero h1,
.article-hero h1 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: 0;
}

.page-hero p,
.article-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: #334155;
  font-size: 18px;
}

.hero-aside {
  padding: 22px;
}

.hero-aside h2,
.side-nav h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
}

.hero-aside a,
.side-nav a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  color: #334155;
  font-weight: 800;
}

.article-category {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 28px;
  align-items: start;
}

.article-card {
  overflow: hidden;
}

.article-card > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line-soft);
}

.article-body {
  padding: 30px;
}

.article-body h2 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.18;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p,
.article-body li {
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  padding-left: 22px;
}

.article-body a {
  color: #1d4ed8;
  font-weight: 750;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  font-size: 15px;
}

.article-body th,
.article-body td {
  padding: 11px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--surface-soft);
  color: var(--ink);
}

.table-wrap {
  overflow-x: auto;
}

.side-nav {
  position: sticky;
  top: 86px;
  padding: 20px;
}

.site-footer {
  margin-top: 54px;
  background: var(--navy);
  color: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 42px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand-name {
  color: #fff;
}

.footer-inner p {
  max-width: 430px;
  margin-top: 20px;
  color: #b8c3d4;
}

.footer-col h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 20px;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: #cbd5e1;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9aa8bb;
  font-size: 13px;
}

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

  .result-panel,
  .side-nav {
    position: static;
  }

  .content-entries,
  .home-blog-grid,
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    width: min(1120px, calc(100% - 24px));
    min-height: 62px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .brand {
    min-height: 48px;
  }

  .main-nav {
    gap: 14px;
    min-height: 42px;
  }

  .main-nav a {
    min-height: 42px;
    font-size: 13px;
  }

  main {
    width: min(1120px, calc(100% - 24px));
  }

  .page-hero,
  .article-hero,
  .article-layout,
  .article-card,
  .page-hero > div,
  .article-hero > div,
  .hero-aside,
  .side-nav {
    min-width: 0;
  }

  .page-hero h1,
  .article-hero h1,
  .blog-hero h1 {
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .page-hero p,
  .article-hero p,
  .blog-hero p {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .tool-shell {
    padding-top: 24px;
  }

  .tool-title-row,
  .section-head,
  .footer-base {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-fields,
  .trip-options,
  .luggage-options,
  .content-entries,
  .home-blog-grid,
  .blog-grid,
  .guide-grid,
  .content-strip,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .result-head,
  .result-summary,
  #categoryList,
  .article-body {
    padding-inline: 18px;
  }

  .custom-row,
  .safety-box,
  .copy-status {
    margin-inline: 18px;
  }

  .summary-stats {
    grid-template-columns: 1fr;
  }

  .content-entry {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 16px;
  }

  .entry-art {
    width: 46px;
    height: 46px;
  }

  .entry-art img {
    width: 42px;
    height: 42px;
  }

  .blog-card div {
    padding: 18px;
  }
}

@media (max-width: 460px) {
  .weather-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tool-actions,
  .custom-row {
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
  }

  .result-head .tool-actions {
    width: auto;
  }

  .button {
    width: 100%;
  }
}

@media print {
  .site-header,
  .input-panel,
  .content-entries,
  .home-blog-section,
  .content-strip,
  .site-footer,
  .tool-actions,
  .custom-row,
  .safety-box {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    width: 100%;
  }

  .calculator-grid {
    display: block;
  }

  .result-panel {
    border: 0;
    box-shadow: none;
  }
}
