/*
Theme Name:        Freshpadma
Theme URI:         https://nexiamath.com/themes/freshpadma
Author:            Nexiamath
Author URI:        https://nexiamath.com
Description:       Freshpadma is a modern WordPress news theme with a fresh lotus-inspired palette, calm editorial rhythm, and a comfortable reading-first portal layout.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
Text Domain:       freshpadma
License:           GPL v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --fpd-mint: #ebf8f3;
    --fpd-mist: #f7fcfa;
    --fpd-paper: #fffefb;
    --fpd-paper-deep: #f2f7f3;
    --fpd-jade: #138a65;
    --fpd-jade-deep: #0d5f49;
    --fpd-lotus: #ef6f98;
    --fpd-lotus-soft: #ffe6ee;
    --fpd-sky: #d8eff0;
    --fpd-sky-deep: #4c8992;
    --fpd-leaf: #8acda9;
    --fpd-leaf-soft: #e4f4eb;
    --fpd-ink: #183536;
    --fpd-ink-soft: #5e7475;
    --fpd-line: #d4e4db;
    --fpd-shadow: 0 26px 72px rgba(24, 53, 54, 0.1);
    --fpd-shadow-soft: 0 14px 34px rgba(24, 53, 54, 0.08);
    --fpd-radius-xl: 34px;
    --fpd-radius-lg: 24px;
    --fpd-radius-md: 18px;
    --fpd-radius-sm: 14px;
    --fpd-max: 1280px;
    --fpd-ease: 220ms ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--fpd-ink);
    font-family: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.76;
    background:
        radial-gradient(circle at top left, rgba(138, 205, 169, 0.18), transparent 26%),
        radial-gradient(circle at top right, rgba(239, 111, 152, 0.12), transparent 22%),
        radial-gradient(circle at bottom left, rgba(216, 239, 240, 0.24), transparent 28%),
        linear-gradient(180deg, #fbfffd 0%, var(--fpd-mint) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(19, 138, 101, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 138, 101, 0.045) 1px, transparent 1px);
    background-size: 52px 52px;
}

body.admin-bar .fpd-masthead {
    top: 32px;
}

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

a:hover {
    color: var(--fpd-jade-deep);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.screen-reader-text:focus {
    left: 1rem;
    top: 1rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--fpd-jade-deep);
    color: #fff;
}

.fpd-shell {
    width: min(calc(100% - 2rem), var(--fpd-max));
    margin: 0 auto;
}

.fpd-site,
.fpd-main {
    position: relative;
    z-index: 1;
}

.fpd-main {
    padding: 1.5rem 0 2rem;
}

.fpd-dewline {
    position: relative;
    z-index: 3;
    color: #effcf6;
    background: linear-gradient(90deg, var(--fpd-jade-deep), #16795c 58%, #2a9a73 100%);
}

.fpd-dewline__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 50px;
}

.fpd-dewline__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #f6fff9;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fpd-dewline__tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--fpd-lotus);
    box-shadow: 0 0 0 5px rgba(239, 111, 152, 0.14);
}

.fpd-dewline__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1rem;
    color: rgba(239, 252, 246, 0.8);
    font-size: 0.92rem;
}

.fpd-masthead {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(247, 252, 250, 0.9);
    border-bottom: 1px solid rgba(24, 53, 54, 0.08);
    backdrop-filter: blur(18px);
}

.fpd-progress {
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: rgba(24, 53, 54, 0.08);
}

.fpd-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: linear-gradient(90deg, var(--fpd-jade), var(--fpd-leaf), var(--fpd-lotus));
}

.fpd-masthead__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 106px;
}

.fpd-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.fpd-brand .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.fpd-brand .custom-logo {
    max-height: 68px;
    width: auto;
}

.fpd-brand__seal {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 26px;
    border: 1px solid rgba(19, 138, 101, 0.14);
    background:
        radial-gradient(circle at top left, rgba(239, 111, 152, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(248, 255, 252, 0.98), rgba(228, 244, 235, 0.96));
    box-shadow: var(--fpd-shadow-soft);
    color: var(--fpd-jade-deep);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
    font-size: 2.05rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fpd-brand__copy {
    min-width: 0;
}

.fpd-site-title,
.fpd-site-title a {
    margin: 0;
    color: var(--fpd-ink);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
    font-size: clamp(2.35rem, 3vw, 3.6rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.fpd-site-tagline {
    margin: 0.35rem 0 0;
    color: var(--fpd-ink-soft);
    font-size: 0.96rem;
}

.fpd-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(24, 53, 54, 0.1);
    border-radius: 16px;
    background: var(--fpd-paper);
    color: var(--fpd-ink);
    cursor: pointer;
}

.fpd-nav {
    margin-left: auto;
}

.fpd-menu,
.fpd-footer__menu,
.fpd-footer__utility,
.fpd-ripple-list,
.fpd-latest-list,
.fpd-popular-list,
.fpd-share-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fpd-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.fpd-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    color: var(--fpd-ink-soft);
    font-size: 0.94rem;
    font-weight: 700;
    transition: background var(--fpd-ease), color var(--fpd-ease), transform var(--fpd-ease);
}

.fpd-menu a:hover,
.fpd-menu .current-menu-item > a,
.fpd-menu .current_page_item > a {
    color: var(--fpd-ink);
    background: rgba(19, 138, 101, 0.12);
    transform: translateY(-1px);
}

.fpd-pill,
.fpd-button,
.fpd-link,
.fpd-cta,
.fpd-show-all,
.fpd-search-submit,
.fpd-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(19, 138, 101, 0.18);
    background: linear-gradient(135deg, rgba(138, 205, 169, 0.2), rgba(255, 230, 238, 0.62));
    color: var(--fpd-ink);
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform var(--fpd-ease), border-color var(--fpd-ease), box-shadow var(--fpd-ease);
}

.fpd-pill:hover,
.fpd-button:hover,
.fpd-link:hover,
.fpd-cta:hover,
.fpd-show-all:hover,
.fpd-search-submit:hover,
.fpd-pagination .page-numbers:hover {
    transform: translateY(-1px);
    border-color: rgba(19, 138, 101, 0.3);
    box-shadow: var(--fpd-shadow-soft);
}

.fpd-cta {
    background: linear-gradient(135deg, var(--fpd-jade-deep), var(--fpd-jade) 68%, var(--fpd-leaf) 100%);
    color: #f5fff9;
}

.fpd-bloom-strip {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(24, 53, 54, 0.08);
    background: rgba(247, 252, 250, 0.82);
    backdrop-filter: blur(12px);
}

.fpd-bloom-strip__track {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    overflow-x: auto;
    padding: 0.95rem 0;
    scrollbar-width: none;
}

.fpd-bloom-strip__track::-webkit-scrollbar {
    display: none;
}

.fpd-bloom-strip__track a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 0.95rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.92);
    color: var(--fpd-ink-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

.fpd-bloom-strip__track a:hover,
.fpd-bloom-strip__track a[aria-current="page"] {
    color: var(--fpd-ink);
    border-color: rgba(19, 138, 101, 0.24);
}

.fpd-layout,
.fpd-reading-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.5rem;
    align-items: start;
}

.fpd-sidebar {
    position: sticky;
    top: 126px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.fpd-panel,
.fpd-widget,
.fpd-lotusdeck,
.fpd-petal-grid,
.fpd-garden,
.fpd-river,
.fpd-archive-panel,
.fpd-story-panel,
.fpd-page-panel,
.fpd-comments,
.fpd-empty,
.fpd-not-found {
    overflow: hidden;
    border: 1px solid var(--fpd-line);
    border-radius: var(--fpd-radius-xl);
    background: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(242, 247, 243, 0.98));
    box-shadow: var(--fpd-shadow);
}

.fpd-panel,
.fpd-widget,
.fpd-lotusdeck,
.fpd-petal-grid,
.fpd-garden,
.fpd-river,
.fpd-archive-panel,
.fpd-story-panel,
.fpd-page-panel,
.fpd-comments,
.fpd-empty,
.fpd-not-found {
    padding: 1.35rem;
}

.fpd-lotusdeck,
.fpd-petal-grid,
.fpd-garden,
.fpd-river,
.fpd-archive-panel,
.fpd-story-panel,
.fpd-page-panel,
.fpd-comments,
.fpd-empty,
.fpd-not-found {
    margin-bottom: 1.5rem;
}

.fpd-lotusdeck {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
    gap: 1rem;
    background:
        radial-gradient(circle at top left, rgba(138, 205, 169, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(239, 111, 152, 0.16), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 254, 0.98), rgba(238, 248, 243, 0.98));
}

.fpd-manifesto,
.fpd-ripple {
    display: grid;
    gap: 1rem;
}

.fpd-manifesto {
    align-content: start;
    padding: 1.35rem;
    border-radius: calc(var(--fpd-radius-xl) - 10px);
    background:
        radial-gradient(circle at top left, rgba(239, 111, 152, 0.18), transparent 32%),
        linear-gradient(160deg, rgba(255, 254, 251, 0.98), rgba(228, 244, 235, 0.98));
    border: 1px solid rgba(19, 138, 101, 0.08);
}

.fpd-kicker,
.fpd-card__kicker,
.fpd-widget__kicker,
.fpd-story-kicker,
.fpd-petal-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--fpd-jade);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fpd-kicker::before,
.fpd-card__kicker::before,
.fpd-widget__kicker::before,
.fpd-story-kicker::before,
.fpd-petal-card__label::before {
    content: "";
    width: 10px;
    height: 1px;
    background: currentColor;
}

.fpd-manifesto h1,
.fpd-feature__title,
.fpd-ripple__head h2,
.fpd-garden__head h2,
.fpd-river__head h2,
.fpd-widget-title,
.fpd-archive-header h1,
.fpd-page-panel h1,
.fpd-story-header h1,
.fpd-related__head h2,
.fpd-empty h2,
.fpd-not-found h1 {
    margin: 0.45rem 0 0;
    color: var(--fpd-ink);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.fpd-manifesto h1 {
    font-size: clamp(2.6rem, 4.4vw, 4.6rem);
    max-width: 10ch;
}

.fpd-manifesto p,
.fpd-archive-header p,
.fpd-page-panel > p,
.fpd-story-summary,
.fpd-empty p,
.fpd-not-found p {
    margin: 0.9rem 0 0;
    color: var(--fpd-ink-soft);
}

.fpd-manifesto__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.fpd-feature {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-radius: calc(var(--fpd-radius-xl) - 10px);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(19, 138, 101, 0.1);
}

.fpd-feature__media,
.fpd-card__media,
.fpd-popular-item__thumb {
    display: block;
    overflow: hidden;
    border-radius: calc(var(--fpd-radius-lg) - 8px);
    background: linear-gradient(135deg, rgba(138, 205, 169, 0.22), rgba(216, 239, 240, 0.22), rgba(255, 230, 238, 0.22));
}

.fpd-feature__media img,
.fpd-card__media img,
.fpd-popular-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.fpd-feature:hover .fpd-feature__media img,
.fpd-card:hover .fpd-card__media img,
.fpd-popular-item:hover .fpd-popular-item__thumb img {
    transform: scale(1.04);
}

.fpd-feature__title,
.fpd-card__title,
.fpd-ripple-item__title,
.fpd-latest-item__title,
.fpd-popular-item__title {
    margin: 0;
    color: var(--fpd-ink);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
    font-weight: 700;
    line-height: 1.04;
}

.fpd-feature__title {
    font-size: clamp(2rem, 2.8vw, 3rem);
}

.fpd-meta,
.fpd-card__meta,
.fpd-widget__meta,
.fpd-story-header__meta,
.fpd-ripple-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
    color: var(--fpd-ink-soft);
    font-size: 0.88rem;
}

.fpd-ripple__head,
.fpd-garden__head,
.fpd-river__head,
.fpd-widget__head,
.fpd-archive-header,
.fpd-story-header,
.fpd-related__head,
.fpd-footer__bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.fpd-ripple-list {
    display: flex;
    flex-direction: column;
}

.fpd-ripple-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(24, 53, 54, 0.08);
}

.fpd-ripple-item:first-child {
    border-top: 0;
    padding-top: 0.35rem;
}

.fpd-rank,
.fpd-popular-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(19, 138, 101, 0.18);
    background: linear-gradient(145deg, rgba(138, 205, 169, 0.34), rgba(255, 230, 238, 0.72));
    color: var(--fpd-jade-deep);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.fpd-ripple-item__title {
    font-size: 1.22rem;
}

.fpd-petal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.fpd-petal-card {
    padding: 1rem;
    border-radius: calc(var(--fpd-radius-lg) - 8px);
    border: 1px solid rgba(24, 53, 54, 0.08);
    box-shadow: var(--fpd-shadow-soft);
}

.fpd-petal-card[data-tone="jade"] {
    background: linear-gradient(180deg, rgba(228, 244, 235, 0.96), rgba(255, 255, 255, 0.98));
}

.fpd-petal-card[data-tone="lotus"] {
    background: linear-gradient(180deg, rgba(255, 230, 238, 0.96), rgba(255, 255, 255, 0.98));
}

.fpd-petal-card[data-tone="sky"] {
    background: linear-gradient(180deg, rgba(216, 239, 240, 0.96), rgba(255, 255, 255, 0.98));
}

.fpd-petal-card[data-tone="mist"] {
    background: linear-gradient(180deg, rgba(243, 249, 246, 0.96), rgba(255, 255, 255, 0.98));
}

.fpd-petal-card h2 {
    margin: 0.45rem 0 0;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
    font-size: 1.44rem;
    line-height: 1.04;
}

.fpd-petal-card p {
    margin: 0.7rem 0 0;
    color: var(--fpd-ink-soft);
}

.fpd-petal-card__meta {
    margin-top: 0.8rem;
    color: var(--fpd-ink-soft);
    font-size: 0.88rem;
}

.fpd-garden,
.fpd-river,
.fpd-archive-panel,
.fpd-story-panel,
.fpd-page-panel {
    position: relative;
}

.fpd-garden::before,
.fpd-river::before,
.fpd-archive-panel::before,
.fpd-story-panel::before,
.fpd-page-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--fpd-jade), var(--fpd-leaf), var(--fpd-sky-deep), var(--fpd-lotus));
}

.fpd-garden__grid,
.fpd-river__grid,
.fpd-archive-grid,
.fpd-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.fpd-garden__grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    margin-top: 1rem;
}

.fpd-garden__stack {
    display: grid;
    gap: 1rem;
}

.fpd-card {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: calc(var(--fpd-radius-lg) - 8px);
    border: 1px solid rgba(24, 53, 54, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--fpd-shadow-soft);
}

.fpd-card[data-tone="jade"] {
    background: linear-gradient(180deg, rgba(228, 244, 235, 0.72), rgba(255, 255, 255, 0.98));
}

.fpd-card[data-tone="lotus"] {
    background: linear-gradient(180deg, rgba(255, 230, 238, 0.72), rgba(255, 255, 255, 0.98));
}

.fpd-card[data-tone="sky"] {
    background: linear-gradient(180deg, rgba(216, 239, 240, 0.76), rgba(255, 255, 255, 0.98));
}

.fpd-card[data-tone="mist"] {
    background: linear-gradient(180deg, rgba(243, 249, 246, 0.96), rgba(255, 255, 255, 0.98));
}

.fpd-card__placeholder {
    min-height: 220px;
    border-radius: calc(var(--fpd-radius-md) - 2px);
    background: linear-gradient(135deg, rgba(138, 205, 169, 0.2), rgba(216, 239, 240, 0.2), rgba(255, 230, 238, 0.22));
}

.fpd-card__title {
    font-size: 1.58rem;
}

.fpd-card__excerpt {
    margin: 0;
    color: var(--fpd-ink-soft);
}

.fpd-card--feature .fpd-card__title,
.fpd-card--river .fpd-card__title,
.fpd-card--archive .fpd-card__title,
.fpd-card--search .fpd-card__title {
    font-size: 1.95rem;
}

.fpd-card--stack,
.fpd-card--related {
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: start;
}

.fpd-card--stack .fpd-card__title,
.fpd-card--related .fpd-card__title {
    font-size: 1.18rem;
}

.fpd-card--stack .fpd-card__excerpt,
.fpd-card--related .fpd-card__excerpt {
    display: none;
}

.fpd-card--stack .fpd-card__media img,
.fpd-card--related .fpd-card__media img,
.fpd-popular-item__thumb img {
    aspect-ratio: 1 / 1;
}

.fpd-card--feature .fpd-card__media img,
.fpd-card--river .fpd-card__media img,
.fpd-card--archive .fpd-card__media img,
.fpd-card--search .fpd-card__media img,
.fpd-feature__media img,
.fpd-story-hero img {
    aspect-ratio: 16 / 10;
}

.fpd-widget {
    padding: 0;
}

.fpd-widget__content {
    padding: 1.2rem;
}

.fpd-widget-title,
.fpd-related__head h2 {
    margin: 0;
    font-size: 1.82rem;
}

.fpd-search-form {
    display: flex;
    gap: 0.7rem;
}

.fpd-search-field {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(24, 53, 54, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--fpd-ink);
}

.fpd-search-field::placeholder {
    color: #7d8f8b;
}

.fpd-latest-item,
.fpd-popular-item {
    display: grid;
    gap: 0.9rem;
    padding: 0.95rem 0;
}

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

.fpd-popular-item {
    grid-template-columns: 90px 1fr;
    align-items: start;
}

.fpd-latest-list li + li .fpd-latest-item,
.fpd-popular-list li + li .fpd-popular-item {
    border-top: 1px solid rgba(24, 53, 54, 0.08);
}

.fpd-latest-item__title,
.fpd-popular-item__title {
    font-size: 1.08rem;
}

.fpd-widget__footer {
    padding: 0 1.2rem 1.2rem;
}

.fpd-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    margin-bottom: 1.2rem;
    color: var(--fpd-ink-soft);
    font-size: 0.88rem;
}

.fpd-story-panel {
    padding: 1.7rem;
}

.fpd-story-header h1 {
    font-size: clamp(3rem, 5vw, 5rem);
}

.fpd-story-hero {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: calc(var(--fpd-radius-lg) - 8px);
}

.fpd-story-content {
    color: var(--fpd-ink-soft);
    font-size: 1.05rem;
}

.fpd-story-content > *:first-child {
    margin-top: 0;
}

.fpd-story-content > *:last-child {
    margin-bottom: 0;
}

.fpd-story-content h2,
.fpd-story-content h3,
.fpd-story-content h4 {
    color: var(--fpd-ink);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
    font-weight: 700;
    line-height: 1.04;
}

.fpd-story-content a {
    color: var(--fpd-jade);
    text-decoration: underline;
    text-decoration-color: rgba(19, 138, 101, 0.22);
}

.fpd-story-content blockquote {
    margin: 1.5rem 0;
    padding: 1.25rem 1.35rem;
    border-left: 3px solid var(--fpd-lotus);
    border-radius: 0 18px 18px 0;
    background: rgba(239, 111, 152, 0.08);
    color: var(--fpd-ink);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
    font-size: 1.34rem;
}

.fpd-story-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.7rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(24, 53, 54, 0.08);
}

.fpd-tag-list a,
.fpd-share-list a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.5rem 0.85rem;
    margin: 0 0.35rem 0.35rem 0;
    border-radius: 999px;
    border: 1px solid rgba(24, 53, 54, 0.08);
    background: rgba(255, 255, 255, 0.96);
    color: var(--fpd-ink-soft);
    font-size: 0.88rem;
}

.fpd-share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fpd-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fpd-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.4rem;
}

.fpd-pagination .page-numbers {
    min-width: 44px;
}

.fpd-pagination .current {
    color: var(--fpd-ink);
    border-color: rgba(19, 138, 101, 0.32);
    background: rgba(138, 205, 169, 0.24);
}

.fpd-page-panel h1 {
    margin-top: 0;
    font-size: clamp(2.45rem, 4vw, 4rem);
}

.fpd-comments h2 {
    margin-top: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
    font-size: 2rem;
}

.fpd-comments input,
.fpd-comments textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(24, 53, 54, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
}

.fpd-comments .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1.1rem;
    border: 1px solid rgba(19, 138, 101, 0.18);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(138, 205, 169, 0.26), rgba(255, 230, 238, 0.68));
    color: var(--fpd-ink);
    font-weight: 700;
}

.fpd-footer {
    padding: 0 0 1.5rem;
}

.fpd-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1fr;
    gap: 1rem;
    padding: 1.4rem 0 1rem;
}

.fpd-footer__card {
    padding: 1.2rem;
    border-radius: calc(var(--fpd-radius-lg) - 8px);
    border: 1px solid rgba(24, 53, 54, 0.08);
    background: rgba(255, 254, 251, 0.92);
    box-shadow: var(--fpd-shadow-soft);
    color: var(--fpd-ink-soft);
}

.fpd-footer__title {
    margin: 0 0 0.85rem;
    color: var(--fpd-ink);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Georgia", serif;
    font-size: 1.8rem;
    line-height: 1;
}

.fpd-footer__menu li + li,
.fpd-footer__utility li + li {
    margin-top: 0.55rem;
}

.fpd-footer__menu a,
.fpd-footer__utility a,
.fpd-footer__link {
    color: var(--fpd-ink-soft);
}

.fpd-footer__bottom {
    padding-top: 1rem;
    border-top: 1px solid rgba(24, 53, 54, 0.08);
    color: var(--fpd-ink-soft);
    font-size: 0.9rem;
}

@media (max-width: 1180px) {
    .fpd-layout,
    .fpd-reading-layout,
    .fpd-footer__grid,
    .fpd-related__grid,
    .fpd-lotusdeck,
    .fpd-petal-grid,
    .fpd-garden__grid,
    .fpd-river__grid,
    .fpd-archive-grid {
        grid-template-columns: 1fr;
    }

    .fpd-sidebar {
        position: static;
    }
}

@media (max-width: 980px) {
    body.admin-bar .fpd-masthead {
        top: 46px;
    }

    .fpd-menu-toggle {
        display: inline-flex;
    }

    .fpd-nav {
        display: none;
        width: 100%;
        order: 4;
        margin-left: 0;
    }

    .fpd-menu {
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.5rem;
    }

    .fpd-menu a {
        justify-content: center;
    }

    body.fpd-menu-open .fpd-nav {
        display: block;
    }

    .fpd-masthead__row {
        flex-wrap: wrap;
        padding: 0.8rem 0 1rem;
    }

    .fpd-cta {
        margin-left: auto;
    }
}

@media (max-width: 720px) {
    body.admin-bar .fpd-masthead {
        top: 0;
    }

    .fpd-shell {
        width: min(calc(100% - 1rem), var(--fpd-max));
    }

    .fpd-dewline__row,
    .fpd-ripple__head,
    .fpd-garden__head,
    .fpd-river__head,
    .fpd-widget__head,
    .fpd-archive-header,
    .fpd-story-header,
    .fpd-footer__bottom,
    .fpd-search-form,
    .fpd-story-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .fpd-cta,
    .fpd-search-submit {
        width: 100%;
    }

    .fpd-manifesto h1,
    .fpd-story-header h1 {
        font-size: clamp(2.35rem, 10vw, 4rem);
    }

    .fpd-card--stack,
    .fpd-card--related,
    .fpd-popular-item,
    .fpd-petal-grid {
        grid-template-columns: 1fr;
    }

    .fpd-panel,
    .fpd-widget,
    .fpd-lotusdeck,
    .fpd-petal-grid,
    .fpd-garden,
    .fpd-river,
    .fpd-archive-panel,
    .fpd-story-panel,
    .fpd-page-panel,
    .fpd-comments,
    .fpd-empty,
    .fpd-not-found {
        border-radius: 22px;
    }
}