:root {
    --black: #070708;
    --wine: #2a050d;
    --red: #b71832;
    --gold: #c9a45e;
    --ivory: #f4eddf;
    --line: #735925;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--black);
    color: var(--ivory);
    font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
.header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 74px;
    display: flex;
    align-items: center;
    gap: 38px;
    padding: 0 3.2vw;
    background: rgba(4, 4, 5, 0.94);
    border-bottom: 1px solid #2c2113;
    backdrop-filter: blur(14px);
}
.logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}
.logo img {
    display: block;
    width: 215px;
    height: auto;
}
.header nav {
    display: flex;
    gap: 25px;
    margin-left: auto;
    font-size: 12px;
}
.header nav a:hover {
    color: var(--gold);
}
.country-nav {
    position: relative;
}
.country-nav summary {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}
.country-nav summary::-webkit-details-marker {
    display: none;
}
.country-nav summary:hover,
.country-nav[open] summary {
    color: var(--gold);
}
.country-nav summary span {
    color: var(--gold);
    font-size: 14px;
    transition: transform 0.2s ease;
}
.country-nav[open] summary span {
    transform: rotate(180deg);
}
.country-nav-menu {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    z-index: 100;
    display: grid;
    min-width: 180px;
    padding: 8px;
    background: #100d0a;
    border: 1px solid var(--line);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}
.country-nav-menu a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border-bottom: 1px solid rgba(201, 164, 94, 0.16);
    font-size: 13px;
}
.country-nav-menu a:last-child {
    border-bottom: 0;
}
.langs {
    position: relative;
}
.langs button {
    border: 1px solid var(--gold);
    background: #0b0907;
    color: var(--gold);
    padding: 10px 16px;
}
.langs > div {
    display: none;
    position: absolute;
    right: 0;
    top: 43px;
    width: 145px;
    background: #100d0a;
    border: 1px solid var(--line);
    padding: 8px;
}
.langs.open > div {
    display: grid;
}
.langs a {
    padding: 8px;
    font-size: 12px;
}
.hamb {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 24px;
}
.hero {
    position: relative;
    min-height: 500px;
    padding: 0;
    background: url("../preview/hero.png") center/cover no-repeat;
}
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.97) 0%,
        rgba(20, 0, 5, 0.7) 45%,
        rgba(0, 0, 0, 0.2) 100%
    );
}
.hero-copy {
    position: relative;
    z-index: 1;
    padding: 50px 7vw;
    max-width: 790px;
    border-left: 2px solid var(--red);
    margin-left: 3vw;
}
.issue {
    font:
        16px Georgia,
        serif;
    color: var(--red);
    letter-spacing: 0.12em;
}
.hero h1 {
    margin: 25px 0 18px;
    font-family: Georgia, "Yu Mincho", serif;
    font-size: clamp(44px, 5.4vw, 74px);
    font-weight: 400;
    line-height: 1.24;
    letter-spacing: 0.04em;
}
.hero p {
    color: var(--gold);
    font:
        21px Georgia,
        "Yu Mincho",
        serif;
}
.cta {
    display: inline-block;
    margin-top: 22px;
    padding: 12px 20px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 13px;
}
.section {
    width: min(1200px, 94%);
    margin: auto;
    padding: 55px 0;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}
