/* pelancongan.my — restored travel editorial */

:root {
  --paper: #f7f6f2;
  --surface: #ffffff;
  --ink: #26332d;
  --ink-soft: #56615b;
  --forest: #164b3f;
  --forest-dark: #103b31;
  --ochre: #b38d50;
  --ochre-pale: #f1eadc;
  --line: #dfdfd8;
  --line-dark: #c9cbc3;
  --shadow: 0 9px 25px rgba(23, 48, 39, 0.055);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--forest-dark); }

a:focus-visible,
summary:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4, p, figure, blockquote { margin-top: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.17;
  overflow-wrap: anywhere;
}

ul, ol { padding-left: 1.35rem; }

::selection {
  color: #fff;
  background: var(--forest);
}

.wrap {
  width: min(calc(100% - 48px), var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--forest);
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

/* Masthead */
.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.8);
  background: var(--forest);
  font-size: 0.72rem;
  letter-spacing: 0.075em;
  line-height: 1.3;
  text-transform: uppercase;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  gap: 1rem;
}

.site-header { background: var(--surface); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 125px;
  padding-top: 19px;
  padding-bottom: 18px;
}

.brand {
  grid-column: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  color: var(--forest);
  text-align: center;
  text-decoration: none;
}

.brand:hover { color: var(--forest-dark); }

.logo {
  width: 38px;
  height: 38px;
  margin-bottom: 1px;
  object-fit: contain;
}

.wordmark {
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.86rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  white-space: nowrap;
}

.brand-sub {
  color: var(--ochre);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.header-note {
  grid-column: 3;
  justify-self: end;
  max-width: 190px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.35;
  text-align: right;
}

.main-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.9rem;
  padding: 6px 0;
}

.nav-links a,
.mobile-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--ochre);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--forest); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { opacity: 1; transform: scaleX(1); }

.mobile-menu { display: none; }

