/* E2 homepage composition from the accepted B19 reference.
   Real content, destinations and availability remain in index.php. */
html .p23-main.p23-e2-home {
    padding-top: 0;
    padding-bottom: 28px;
}
html .p23-e2-home :is(h1,h2) { text-transform: uppercase; }
html .p23-e2-home h2 { font-size: 29px; line-height: 1.18; font-weight: 700; margin: 0 0 24px; text-align: left; }
html .p23-e2-home h3 { line-height: 1.25; }
html .p23-e2-home [id] { scroll-margin-top: 24px; }
html .p23-e2-home:focus,
html .p23-e2-home-help:focus { outline: none; }

html .p23-e2-home .p23-e2-hero { padding: 36px 0 24px; text-align: left; }
html .p23-e2-home .p23-e2-hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.035em;
    max-width: 900px;
    margin: 0 0 26px;
    text-shadow: none;
}
html .p23-e2-home .p23-e2-hero h1 span { font-size: .65em; letter-spacing: -.035em; }
html .p23-e2-home .p23-e2-topic-heading {
    color: var(--p23-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .1em;
    margin: 0 0 15px;
}
html .p23-e2-home .p23-e2-topic-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
html .p23-e2-home .p23-e2-topic {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 20px 15px;
    border: 1px solid #d00000;
    border-radius: 5px;
    background: #b00000 linear-gradient(#00000014,#00000014);
    background-image: linear-gradient(#00000014,#00000014),var(--p23-orwal);
    background-position: center;
    background-size: auto 100%;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 3px 12px var(--p23-shadow),0 0 14px var(--p23-glow);
}
html .p23-e2-home .p23-e2-topic:hover { color: #fff; filter: brightness(1.12); box-shadow: 0 5px 15px var(--p23-shadow),0 0 29px var(--p23-glow); }
html .p23-e2-home .p23-e2-discovery { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 23px 0 0; }
html .p23-e2-home .p23-e2-discovery p { font-size: 13px; line-height: 1.6; margin: 0; }
html .p23-e2-home .p23-e2-discovery-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
html .p23-e2-home .p23-e2-discovery .p23-button {
    background: transparent;
    border: 1px solid var(--p23-border);
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 3px 10px var(--p23-shadow),0 0 18px var(--p23-glow);
}

/* B10–B19: full descriptions and actions in compact, aligned help cards. */
html .p23-e2-home .p23-e2-home-help { padding: 32px 0 40px; margin: 0; }
html .p23-e2-home .p23-e2-home-help > h2 { font-size: 26px; margin: 0 0 24px; }
html .p23-e2-home .p23-help-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 0; }
html .p23-e2-home .p23-help-card {
    display: grid;
    grid-template-columns: 24px minmax(0,1fr);
    grid-template-rows: auto 1fr auto;
    gap: 12px 16px;
    padding: 24px;
    align-items: start;
    min-width: 0;
    min-height: 0;
    border: 1px solid var(--p23-line);
    border-radius: 7px;
    background: var(--p23-panel);
    box-shadow: none;
    text-align: left;
}
html .p23-e2-home .p23-help-card__icon { position: static; grid-column: 1; grid-row: 1 / span 3; width: 24px; height: 24px; margin: 0; opacity: 1; }
html .p23-e2-home .p23-help-card__icon::before { background: var(--p23-text); filter: none; }
html .p23-e2-home .p23-help-card h3 { grid-column: 2; padding: 0; margin: 0; min-height: 0; font-size: 18px; line-height: 1.35; text-align: left; justify-self: start; }
html .p23-e2-home .p23-help-card p { grid-column: 2; display: block; margin: 0; min-height: 0; font-size: 14px; line-height: 1.6; color: var(--p23-muted); }
html .p23-e2-home .p23-help-card__action {
    grid-column: 2;
    align-self: end;
    justify-self: start;
    justify-content: flex-start;
    min-height: 44px;
    padding: 4px 0;
    margin: 4px 0 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--p23-text);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
    box-shadow: none;
}
html .p23-e2-home .p23-help-card--disabled { border-style: dashed; background: var(--p23-bg-alt); color: var(--p23-muted); }
html .p23-e2-home .p23-help-card--disabled .p23-help-card__icon::before { background: var(--p23-muted); }
html .p23-e2-home .p23-help-card--disabled .p23-help-card__action { color: var(--p23-muted); text-decoration: none; opacity: 1; }
/* Cards in the same desktop/tablet row share title, copy and action tracks.
   The icon remains a native grid item in its own column, spanning all rows. */
@supports(grid-template-rows:subgrid){
    @media(min-width:601px){
        html .p23-e2-home .p23-help-grid{row-gap:12px}
        html .p23-e2-home .p23-help-card{grid-row:span 3;grid-template-rows:subgrid;row-gap:12px}
        html .p23-e2-home .p23-help-card h3{grid-row:1}
        html .p23-e2-home .p23-help-card p{grid-row:2}
        html .p23-e2-home .p23-help-card__action{grid-row:3}
    }
}

html .p23-e2-home .p23-e2-home-section { padding: 30px 0; margin: 0; }
html .p23-e2-home .p23-e2-section-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 23px; }
html .p23-e2-home .p23-e2-section-title h2 { margin: 0; }
html .p23-e2-home .p23-e2-text-link { padding: 9px 0; background: none; border: 0; color: var(--p23-text); font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
html .p23-e2-home .p23-e2-section-title .p23-e2-text-link { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--p23-border); border-radius: 4px; background: var(--p23-bg-alt); font-size: 14px; line-height: 1.5; text-decoration: none; white-space: normal; }
html .p23-e2-home .p23-e2-section-title .p23-e2-text-link:is(:hover,:focus-visible) { border-color: var(--p23-text); color: var(--p23-text); }
/* Keep the complete original project explanation in quieter B19 columns. */
html .p23-e2-home .p23-home-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 32px; margin-top: 0; }
html .p23-e2-home .p23-home-grid--wide { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 32px; }
html .p23-e2-home .p23-home-card { border: 0; border-radius: 0; background: none; padding: 0; gap: 16px; min-width: 0; min-height: 0; text-align: left; }
html .p23-e2-home .p23-e2-home-about > h2 { margin-bottom: 16px; }
html .p23-e2-home .p23-home-card h3 { font-size: 19px; min-height: 0; display: block; text-align: left; margin: 0; }
html .p23-e2-home .p23-home-card p { font-size: 14px; color: var(--p23-ink-soft); line-height: 1.65; margin: 0; }
html .p23-e2-home .p23-home-copy { max-width: 860px; text-align: left; margin: 0; color: var(--p23-ink-soft); }
html .p23-e2-home .p23-home-copy p { font-size: 16px; line-height: 1.8; }
html .p23-e2-home .p23-yt-width50 { width: min(100%,740px); margin: 28px 0 0; }
html .p23-e2-home .p23-yt-width50 iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
html .p23-e2-home .p23-yt-flex { gap: 24px; }
html .p23-e2-home .p23-e2-home-videos > p { font-size: 16px !important; line-height: 1.7; }
@media(min-width:1000px){
    html .p23-e2-home .p23-e2-home-why{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 32px;align-items:start}
    html .p23-e2-home .p23-e2-home-why > h2{grid-column:1 / -1;margin:0}
    html .p23-e2-home .p23-e2-home-why > .p23-home-copy{max-width:none}
    html .p23-e2-home .p23-e2-home-why > .p23-yt-width50{width:100%;max-width:none;margin:0}
    html .p23-e2-home .p23-e2-home-why .p23-video{margin:0}
}