.section-title span {
    height: 1px;
    flex: 1;
    background: var(--line);
}
.section-title h2 {
    margin: 0;
    color: var(--gold);
    font:
        30px Georgia,
        serif;
    letter-spacing: 0.06em;
    text-align: center;
}
.section-title small {
    display: block;
    margin-top: 4px;
    color: var(--ivory);
    font:
        15px "Yu Mincho",
        serif;
}
.destinations {
    padding-top: 34px;
}
.country-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.country {
    position: relative;
    min-height: 350px;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent 70%),
        var(--pic) var(--pic-position, center)/cover;
    border: 1px solid var(--line);
    transition: 0.3s;
}
.country-korea {
    --pic: url("../preview/country-korea-night.jpg?v=3");
    --pic-position: center;
}
.country-taiwan {
    --pic: url("../preview/country-taiwan-night.jpg?v=3");
    --pic-position: center;
}
.country-japan {
    --pic: url("../preview/country-japan-night.jpg?v=3");
    --pic-position: center;
}
.country-china {
    --pic: url("../preview/country-china-night.jpg?v=3");
    --pic-position: center;
}
.country:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}
.country div {
    position: absolute;
    inset: auto 0 25px;
    text-align: center;
}
.country b {
    display: block;
    font:
        31px "Yu Mincho",
        serif;
}
.country small {
    display: block;
    margin-top: 9px;
    color: var(--gold);
    font-family: Georgia, serif;
}
.recommendation,
.latest {
    margin-top: 15px;
    padding-inline: 25px;
    border: 1px solid var(--gold);
    background: radial-gradient(circle at 50% 0, #4b0b18, #160307 60%, #090707);
}
.featured {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    border: 1px solid var(--line);
    background: #110a0b;
}
.featured-pic {
    min-height: 370px;
    background: url("../preview/featured.png") center/cover;
}
.featured-copy {
    padding: 45px;
}
.featured-copy em,
.recommend-grid span,
.article-box em {
    display: inline-block;
    background: var(--red);
    padding: 4px 10px;
    color: #fff;
    font-size: 11px;
    font-style: normal;
}
.featured h3 {
    font:
        clamp(25px, 3vw, 39px) Georgia,
        "Yu Mincho",
        serif;
    line-height: 1.45;
}
.featured p {
    color: #c8bbb8;
    line-height: 1.9;
}
.featured time,
.recommend-grid time {
    display: block;
    color: var(--gold);
    font-size: 11px;
}
.featured a {
    display: inline-block;
    margin-top: 25px;
    border: 1px solid var(--gold);
    padding: 9px 15px;
    color: var(--gold);
}
.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.recommend-grid article {
    min-height: 220px;
    padding: 28px;
    background: linear-gradient(145deg, #1b0c0e, #080808);
    border: 1px solid var(--line);
}
.recommend-grid h3 {
    font:
        22px Georgia,
        "Yu Mincho",
        serif;
    line-height: 1.45;
}
.recommend-grid p {
    color: #a99d9a;
    font-size: 13px;
}
.article-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.article-box {
    display: grid;
    grid-template-columns: 145px 1fr 25px;
    gap: 17px;
    align-items: center;
    padding: 10px;
    border: 1px solid #5d4823;
    background: #0b0909;
    transition: 0.2s;
}
.article-box:hover {
    border-color: var(--gold);
    background: #160b0d;
}
.article-box i {
    height: 105px;
    background-position: center;
    background-size: cover;
}
.article-box time {
    margin-left: 8px;
    color: var(--gold);
    font-size: 10px;
}
.article-box h3 {
    margin: 8px 0 4px;
    font:
        17px Georgia,
        "Yu Mincho",
        serif;
}
.article-box p {
    margin: 0;
    color: #9f9996;
    font-size: 11px;
}
.article-box > b {
    color: var(--gold);
}

/* Editorial cards: cinematic imagery with a restrained nightlife treatment. */
.post-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #11090b;
    color: #fff;
    border: 1px solid rgba(201, 164, 94, 0.46);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
    isolation: isolate;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.post-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 0 34px rgba(183, 24, 50, 0.16);
}
.post-card-link {
    position: relative;
    display: grid;
    min-height: 530px;
    overflow: hidden;
}
.post-card-link::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(5, 4, 5, 0.02) 16%, rgba(8, 5, 6, 0.25) 42%, rgba(8, 5, 6, 0.94) 78%, #080506 100%),
        linear-gradient(120deg, rgba(91, 4, 24, 0.16), transparent 52%);
    pointer-events: none;
}
.post-card .post-thumb {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    background: #170d10;
}
.post-card .post-thumb img {
    filter: saturate(0.92) contrast(1.06);
    transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.25, 1), filter 0.35s ease;
}
.toromi-card-badge {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: calc(100% - 36px);
    padding: 7px 14px 7px 7px;
    background: rgba(17, 7, 11, 0.9);
    color: #fff;
    border: 1px solid rgba(232, 73, 154, 0.7);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}
