.portal-block-updates {
    grid-row: auto !important;
    align-self: start;
}

.section-header-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 24px;
}

.section-header-card h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.profile-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px;
    text-align: center;
}

.portrait {
    width: 176px;
    height: 176px;
    flex: 0 0 176px;
    display: block;
    margin-bottom: 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.75), transparent 28%),
        linear-gradient(135deg, #c9e3db, #8aa2b7 46%, #ddbea4);
    color: #fff;
    font-size: 70px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38), 0 16px 34px rgba(42, 58, 68, 0.18);
    overflow: hidden;
}
.portrait img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 42%;
}
.portrait span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
    margin-bottom: 10px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1;
    letter-spacing: 0;
}
.profile-lead {
    max-width: 320px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 650;
}
.profile-detail-link {
    min-height: 40px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid color-mix(in srgb, #2f8be6 28%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, #2f8be6 8%, #fff);
    color: #236cb6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 850;
    transition: transform 160ms ease, background 160ms ease;
}
.profile-detail-link:hover {
    background: color-mix(in srgb, #2f8be6 14%, #fff);
    transform: translateY(-1px);
}
.profile-detail-link:focus-visible {
    outline: 3px solid color-mix(in srgb, #2f8be6 28%, transparent);
    outline-offset: 3px;
}
.hello-card {
    height: 100%;
    padding: 32px;
}
.eyebrow {
    margin: 0 0 12px;
    color: #2f8be6;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}
.hello-card h2,
.section-title h2 {
    margin-bottom: 14px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
}
.hello-card p:not(.eyebrow) {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    font-weight: 650;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.social-card {
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.26), transparent 28%),
        linear-gradient(135deg, color-mix(in srgb, var(--brand-color) 88%, #ffffff), var(--brand-color));
}
.social-card.card-size-wide { grid-column: span 2; }
.social-card.card-size-tall { min-height: 220px; }
.social-card.card-size-large { grid-column: span 2; min-height: 220px; }
.social-card span { font-size: 20px; font-weight: 850; }
.social-card small { margin-top: 6px; color: rgba(255,255,255,.72); font-weight: 700; }
.social-card.pending { opacity: .92; }

.map-peek {
    position: relative;
    display: block;
    min-height: 100%;
    height: 100%;
}
.map-peek img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    filter: saturate(.65) contrast(1.04) brightness(1.05);
}
.map-peek::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255,255,255,.66), rgba(255,255,255,0) 58%);
}
.map-peek span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 1;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    font-weight: 850;
}