/* Shared editorial motifs */
.eyebrow,
.category-label,
.widget-kicker {
  color: var(--ochre);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.category-label { display: inline-block; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.post-meta > * + *::before {
  margin-right: 0.75rem;
  color: var(--ochre);
  content: "•";
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 38px;
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.read-link::after {
  font-size: 1rem;
  line-height: 1;
  content: "→";
  transition: transform 160ms ease;
}

.read-link:hover::after { transform: translateX(4px); }

/* Page layout */
.site-layout {
  display: grid;
  grid-template-columns: minmax(0, 744px) minmax(0, 304px);
  align-items: start;
  justify-content: space-between;
  gap: 36px;
  padding-top: 53px;
  padding-bottom: 72px;
}

.main-column { min-width: 0; }
.sidebar { min-width: 0; }

.intro {
  margin-bottom: 32px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.intro .eyebrow { margin-bottom: 0.6rem; }

.intro h1 {
  max-width: 700px;
  margin-bottom: 0.65rem;
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  letter-spacing: -0.04em;
}

.intro p {
  max-width: 630px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.65;
}

/* Homepage feature */
.featured-post {
  margin-bottom: 46px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8e6df;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.featured-post:hover .featured-image img { transform: scale(1.025); }

.featured-copy { padding: 27px 31px 29px; }
.featured-copy .category-label { margin-bottom: 0.64rem; }

.featured-copy h2 {
  margin-bottom: 0.66rem;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  letter-spacing: -0.035em;
}

.featured-copy h2 a,
.card-copy h2 a,
.related-card h3 a {
  color: inherit;
  text-decoration: none;
}

.featured-copy h2 a:hover,
.card-copy h2 a:hover,
.related-card h3 a:hover { color: var(--forest); }

.featured-copy .post-meta { margin-bottom: 1rem; }

.featured-copy > p:not(.post-meta) {
  max-width: 640px;
  margin-bottom: 0.9rem;
  color: var(--ink-soft);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--forest);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.48rem;
  letter-spacing: -0.025em;
}

.section-heading small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.post-grid { border-top: 1px solid transparent; }

.post-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.card-image {
  display: block;
  overflow: hidden;
  width: 220px;
  height: 165px;
  background: #e8e6df;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.post-card:hover .card-image img { transform: scale(1.04); }
.card-copy { min-width: 0; padding-top: 2px; }
.card-copy .category-label { margin-bottom: 0.35rem; }

.card-copy h2 {
  margin-bottom: 0.52rem;
  font-size: 1.42rem;
  letter-spacing: -0.025em;
}

.card-copy .post-meta { margin-bottom: 0.62rem; }

.card-copy > p:not(.post-meta) {
  display: -webkit-box;
  margin-bottom: 0.35rem;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 31px;
}

.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 39px;
  min-height: 39px;
  padding: 0 0.45rem;
  border: 1px solid var(--line-dark);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.pagination a:hover { border-color: var(--forest); background: #fff; }
.pagination .current { border-color: var(--forest); color: #fff; background: var(--forest); }

/* Sidebar */
.widget {
  margin-bottom: 32px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.widget h2 {
  margin-bottom: 15px;
  color: var(--forest);
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.widget-about {
  padding: 23px 23px 21px;
  border-top: 3px solid var(--ochre);
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(25, 46, 37, 0.035);
}

.widget-about .widget-kicker { margin-bottom: 0.55rem; }
.widget-about h2 { margin-bottom: 0.55rem; }
.widget-about p { margin-bottom: 0.85rem; color: var(--ink-soft); font-size: 0.91rem; line-height: 1.62; }
.widget-about p:last-child { margin-bottom: 0; }

.link-list,
.destination-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li { border-bottom: 1px solid var(--line); }

.link-list a {
  display: flex;
  align-items: center;
  min-height: 39px;
  padding: 6px 0;
  color: var(--ink);
  font-size: 0.89rem;
  text-decoration: none;
}

.link-list a::before {
  margin-right: 0.56rem;
  color: var(--ochre);
  content: "—";
}

.link-list a:hover { color: var(--forest); }

.recent-item {
  display: grid;
  grid-template-columns: 77px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.recent-item img {
  width: 77px;
  height: 57px;
  object-fit: cover;
  background: #e8e6df;
}

.recent-item span {
  font-family: var(--serif);
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.27;
}

.recent-item:hover span { color: var(--forest); }

.destination-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 39px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  text-decoration: none;
}

.destination-list a:hover { color: var(--forest); }

.destination-list span {
  color: var(--ochre);
  font-size: 0.72rem;
  font-weight: 700;
}

.sidebar-note {
  margin: 0;
  padding: 15px 17px;
  border-left: 3px solid var(--ochre);
  color: var(--ink-soft);
  background: var(--ochre-pale);
  font-size: 0.76rem;
  line-height: 1.55;
}

/* Breadcrumbs and article */
.breadcrumbs { margin-bottom: 22px; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.74rem;
  list-style: none;
}

.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { margin-right: 0.5rem; color: var(--ochre); content: "/"; }
.breadcrumbs a { color: var(--forest); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.article-panel {
  min-width: 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-header { padding: 38px 49px 29px; }
.article-header .category-label { margin-bottom: 0.8rem; }

.article-header h1 {
  max-width: 680px;
  margin-bottom: 0.85rem;
  font-size: clamp(2.125rem, 4vw, 2.625rem);
  letter-spacing: -0.045em;
}

.article-header .post-meta { font-size: 0.78rem; }

.article-featured {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8e6df;
}

.article-featured > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-note {
  margin: 0;
  padding: 12px 49px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fbfaf7;
  font-size: 0.76rem;
  font-style: italic;
}

.toc {
  margin: 33px 49px 8px;
  border: 1px solid var(--line);
  background: #fbfaf7;
}

.toc summary {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  cursor: pointer;
  text-transform: uppercase;
}

.toc[open] summary { border-bottom: 1px solid var(--line); }

.toc ol {
  margin: 0;
  padding: 0.85rem 1.25rem 1rem 2.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.toc a { text-underline-offset: 0.18em; }

.article-content,
.entry-content {
  min-width: 0;
  padding: 30px 49px 11px;
  color: #36413b;
  font-size: 17px;
  line-height: 1.85;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.article-content > *:last-child,
.entry-content > *:last-child { margin-bottom: 0; }

.article-content p,
.entry-content p { margin-bottom: 1.45rem; }

.article-content h2,
.entry-content h2 {
  margin-top: 2.35rem;
  margin-bottom: 0.85rem;
  color: var(--forest);
  font-size: 1.72rem;
  letter-spacing: -0.025em;
}

.article-content h3,
.entry-content h3 {
  margin-top: 1.95rem;
  margin-bottom: 0.72rem;
  font-size: 1.31rem;
  letter-spacing: -0.015em;
}

.article-content h2:first-child,
.entry-content h2:first-child { margin-top: 0; }

.article-content a,
.entry-content a {
  color: var(--forest);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration-line: underline;
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.article-content a:hover,
.entry-content a:hover { color: var(--forest-dark); text-decoration-color: var(--forest); }

.article-content ul,
.article-content ol,
.entry-content ul,
.entry-content ol { margin: 0 0 1.5rem; }

.article-content li + li,
.entry-content li + li { margin-top: 0.28rem; }

.article-content li::marker,
.entry-content li::marker { color: var(--ochre); }

.article-content blockquote,
.entry-content blockquote {
  margin: 1.85rem 0;
  padding: 0.35rem 0 0.35rem 1.35rem;
  border-left: 3px solid var(--ochre);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1.58;
}

.article-content blockquote p:last-child,
.entry-content blockquote p:last-child { margin-bottom: 0; }

.article-content figure,
.entry-content figure,
.article-content .wp-block-image,
.entry-content .wp-block-image {
  margin: 2rem auto;
  max-width: 100%;
}

.article-content figure img,
.entry-content figure img,
.article-content .wp-block-image img,
.entry-content .wp-block-image img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.article-content .aligncenter,
.entry-content .aligncenter { margin-right: auto; margin-left: auto; text-align: center; }

.article-content figcaption,
.entry-content figcaption {
  margin-top: 0.56rem;
  color: var(--ink-soft);
  font-size: 0.77rem;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.table-scroll {
  width: 100%;
  margin: 1.8rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content table,
.entry-content table,
.wp-block-table table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  border-spacing: 0;
  border-collapse: collapse;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.55;
}

.article-content .wp-block-table,
.entry-content .wp-block-table {
  max-width: 100%;
  margin: 1.8rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content th,
.article-content td,
.entry-content th,
.entry-content td,
.wp-block-table th,
.wp-block-table td {
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line-dark);
  text-align: left;
  vertical-align: top;
}

.article-content th,
.entry-content th,
.wp-block-table th {
  color: var(--forest);
  background: #f5f4ee;
  font-weight: 800;
}

.article-tail {
  margin: 27px 49px 0;
  padding: 19px 0 23px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.article-tail p:last-child { margin-bottom: 0; }

.related-posts {
  margin-top: 39px;
  padding-top: 26px;
  border-top: 2px solid var(--forest);
}

.related-posts h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

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

.related-card { min-width: 0; }
.related-card > a { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #e8e6df; }
.related-card > a > img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.related-card:hover > a > img { transform: scale(1.04); }

.related-card h3 {
  margin: 10px 0 0;
  font-size: 1.04rem;
  letter-spacing: -0.015em;
}

/* Contact callout */
.contact-box {
  margin: 2rem 0;
  padding: 24px 25px;
  border-top: 3px solid var(--ochre);
  background: var(--ochre-pale);
  color: var(--ink);
}

.contact-box h2,
.contact-box h3 { margin-top: 0; color: var(--forest); }
.contact-box p:last-child { margin-bottom: 0; }

.mail-link {
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration-color: var(--ochre) !important;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: var(--forest);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 42px;
  padding-top: 43px;
  padding-bottom: 37px;
}

.site-footer .wordmark { color: #fff; font-size: 1.9rem; }
.site-footer .brand { align-items: flex-start; text-align: left; }
.site-footer .brand-sub { color: #d8be88; }

.site-footer h2,
.site-footer h3 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer p { max-width: 330px; margin: 0.6rem 0 0; font-size: 0.86rem; line-height: 1.68; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.55); }
.site-footer a:hover { color: #f0d59f; }

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.32rem; }
.site-footer li a { font-size: 0.88rem; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.footer-bottom .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.73rem;
}

/* Responsive */
@media (max-width: 900px) {
  .header-inner { min-height: 108px; }
  .site-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 39px;
  }
  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 30px;
  }
  .widget { break-inside: avoid; }
  .widget-about { align-self: start; }
  .sidebar-note { align-self: start; }
  .footer-grid { gap: 26px; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 32px), var(--max-width)); }
  .topbar .wrap { justify-content: center; min-height: 29px; text-align: center; }
  .topbar .wrap > :last-child:not(:only-child) { display: none; }

  .header-inner {
    display: flex;
    justify-content: center;
    min-height: 96px;
    padding-top: 18px;
    padding-bottom: 16px;
  }
  .header-note { display: none; }
  .wordmark { font-size: 2rem; }

  .nav-inner { display: block; min-height: 0; }
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    color: var(--forest);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    cursor: pointer;
    list-style: none;
    text-transform: uppercase;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary::after { margin-left: 0.55rem; font-size: 0.8rem; content: "+"; }
  .mobile-menu[open] summary::after { content: "−"; }
  .mobile-links {
    display: grid;
    padding: 5px 0 12px;
    border-top: 1px solid var(--line);
  }
  .mobile-links a { justify-content: center; min-height: 39px; }
  .mobile-links a[aria-current="page"] { color: var(--forest); }

  .site-layout { gap: 40px; padding-top: 31px; padding-bottom: 48px; }
  .intro { margin-bottom: 25px; padding-bottom: 20px; }
  .intro h1 { font-size: 2.1rem; }
  .intro p { font-size: 1rem; }

  .featured-post { margin-bottom: 36px; }
  .featured-copy { padding: 22px 20px 23px; }
  .featured-copy h2 { font-size: 1.7rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 0.3rem; }
  .section-heading small { font-size: 0.66rem; }

  .post-card { grid-template-columns: 114px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
  .card-image { width: 114px; height: 86px; }
  .card-copy { padding-top: 0; }
  .card-copy h2 { margin-bottom: 0.4rem; font-size: 1.1rem; line-height: 1.25; }
  .card-copy .category-label { margin-bottom: 0.23rem; font-size: 0.61rem; }
  .card-copy .post-meta { margin-bottom: 0; font-size: 0.68rem; }
  .card-copy > p:not(.post-meta), .card-copy .read-link { display: none; }

  .sidebar { display: block; }
  .widget { margin-bottom: 27px; padding-bottom: 23px; }

  .breadcrumbs { margin-bottom: 17px; }
  .article-header { padding: 26px 21px 22px; }
  .article-header h1 { font-size: 1.75rem; line-height: 1.18; }
  .archive-note { padding: 11px 21px; }
  .toc { margin: 24px 21px 4px; }
  .article-content, .entry-content { padding: 25px 21px 8px; font-size: 16px; line-height: 1.78; }
  .article-content h2, .entry-content h2 { margin-top: 2rem; font-size: 1.45rem; }
  .article-content h3, .entry-content h3 { font-size: 1.2rem; }
  .article-tail { margin: 22px 21px 0; }
  .related-posts { margin-top: 33px; }
  .related-grid { gap: 11px; }
  .related-card h3 { font-size: 0.93rem; line-height: 1.25; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 35px; padding-bottom: 30px; }
  .footer-bottom .wrap { align-items: flex-start; flex-direction: column; justify-content: center; padding: 12px 0; }
}

@media (max-width: 390px) {
  .wrap { width: min(calc(100% - 26px), var(--max-width)); }
  .article-header, .article-content, .entry-content { padding-right: 17px; padding-left: 17px; }
  .archive-note { padding-right: 17px; padding-left: 17px; }
  .toc, .article-tail { margin-right: 17px; margin-left: 17px; }
  .post-card { grid-template-columns: 95px minmax(0, 1fr); gap: 13px; }
  .card-image { width: 95px; height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Original archived wordmark and static directory sections. */
.original-logo { width: 300px; height: auto; margin-bottom: 9px; }
.destination-section { scroll-margin-top: 24px; margin-bottom: 45px; }
.article-content h2[id] { scroll-margin-top: 20px; }
.unavailable-image { display: block; padding: 12px; color: var(--ink-soft); background: var(--paper); font-size: 0.8rem; }
.footer-brand { display: inline-block; color: #fff; font-family: var(--serif); font-size: 1.8rem; letter-spacing: -0.055em; text-decoration: none; }
.footer-brand span { color: #d3b47b; }
.footer-note { font-size: 0.85rem; }
@media (max-width: 640px) { .original-logo { width: min(280px, 80vw); } }

/* Preserve the resolution of surviving archive thumbnails without empty photo boxes. */
.compact-feature { display: flex; align-items: center; padding: 24px; gap: 24px; border-top: 3px solid var(--ochre); }
.compact-feature .featured-image { flex: 0 0 150px; width: 150px; height: 150px; aspect-ratio: 1; }
.compact-feature .featured-copy { min-width: 0; padding: 0; }
.compact-feature h2 { font-size: 1.8rem; }
.post-card.text-only { display: block; }
.post-card.text-only .card-copy { max-width: 100%; }
.article-featured.small-original { aspect-ratio: auto; background: transparent; padding: 0 49px 25px; }
.article-featured.small-original > img { width: 150px; height: 150px; object-fit: contain; }
.link-list a.recent-item { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.link-list a.recent-item::before { content: none; }
.recent-item img { width: 62px; height: 62px; object-fit: cover; }
@media (max-width: 640px) {
  .compact-feature { align-items: start; flex-direction: column; gap: 20px; padding: 23px; }
  .compact-feature h2 { font-size: 1.6rem; }
  .article-featured.small-original { padding: 0 24px 20px; }
}

/* Related titles stay outside the photo frame; text-only recommendations remain clean. */
.related-card > a { overflow: visible; aspect-ratio: auto; background: transparent; text-decoration: none; }
.related-card > a > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.related-card h3 { color: var(--forest); }

.article-content caption { padding: 0 0 10px; color: var(--forest); font-size: 0.8rem; font-weight: 600; text-align: left; caption-side: top; }