.toromi-card-badge img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
    border: 2px solid #e8499a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(232, 73, 154, 0.15);
}
.toromi-card-badge span,
.toromi-article-profile span,
.toromi-archive-profile span {
    display: grid;
    gap: 2px;
}
.toromi-card-badge small,
.toromi-article-profile small,
.toromi-archive-profile small {
    color: #e8499a;
    font-family: Georgia, serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}
.toromi-card-badge strong {
    overflow: hidden;
    font-size: 13px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.post-card:hover .post-thumb img {
    transform: scale(1.075);
    filter: saturate(1.08) contrast(1.08);
}
.post-card .post-body {
    position: relative;
    z-index: 2;
    align-self: end;
    padding: 120px 30px 28px;
}
.post-card .post-meta,
.post-card time {
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.04em;
}
.post-card .pill {
    padding: 5px 11px;
    background: rgba(154, 11, 44, 0.88);
    color: #fff;
    border: 1px solid rgba(255, 202, 214, 0.34);
    border-radius: 4px;
    box-shadow: 0 7px 18px rgba(72, 0, 17, 0.3);
}
.post-card h2,
.post-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 16px 0 12px;
    color: #fff;
    font-family: Georgia, "Yu Mincho", "Noto Serif JP", "Noto Serif TC", serif;
    font-size: clamp(23px, 2.05vw, 30px);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: 0.015em;
    text-shadow: 0 3px 20px rgba(0, 0, 0, 0.9);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.post-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.post-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 16px;
    color: var(--gold);
    border-top: 1px solid rgba(201, 164, 94, 0.32);
    font-family: Georgia, serif;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.post-card-action b {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(201, 164, 94, 0.62);
    border-radius: 50%;
    font-size: 15px;
    transition: 0.3s ease;
}
.post-card:hover .post-card-action b {
    background: var(--gold);
    color: #120b0c;
    transform: rotate(45deg);
}

/* Article pages: use a warm reading surface with strong text contrast. */
.single .content-layout,
.page .content-layout {
    width: min(calc(100% - 40px), 1320px);
    grid-template-columns: minmax(0, 980px) 280px;
    gap: 40px;
    padding-top: 10px;
    padding-bottom: 72px;
}
.breadcrumb {
    color: #9e968b;
    font-size: 13px;
}
.breadcrumb a {
    color: #c8bba7;
}
.breadcrumb a:hover {
    color: var(--gold);
}
.breadcrumb li:last-child {
    color: #eee3d2;
}
.article {
    overflow: hidden;
    padding: clamp(30px, 4vw, 58px);
    background: #f7f2e9;
    color: #2b2420;
    border: 1px solid #ddcfbb;
    border-radius: 6px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}
.article-header {
    padding-bottom: 28px;
    border-bottom: 1px solid #d8cab5;
}
.article .post-meta {
    color: #756b64;
    font-size: 13px;
    font-weight: 600;
}
.article .pill {
    background: #821a31;
    color: #fff8eb;
    border: 1px solid #a96e77;
}
.article-header h1 {
    max-width: 920px;
    margin: 20px 0 0;
    color: #24191a;
    font-family: Georgia, "Yu Mincho", "Noto Serif JP", "Noto Serif TC", serif;
    font-size: clamp(32px, 4.2vw, 54px);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
}
.toromi-article-profile {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    margin-top: 22px;
    padding: 9px 18px 9px 9px;
    background: #fff8f8;
    border: 1px solid #dba2b4;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(99, 20, 48, 0.1);
}
.toromi-article-profile img,
.toromi-archive-profile img {
    object-fit: cover;
    border: 3px solid #e8499a;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(232, 73, 154, 0.12);
}
.toromi-article-profile strong {
    color: #381522;
    font-size: 16px;
}
.toromi-archive-profile {
    display: flex;
    gap: 22px;
    align-items: center;
}
.toromi-archive-profile h1 {
    margin: 0;
    color: #f4ead8;
    font-family: Georgia, "Yu Mincho", "Noto Serif JP", serif;
}
.toromi-archive-profile img {
    width: 92px;
    height: 92px;
}
.entry-content {
    color: #3b332e;
    font-size: 17px;
    line-height: 2;
}
.entry-content > p:first-child {
    margin-top: 34px;
    color: #51463f;
    font-size: 18px;
    line-height: 2.05;
}
.entry-content p {
    margin: 1.35em 0;
}
.entry-content h2 {
    margin-top: 2.6em;
    padding: 0 0 13px;
    color: #4b1522;
    border-bottom: 2px solid #9a2941;
    font-family: Georgia, "Yu Mincho", "Noto Serif JP", "Noto Serif TC", serif;
    font-size: clamp(24px, 3vw, 31px);
    line-height: 1.5;
}
.entry-content h3 {
    color: #4b1522;
    border-left-color: var(--gold);
}
.entry-content ul,
.entry-content ol {
    margin: 1.5em 0;
    padding: 20px 24px 20px 48px;
    background: #eee5d8;
    border-left: 3px solid #9a2941;
}
.entry-content li + li {
    margin-top: 8px;
}
.entry-content strong {
    color: #62192a;
}
.entry-content .wp-block-table {
    width: 100%;
    margin: 2em 0;
    overflow-x: auto;
    border: 1px solid #cdbb9f;
    border-radius: 8px;
    background: #fbf7ef;
    box-shadow: 0 8px 24px rgba(55, 37, 27, 0.08);
    -webkit-overflow-scrolling: touch;
}
.entry-content .wp-block-table table {
    width: 100%;
    min-width: 980px;
    margin: 0;
    border-spacing: 0;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.65;
}
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
    padding: 16px 18px;
    vertical-align: middle;
    text-align: left;
    border-right: 1px solid #d8c9b4;
    border-bottom: 1px solid #d8c9b4;
}
.entry-content .wp-block-table th:last-child,
.entry-content .wp-block-table td:last-child {
    border-right: 0;
}
.entry-content .wp-block-table tbody tr:last-child td {
    border-bottom: 0;
}
.entry-content .wp-block-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #fff8eb;
    background: #541726;
    border-color: #784252;
    font-weight: 700;
    white-space: nowrap;
}
.entry-content .wp-block-table tbody tr:nth-child(even) td {
    background: #f1e8da;
}
.entry-content .wp-block-table tbody tr:hover td {
    background: #ead9c3;
}
.entry-content .wp-block-table td:first-child {
    color: #541726;
    font-weight: 700;
    white-space: nowrap;
}
.author-box {
    color: #403631;
    background: #eee5d8;
    border: 1px solid #dacbb7;
}
.sidebar-box {
    background: #130e0f;
    color: #d8cdbd;
    border: 1px solid #5d4823;
    border-radius: 6px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}