.feature-card {
    position: relative;
    min-height: 100%;
    height: 100%;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.card-shape-soft { border-radius: 24px; }
.card-shape-rounded { border-radius: 32px; }
.card-shape-pill { border-radius: 999px; }
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}
.feature-card-link {
    position: absolute;
    inset: 0;
    display: block;
}
.feature-card-link > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 260ms ease;
}
.feature-card:hover .feature-card-link > img { transform: scale(1.035); }
.feature-card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 18, 22, .66), rgba(12, 18, 22, .20) 54%, rgba(12, 18, 22, .04));
}
.feature-card.no-preview .feature-card-link {
    background: linear-gradient(135deg, #ffffff, #edf0f5);
}
.feature-card.no-preview .feature-card-link::after { background: none; }
.feature-content {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 24px;
    color: #fff;
}
.no-preview .feature-content { color: var(--ink); }
.card-topline {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #33383d;
    font-size: 12px;
    font-weight: 840;
}
.feature-card h2 {
    margin-bottom: 10px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
}
.feature-card:nth-child(n + 3) h2 { font-size: clamp(28px, 3vw, 38px); }
.feature-card p {
    max-width: 560px;
    margin-bottom: 18px;
    color: rgba(255,255,255,.84);
    line-height: 1.75;
    font-weight: 620;
}
.no-preview .feature-card p { color: var(--muted); }
.card-link { font-weight: 850; }
.card-link::after { content: " ->"; }
.card-link.muted { color: var(--muted); }
.card-link.muted::after { content: ""; }

.photo-library-card {
    position: relative;
    min-height: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    color: #fff;
    text-decoration: none;
    background: #101820;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.photo-library-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}
.photo-library-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(10, 16, 20, .48), rgba(10, 16, 20, .06) 52%, rgba(10, 16, 20, .24));
}
.photo-library-head {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 26px;
    pointer-events: none;
}
.photo-library-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.08;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .42);
}
.photo-library-head .eyebrow {
    color: #2f8be6;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .34);
}
.photo-library-collage {
    height: 100%;
    min-height: 280px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(112px, 1fr);
    gap: 0;
    overflow: hidden;
    border-radius: 0;
    background: #101820;
}
.photo-library-collage.is-single {
    grid-template-columns: 1fr;
}
.photo-library-collage.is-single .photo-library-strip {
    display: none;
}
.photo-library-collage.is-main-landscape {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(86px, 1fr);
}
.photo-library-collage.is-single.is-main-landscape {
    grid-template-rows: 1fr;
}
.photo-library-main {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: block;
    object-fit: cover;
    transition: transform 260ms ease;
}
.photo-library-collage.is-main-landscape .photo-library-main {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
}
.photo-library-card:hover .photo-library-main { transform: scale(1.025); }
.photo-library-strip {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0;
    min-height: 0;
}
.photo-library-collage.is-main-landscape .photo-library-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
}
.photo-library-collage.is-main-landscape .photo-library-thumb {
    background-size: cover;
}
.photo-library-thumb {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    background-color: #fff;
    background-image: var(--photo-thumb);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.photo-library-empty {
    height: 100%;
    min-height: 280px;
    display: grid;
    place-items: center;
    padding: 28px;
    color: rgba(255, 255, 255, .86);
    text-align: center;
    background: linear-gradient(135deg, #2b3940, #526268);
}
.photo-library-empty span {
    max-width: 280px;
    font-size: 18px;
    font-weight: 780;
    line-height: 1.6;
}
.blog-latest-card {
    position: relative;
    min-height: 100%;
    height: 100%;
    display: block;
    border: 0;
    color: var(--ink);
    text-decoration: none;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, .94), transparent 36%),
        linear-gradient(145deg, #f8f3e9, #eef3f1);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.blog-latest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}
.blog-latest-card > img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 16px 26px rgba(38, 45, 52, .12));
    transition: transform 260ms ease;
}
.blog-latest-card:hover > img {
    transform: scale(1.025);
}
.blog-latest-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, .86) 76%, rgba(255, 255, 255, .98));
}
.blog-latest-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
}
.blog-latest-overlay .eyebrow {
    color: #2f8be6;
    text-shadow: none;
}
.blog-latest-overlay h2 {
    max-width: 760px;
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}
.blog-empty-card {
    min-height: 100%;
    height: 100%;
    padding: 28px;
    background: linear-gradient(135deg, #ffffff, #eef3f1);
}
.blog-empty-card h2 {
    margin-bottom: 10px;
    font-size: clamp(26px, 3vw, 38px);
}
.blog-empty-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.7;
}