html .p23-e2-home .p23-e2-cafe-banner { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: start; gap: 24px; padding: 26px 30px; border: 1px solid #d00000; border-radius: 7px; background: var(--p23-panel); }
html .p23-e2-home .p23-e2-cafe-banner > .p23-icon { width: 36px; height: 36px; }
html .p23-e2-home .p23-e2-cafe-banner > div { min-width: 0; }
html .p23-e2-home .p23-e2-cafe-banner h2 { font-size: 24px; margin: 0 0 8px; }
html .p23-e2-home .p23-e2-cafe-banner p { color: var(--p23-muted); font-size: 15px; line-height: 1.75; max-width: 66ch; margin: 0; }
html .p23-e2-home .p23-e2-cafe-banner > .p23-button { align-self: center; margin: 0; background: #b00000 linear-gradient(#00000014,#00000014); background-image: linear-gradient(#00000014,#00000014),var(--p23-orwal); background-size: auto 100%; background-position: center; border-color: #d00000; color: #fff; box-shadow: 0 4px 12px var(--p23-shadow),0 0 23px var(--p23-glow); }

@media (min-width: 1450px) {
    html .p23-main.p23-e2-home { width: min(1160px,calc(100% - 64px)); max-width: 1160px; }
}
@media (max-width: 860px) {
    html .p23-main.p23-e2-home { width: calc(100% - 40px); }
    html .p23-e2-home .p23-e2-hero h1 { font-size: 42px; }
    html .p23-e2-home .p23-e2-topic { font-size: 23px; }
    html .p23-e2-home .p23-e2-discovery { flex-wrap: wrap; }
    html .p23-e2-home .p23-help-grid { gap: 16px; }
    html .p23-e2-home .p23-help-card { padding: 20px 16px; gap: 12px; }
}
@media (max-width: 600px) {
    html .p23-main.p23-e2-home { width: calc(100% - 32px); }
    html .p23-e2-home .p23-e2-hero { padding: 28px 0 16px; }
    html .p23-e2-home .p23-e2-hero h1 { font-size: 36px; line-height: 1.13; max-width: none; margin-bottom: 25px; }
    html .p23-e2-home .p23-e2-hero h1 span { display: block; font-size: 22px; line-height: 1.3; margin: 6px 0 0; }
    html .p23-e2-home .p23-e2-topic-heading { font-size: 11px; }
    html .p23-e2-home .p23-e2-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    html .p23-e2-home .p23-e2-topic { min-height: 78px; padding: 17px 12px; font-size: 23px; }
    html .p23-e2-home .p23-e2-discovery { display: block; margin-top: 22px; }
    html .p23-e2-home .p23-e2-discovery p { margin-bottom: 12px; font-size: 12px; }
    html .p23-e2-home .p23-e2-discovery-actions { justify-content: flex-start; gap: 8px; }
    html .p23-e2-home .p23-e2-discovery .p23-button { font-size: 11px; padding: 9px 10px; }
    html .p23-e2-home .p23-e2-home-help { padding: 24px 0 32px; }
    html .p23-e2-home .p23-e2-home-help > h2 { font-size: 24px; margin-bottom: 20px; }
    html .p23-e2-home .p23-help-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
    html .p23-e2-home .p23-help-card { padding: 20px; gap: 12px 16px; }
    html .p23-e2-home .p23-help-card h3 { font-size: 18px; }
    html .p23-e2-home .p23-e2-home-section { padding-block: 26px; }
    html .p23-e2-home .p23-e2-section-title { align-items: flex-end; gap: 12px; }
    html .p23-e2-home .p23-e2-section-title h2 { font-size: 24px; }
    html .p23-e2-home .p23-e2-section-title .p23-e2-text-link { font-size: 13px; white-space: normal; }
    html .p23-e2-home .p23-home-grid,
    html .p23-e2-home .p23-home-grid--wide { grid-template-columns: minmax(0,1fr); gap: 28px; }
    html .p23-e2-home .p23-home-card { padding: 0; }
    html .p23-e2-home .p23-yt-flex { flex-direction: column; }
    html .p23-e2-home .p23-yt-item { width: 100%; max-width: 100%; }
    html .p23-e2-home .p23-e2-cafe-banner { grid-template-columns: minmax(0,1fr); padding: 24px; gap: 18px; }
    html .p23-e2-home .p23-e2-cafe-banner > .p23-icon { width: 28px; height: 28px; }
    html .p23-e2-home .p23-e2-cafe-banner > .p23-button { justify-self: start; min-height: 44px; }
}
@media (max-width: 360px) {
    html .p23-e2-home .p23-e2-topic { font-size: 21px; }
}

html .p23-e2-home .p23-help-card h3 { text-transform: none; }
html .p23-e2-home .p23-help-card__action::before { display: none; }
html .p23-e2-home .p23-e2-discovery .p23-button { border-color: #d00000; }
html .p23-e2-home .p23-help-card__icon { color: var(--p23-text); stroke: currentColor; fill: none; }

/* The homepage deliberately renders three latest posts, so its grid uses
   those three columns rather than reserving a fourth auto-fill track. */
html .p23-e2-home #newest > .p23-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){html .p23-e2-home #newest > .p23-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
    html .p23-e2-home #newest > .p23-card-grid{grid-template-columns:minmax(0,1fr)}
    html .p23-e2-home .p23-e2-discovery-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px}
    html .p23-e2-home .p23-e2-discovery-actions > .p23-button{width:100%;min-width:0;min-height:44px;justify-content:center;white-space:normal;text-align:center}
    html .p23-e2-home .p23-e2-discovery-actions > .p23-button:last-child{grid-column:1 / -1}
}

/* Mobile home postcards use their native wide source above the text.
   Desktop portrait compositions and all other collections keep their layout. */
@media(max-width:600px){
    html .p23-e2-home .p23-card-grid.p23-e2-featured-grid > .p23-e2-card{display:flex;flex-direction:column}
    html .p23-e2-home .p23-card-grid.p23-e2-featured-grid > .p23-e2-card .p23-card__thumb{position:static;align-self:start;width:100%;height:auto;aspect-ratio:16 / 9}
    html .p23-e2-home .p23-card-grid.p23-e2-featured-grid > .p23-e2-card .p23-card__thumb picture{position:static;inset:auto;width:100%;height:100%}
    html .p23-e2-home .p23-card-grid.p23-e2-featured-grid > .p23-e2-card .p23-card__thumb img{object-fit:contain}
    html .p23-e2-home .p23-card-grid.p23-e2-featured-grid > .p23-e2-card .p23-card__body{padding:19px}
    html .p23-e2-home .p23-card-grid.p23-e2-featured-grid > .p23-e2-card .p23-card__title,
    html .p23-e2-home .p23-card-grid.p23-e2-featured-grid > .p23-e2-card .p23-card__title a{font-size:25px}
}