.sidebar-box h2 {
    padding-bottom: 10px;
    color: var(--gold);
    border-bottom: 1px solid #5d4823;
    font-family: Georgia, "Yu Mincho", serif;
    font-size: 18px;
}
.sidebar-box li {
    margin: 8px 0;
}
.sidebar-box a {
    color: #e4dacb;
}
.sidebar-box a:hover {
    color: var(--gold);
}
.all {
    display: block;
    width: max-content;
    margin: 25px 0 0 auto;
    padding: 10px 17px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 12px;
}
.ranking {
    padding-top: 65px;
}
.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}
.ranking-card {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    border: 1px solid #5d4823;
    background: #130b0d;
}
.ranking-card img {
    width: 100%;
    height: 165px;
    object-fit: cover;
    opacity: 0.86;
    transition: 0.35s;
}
.ranking-card:hover img {
    opacity: 1;
    transform: scale(1.035);
}
.ranking-number {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    background: #aa1539;
    color: #fff8eb;
    font: 25px Georgia, serif;
}
.ranking-card > div {
    padding: 20px;
}
.ranking-card em {
    color: var(--gold);
    font-size: 11px;
    font-style: normal;
}
.ranking-card h3 {
    margin: 8px 0 0;
    color: #f3ece2;
    font: 19px/1.5 Georgia, "Yu Mincho", serif;
}
.topics {
    padding: 42px 3vw;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.topics h2 {
    color: var(--gold);
    font:
        28px Georgia,
        serif;
}
.topics > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #4f4024;
}
.topics a {
    display: grid;
    place-items: center;
    min-height: 150px;
    color: var(--gold);
    font-size: 42px;
    border-right: 1px solid #4f4024;
}
.topics a:last-child {
    border-right: 0;
}
.topics small {
    display: block;
    color: #fff;
    font-size: 15px;
}
.guide-hub-intro {
    max-width: 850px;
    margin: 0 auto 38px;
    text-align: center;
}
.guide-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 38px 0 12px;
}
.entry-content .guide-hub-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 290px;
    padding: 28px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--line);
    background-position: center;
    background-size: cover;
    transition: transform .25s ease, border-color .25s ease;
}
.entry-content .guide-hub-card::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .08) 78%);
}
.entry-content .guide-hub-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}
.guide-hub-card > span {
    position: relative;
    z-index: 1;
}
.guide-hub-card strong,
.guide-hub-card small {
    display: block;
}
.guide-hub-card strong {
    color: #fff;
    font: 30px/1.35 Georgia, "Yu Mincho", serif;
}
.guide-hub-card small {
    margin-top: 7px;
    color: var(--gold);
    font-size: 14px;
}
.guide-hub-korea { background-image: url("../preview/country-korea-night.jpg?v=3"); }
.guide-hub-taiwan { background-image: url("../preview/country-taiwan-night.jpg?v=3"); }
.guide-hub-japan { background-image: url("../preview/country-japan-night.jpg?v=3"); }
.guide-hub-china { background-image: url("../preview/country-china-night.jpg?v=3"); }
footer {
    display: flex;
    align-items: center;
    gap: 6vw;
    padding: 45px 3vw;
    color: #aaa;
}
footer .logo {
    color: #fff;
}
footer .logo img {
    width: 230px;
}
footer > small {
    margin-left: auto;
}
@media (max-width: 800px) {
    /*
     * Reset the desktop article grid with matching specificity.
     * Without this rule, a cached desktop declaration can squeeze the article
     * to a single-character column on physical mobile devices.
     */
    .single .content-layout,
    .page .content-layout {
        width: min(calc(100% - 28px), 1320px);
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding-bottom: 48px;
    }
    .single .article,
    .page .article {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .single .entry-content,
    .page .entry-content {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .single .sidebar,
    .page .sidebar {
        display: none;
    }
    .header {
        height: 64px;
    }
    .header nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 20px;
        background: #090909;
    }
    .header nav.open {
        display: grid;
    }
    .country-nav summary {
        min-height: 42px;
    }
    .country-nav-menu {
        position: static;
        margin-top: 8px;
        width: 100%;
        box-shadow: none;
    }
    .hamb {
        display: block;
    }
    .langs {
        margin-left: auto;
    }
    .hero {
        min-height: 470px;
    }
    .hero-copy {
        padding: 56px 6vw;
    }
    .hero h1 {
        font-size: 46px;
    }
    .country-grid {
        grid-template-columns: 1fr 1fr;
    }
    .country {
        min-height: 280px;
    }
    .featured {
        grid-template-columns: 1fr;
    }
    .featured-pic {
        min-height: 280px;
    }
    .recommend-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }
    .topics > div {
        grid-template-columns: repeat(3, 1fr);
    }
    footer {
        display: grid;
    }
}