.presentation-home-card {
    min-height: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr);
    overflow: hidden;
    border-radius: 24px;
    clip-path: inset(0 round 24px);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    color: #fff;
    text-decoration: none;
    background: #102f35;
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.presentation-home-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}
.presentation-home-card > img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    display: block;
    object-fit: contain;
    background: #eef2ef;
}
.presentation-home-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 46px);
    background: linear-gradient(145deg, #102f35, #1d4850);
}
.presentation-home-content .eyebrow { color: #ff718b; }
.presentation-home-content h2 {
    margin: 0 0 22px;
    font-size: clamp(28px, 4vw, 48px);
}
.presentation-home-content h3 {
    margin: 0 0 12px;
    font-size: clamp(22px, 2.5vw, 34px);
    line-height: 1.25;
}
.presentation-home-content p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.76);
    line-height: 1.7;
}
.presentation-home-content span { font-weight: 850; }
.portal-block-presentation.is-presentation-narrow .presentation-home-card,
.portal-block-presentation.is-presentation-shallow .presentation-home-card {
    grid-template-columns: minmax(0, 1fr);
}
.portal-block-presentation.is-presentation-narrow .presentation-home-content,
.portal-block-presentation.is-presentation-shallow .presentation-home-content {
    min-width: 0;
    padding: clamp(18px, 2.4vw, 30px);
}
.portal-block-presentation.is-presentation-narrow .presentation-home-content h2,
.portal-block-presentation.is-presentation-shallow .presentation-home-content h2 {
    margin-bottom: 12px;
    font-size: clamp(23px, 3vw, 34px);
}
.portal-block-presentation.is-presentation-narrow .presentation-home-content h3,
.portal-block-presentation.is-presentation-shallow .presentation-home-content h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: clamp(18px, 2.2vw, 26px);
}
.portal-block-presentation.is-presentation-narrow .presentation-home-content p,
.portal-block-presentation.is-presentation-shallow .presentation-home-content p {
    display: none;
}
.portal-block-presentation.is-presentation-micro-width .presentation-home-content h3,
.portal-block-presentation.is-presentation-micro-height .presentation-home-content .eyebrow,
.portal-block-presentation.is-presentation-micro-height .presentation-home-content h3 {
    display: none;
}
.portal-block-presentation.is-presentation-micro-width .presentation-home-content,
.portal-block-presentation.is-presentation-micro-height .presentation-home-content {
    padding: 14px;
}
.portal-block-presentation.is-presentation-micro-width .presentation-home-content h2,
.portal-block-presentation.is-presentation-micro-height .presentation-home-content h2 {
    margin-bottom: 8px;
    font-size: clamp(19px, 2.2vw, 26px);
    line-height: 1.12;
}
.portal-block-presentation.is-presentation-micro-width .presentation-home-content span,
.portal-block-presentation.is-presentation-micro-height .presentation-home-content span {
    font-size: 13px;
}
.portal-block-presentation.is-presentation-micro-width.is-presentation-micro-height .presentation-home-content {
    padding: 10px;
}
.portal-block-presentation.is-presentation-micro-width.is-presentation-micro-height .presentation-home-content h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.05;
}
.portal-block-presentation.is-presentation-micro-width.is-presentation-micro-height .presentation-home-content span {
    display: none;
}
.presentation-home-empty {
    min-height: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    padding: 32px;
    border-radius: 24px;
    clip-path: inset(0 round 24px);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    color: #fff;
    text-decoration: none;
    background: linear-gradient(145deg, #102f35, #315c63);
    transition: transform 180ms ease, box-shadow 180ms ease;
}
.presentation-home-empty:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}
.presentation-home-empty h2 { font-size: clamp(28px, 4vw, 48px); }
.presentation-home-empty span { font-weight: 850; }
.updates-panel {
    min-height: 100%;
    height: auto;
    margin-top: 0;
    padding: 24px;
    overflow: visible;
}
.section-heading h2 { margin-bottom: 16px; font-size: 24px; }
.update-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 37px;
    margin: 0 0 14px;
    padding: 0 6px 0;
    border-bottom: 1px solid rgba(23, 25, 28, 0.16);
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.update-tabs::-webkit-scrollbar { display: none; }
.update-tab {
    position: relative;
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 92px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-bottom-color: rgba(23, 25, 28, 0.16);
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #eceff2 100%);
    color: #69717a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 760;
    line-height: 1;
    box-shadow: inset 0 -1px 0 rgba(23, 25, 28, 0.04);
}
.update-tab + .update-tab { margin-left: -1px; }
.update-tab:hover {
    color: var(--ink);
    background: linear-gradient(180deg, #ffffff 0%, #f2f4f6 100%);
}
.update-tab:focus-visible {
    outline: 3px solid rgba(43, 135, 163, 0.28);
    outline-offset: -1px;
}
.update-tab.is-active {
    z-index: 1;
    border-color: rgba(23, 25, 28, 0.16);
    border-bottom-color: var(--card);
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 var(--card);
}
.update-list { display: grid; gap: 10px; }
.update-item {
    border-top: 1px solid var(--line);
}
.update-item.is-hidden {
    display: none;
}
.update-card-link {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    color: inherit;
    text-decoration: none;
    border-radius: 12px;
}
.update-card-link[href]:hover h3 { text-decoration: underline; }
.update-card-link[href]:focus-visible {
    outline: 3px solid rgba(43, 135, 163, 0.28);
    outline-offset: 3px;
}
.update-index { color: var(--muted); font-weight: 850; }
.update-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.update-source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--badge-color, #2f6f73) 36%, transparent);
    background: color-mix(in srgb, var(--badge-color, #2f6f73) 13%, white);
    color: color-mix(in srgb, var(--badge-color, #2f6f73) 72%, #162422);
    line-height: 1.2;
}
.update-source-badge.source-piano { --badge-color: #6578e8; }
.update-source-badge.source-goshuin { --badge-color: #c73a2d; }
.update-source-badge.source-booklog { --badge-color: #50c0e0; }
.update-source-badge.source-retty { --badge-color: #ffa014; }
.update-source-badge.source-presentation { --badge-color: #8b5cf6; }
.update-relative-time {
    color: color-mix(in srgb, var(--muted) 82%, var(--ink));
}
.update-item h3 { margin-bottom: 4px; font-size: 16px; }
.update-item p { margin-bottom: 0; color: var(--muted); line-height: 1.7; }