@media (max-width: 560px) {
    .post-card-link {
        min-height: 460px;
    }
    .post-card .post-body {
        padding: 100px 22px 22px;
    }
    .toromi-card-badge {
        top: 14px;
        left: 14px;
    }
    .toromi-card-badge img {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }
    .post-card h2 {
        font-size: 23px;
        line-height: 1.45;
    }
    .post-card .post-body > p {
        font-size: 14px;
    }
    .guide-hub-grid {
        grid-template-columns: 1fr;
    }
    .entry-content .guide-hub-card {
        min-height: 220px;
    }
    .article {
        padding: 28px 22px;
    }
    .article-header h1 {
        font-size: 31px;
        line-height: 1.45;
    }
    .toromi-article-profile {
        border-radius: 18px;
    }
    .toromi-archive-profile {
        gap: 14px;
    }
    .toromi-archive-profile img {
        width: 72px;
        height: 72px;
    }
    .entry-content,
    .entry-content > p:first-child {
        font-size: 16px;
        line-height: 1.95;
    }
    .entry-content h2 {
        font-size: 23px;
    }
    .entry-content .wp-block-table {
        margin-inline: -6px;
    }
    .entry-content .wp-block-table table {
        min-width: 860px;
        font-size: 14px;
    }
    .entry-content .wp-block-table th,
    .entry-content .wp-block-table td {
        padding: 13px 14px;
    }
    /* Keep simple course/price tables readable without hidden horizontal scrolling. */
    .entry-content .wp-block-table:has(tr > :nth-child(2):last-child) {
        margin-inline: 0;
        overflow-x: visible;
    }
    .entry-content .wp-block-table:has(tr > :nth-child(2):last-child) table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }
    .entry-content .wp-block-table:has(tr > :nth-child(2):last-child) th,
    .entry-content .wp-block-table:has(tr > :nth-child(2):last-child) td {
        padding: 13px 10px;
        overflow-wrap: anywhere;
    }
    .entry-content .wp-block-table:has(tr > :nth-child(2):last-child) th:first-child,
    .entry-content .wp-block-table:has(tr > :nth-child(2):last-child) td:first-child {
        width: 38%;
    }
    .entry-content .wp-block-table:has(tr > :nth-child(2):last-child) th:last-child,
    .entry-content .wp-block-table:has(tr > :nth-child(2):last-child) td:last-child {
        width: 62%;
        white-space: nowrap;
    }
    /* Toromi's first report: stack notes below course and price on small screens. */
    body.postid-262 .entry-content .wp-block-table {
        margin-inline: 0;
        overflow-x: visible;
    }
    body.postid-262 .entry-content .wp-block-table table {
        display: block;
        width: 100%;
        min-width: 0;
    }
    body.postid-262 .entry-content .wp-block-table thead,
    body.postid-262 .entry-content .wp-block-table tbody {
        display: block;
        width: 100%;
    }
    body.postid-262 .entry-content .wp-block-table tr {
        display: grid;
        grid-template-columns: 40% 60%;
        width: 100%;
    }
    body.postid-262 .entry-content .wp-block-table th,
    body.postid-262 .entry-content .wp-block-table td {
        width: auto;
        min-width: 0;
        white-space: normal;
    }
    body.postid-262 .entry-content .wp-block-table th:nth-child(3) {
        display: none;
    }
    body.postid-262 .entry-content .wp-block-table td:nth-child(2) {
        white-space: nowrap;
    }
    body.postid-262 .entry-content .wp-block-table td:nth-child(3) {
        grid-column: 1 / -1;
        padding-top: 9px;
        color: #5d5048;
        background: #f8f1e5;
        border-right: 0;
        font-size: 12px;
        line-height: 1.65;
    }
}
@media (max-width: 480px) {
    .header {
        gap: 8px;
        padding-inline: 12px;
    }
    .logo img {
        width: 165px;
    }
    footer .logo img {
        width: 190px;
    }
    .header > .langs {
        display: block;
        margin-left: auto;
    }
    .header > .langs button {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        gap: 5px;
        padding: 8px 10px;
        font-size: 11px;
        line-height: 1;
        white-space: nowrap;
    }
    .header > .langs > div {
        top: calc(100% + 10px);
        right: -44px;
        z-index: 110;
        width: min(260px, calc(100vw - 24px));
        padding: 10px;
        gap: 4px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    }
    .header > .langs a {
        display: flex;
        min-height: 46px;
        align-items: center;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(201, 155, 76, 0.18);
        font-size: 14px;
    }
    .header > .langs a:last-child {
        border-bottom: 0;
    }
    .hero {
        min-height: 420px;
    }
    .hero h1 {
        font-size: 38px;
    }
    .country {
        min-height: 220px;
    }
    .featured-copy {
        padding: 25px;
    }
    .recommend-grid {
        grid-template-columns: 1fr;
    }
    .article-box {
        grid-template-columns: 95px 1fr 15px;
    }
    .article-box i {
        height: 90px;
    }
    .article-box p {
        display: none;
    }
}
