/* CSS

1: Core styles
2: Typography
3: Header and footer
4: Layout
5: Forms + pagination
7: Admin
7: Icons
8: Other css styles (i.e. splash screen)

Blue  295073
Rust  a62d2d
Yellow  f29f05
Red   f23838
*/

a {
    color: #666;
}

a:hover,
a.on,
p.credit a:hover {
    color: #a62d2d;
}

nav a:hover,
story.summary a:hover p {
    color: #295073;
}

/**********************/
/* 1:   CORE STYLES   */
/**********************/

* {
    box-sizing: border-box;
}

body {
    margin-bottom: 2em;
    margin-left: 2em;
    margin-right: 2em;
    color: #666;
    background-color: #f7f7f5;
}

body.splash-active {
    margin: 0 !important; /* override your 2em margins */
    padding: 0 !important;
    overflow: hidden !important;
}

.hidden {
    display: none;
}
/**********************/
/* 2:   TYPOGRAPHY    */
/**********************/

body {
    font-family: 'Inter', 'Arial', sans-serif;
    font-size: 100%; /* 16px */
}

a {
    text-decoration: none;
}

h1 {
    font-size: 1.8em;
}

h1,
h2 {
    font-weight: 700;
    margin: 0 0 0.14em 0;
}

p {
    margin: 0 0 1em 0;
}

.date,
p.credit,
p.member {
    font-size: 0.7rem;
}

.member-options {
    line-height: 2em;
}

p.credit {
    text-transform: uppercase;
}

p.credit a {
    font-weight: bold;
    color: inherit;
}

story.summary p {
    line-height: 1em;
}

nav li {
    font-weight: 700;
    line-height: 0.8em;
}

.center {
    text-align: center;
}

/**********************/
/* 3: HEADER + FOOTER */
/**********************/
header {
    background: #e9e8e6;
    min-height: 50px;
    margin-bottom: 2em;
    position: relative;
}

header > div.container {
    align-items: center;
}

header h1 {
    line-height: 0.5em;
    margin-bottom: 0;
}

header div.logo img {
    max-width: 100%;
    max-height: 400px;
    margin: 5px 0px;
}

header button {
    position: absolute;
    right: 1em;
    top: 2em;
    padding: 5px 7px;
    background-color: #295073;
    color: #fff;
    border-radius: 5px;
    border-width: 0;
    font-size: 1em;
    display: none;
}

@media (min-width: 340px) {
    header button {
        top: 2.2em;
    }
}
@media (min-width: 410px) {
    header button {
        top: 2.4em;
    }
}
@media (min-width: 460px) {
    header button {
        top: 2.6em;
    }
}

header button:hover {
    cursor: pointer;
}

header nav ul {
    padding: 0.5rem 0 0.1rem 0;
    margin: 0;
    clear: left;
}

header nav li {
    list-style-type: none;
    display: inline-block;
    padding-right: 0.5em;
}

.js header nav ul {
    display: none;
}

.js header nav li {
    margin-bottom: 1em;
    display: block;
}

.js header nav button {
    display: block;
}

header nav ul.is-active {
    display: block;
}

nav .icon-search {
    display: none;
}

nav .search-text {
    display: inline-block;
    padding-bottom: 10px;
}

.skip-link {
    position: fixed;
    top: -200px;
    left: 50%;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: #8b8885;
    color: #fff;
    padding: 5px;
    outline: none;
}

.skip-link:focus {
    top: 0;
}

.member-menu {
    color: #999;
    padding: 0 0.2em;
    min-height: 1.6em;
    text-align: left;
    font-size: 0.9rem;
    border-bottom: 1px solid #999;
}

.member-menu a {
    color: #666;
    padding: 0.3rem 0;
    display: inline-block;
    font-weight: bold;
    font-size: 90%;
}

.member-menu a:hover {
    color: #295073;
}

@media (min-width: 760px) {
    .member-menu {
        text-align: right;
    }

    header > div.container {
        display: flex;
    }

    header .logo {
        flex: 1;
    }

    header nav {
        flex: 2;
    }

    header button {
        display: none;
    }

    header div.logo img {
        max-width: 93%;
        max-height: 75px;
    }

    header nav li {
        padding-right: 0;
        font-size: 1.2em;
    }

    .js header nav ul {
        display: block;
        text-align: right;
    }

    .js header nav li {
        display: inline-block;
        margin: 0;
    }

    .js header nav button {
        display: none;
    }

    header nav li::after {
        content: ' / ';
        font-weight: normal;
        color: #a39f9c;
    }

    header nav li:last-child::after,
    header nav li:nth-last-child(2)::after {
        content: '';
    }

    .header-admin nav li:nth-last-child(2)::after {
        content: ' / ';
    }

    nav .icon-search {
        display: inline-block;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        color: #a39f9c;
    }

    nav .search-text {
        display: none;
    }
}

footer {
    clear: both;
    font-size: 0.8rem;
    text-align: right;
    color: #a39f9c;
    padding: 1rem 0;
}

/**********************/
/* 4:    LAYOUT       */
/**********************/

.container {
    column-count: 4;
    margin: 0 auto 0 auto;
    max-width: 94%;
}
.container1 {
    column-count: 1;
    margin: 0 auto 0 auto;
    max-width: 90%;
}

/* Splash screen container */

/* Hide header while splash is visible */
body.splash-active header {
    display: none !important;
}

/* Splash screen container stays fixed full-viewport */
.splash-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh; /* fallback */
    height: 100dvh; /* modern */

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    background-color: #000;
    z-index: 2147483647;
}

/* Force image to fill viewport height (no crop) */
.splash-screen img {
    display: block !important;

    height: 100dvh !important; /* modern browsers */
    height: 100vh !important; /* fallback */

    width: auto !important; /* preserve aspect ratio */
    max-width: 100vw !important; /* allow side filler if needed */

    object-fit: contain !important;
}

.splash-screen {
    background: #000;
}

/* Hidden state */
.splash-screen.hidden {
    display: none;
}

/* Hide reCAPTCHA badge during splash */
body.splash-active .grecaptcha-badge {
    display: none !important;
}

@media (min-width: 1240px) {
    .container {
        max-width: 1200px;
    }
}

.grid {
    display: grid;
    gap: 2em;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.grid {
    display: grid;
    margin: 5em auto 1em auto;
    grid-template-columns: 250px 250px 250px 250px;
}

/* --- Uniform story grid thumbnails --- */
.grid story img.story-thumb {
    width: 100%;
    height: 180px; /* adjust: 160–210 for taste */
    object-fit: cover; /* crop edges to fill the box */
    object-position: center center;
    display: block;
}

/* Reduce “cropped heads” on portrait thumbs */
.grid story img.story-thumb.thumb-portrait {
    object-position: top center;
}

@media (min-width: 860px) {
    main.story,
    .admin-story {
        display: grid;
        grid-gap: 2em;

        grid-template-columns: 1.4fr 0.6fr;
        margin-bottom: 2em;
    }
    main.blog1 {
        display: grid;
        grid-gap: 2em;

        grid-template-columns: 1fr 2fr;
        margin-bottom: 2em;
        margin-left: 2em;
        margin-right: 2em;
    }
    main.blog {
        display: grid;
        grid-gap: 2em;

        grid-template-columns: 1fr 3fr;
        margin-bottom: 2em;
        margin-left: 2em;
        margin-right: 2em;
    }
}

main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

story.summary img {
    margin-bottom: 0.5em;
}

story.summary img:hover {
    opacity: 0.6;
}

story.summary p {
    margin: 0 0 0.6em 0;
}

.date {
    display: block;
    margin: 0 0 1.2em 0;
}

.text h1 {
    margin-bottom: 0.5em;
}

.text .content {
    margin: 0 0 1em 0;
    line-height: 1.5em;
}

/* Styles are for top of menu, member and admin list pages */

.header {
    text-align: center;
    margin-bottom: 2em;
    text-transform: uppercase;
}

.header h1 {
    color: #295073;
    border: 3px solid #295073;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 0.2em 0.5em;
}

.header p {
    font-size: 80%;
    padding-top: 0.5em;
    position: relative;
}

.header img,
img.profile {
    max-width: 70px;
    border-radius: 50%;
}

/*************************/
/* 5: FORMS & PAGINATION */
/*************************/
button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.btn,
.btn-search {
    color: #fff;
    background: #295073;
    display: inline-block;
    width: min-content;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 0.1rem 0.5rem;
    line-height: 1.5;
    vertical-align: middle;
    text-transform: uppercase;
}

.btn {
    font-size: 0.9rem;
}

.btn:hover {
    color: #fff;
    background: #666;
    cursor: pointer;
}

.btn-primary {
    background-color: #295073;
    border-color: #295073;
}
.btn-primary:hover {
    background-color: #137ad7;
    border-color: #137ad7;
}

.btn-secondary {
    color: #333;
    background: #e1e0de;
}
.btn-secondary:hover {
    color: #fff;
    background: #717170;
}

.btn-danger {
    background-color: #a62d2d;
}
.btn-danger:hover {
    background: #666;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* ---------- ADMIN FORMS ---------- */

main.admin form {
    display: block;
}

main.admin .form-group {
    display: block;
    margin-bottom: 1rem;
}

main.admin label {
    display: block;
    margin-bottom: 0.25rem;
}

main.admin input[type='text'],
main.admin input[type='submit'] {
    display: block;
    width: 100%;
    max-width: 600px;
}

label {
    display: inline-block;
}

textarea {
    min-height: 7rem;
    min-width: 25rem;
}

input[type='checkbox'],
input[type='radio'] {
    position: absolute;
    margin-top: 0.3rem;
    margin-left: -1.25rem;
    padding: 0;
}

.form-check {
    position: relative;
    display: block;
    padding-left: 1.25rem;
}

input[type='submit'] {
    float: right;
    margin-bottom: 1rem;
}

input[type='submit']:hover {
    cursor: pointer;
}

.form-control-file {
    display: block;
    width: 100%;
}

.form-control.input-digit {
    width: calc(3ch + 5rem);
    min-width: calc(3ch + 5rem);
    max-width: calc(3ch + 5rem);
    display: inline-block;
    padding: 0.25rem 0.5rem; /* optional: tighten padding */
}

.form-group {
    margin-bottom: 1rem;
}


.errors {
    color: #a62d2d;
    font-weight: bold;
}

textarea#summary {
    min-height: 4rem;
    height: 50px;
    resize: none;
    overflow: auto;
}

textarea#description {
    min-height: 4rem;
    height: 50px;
    resize: none;
    overflow: auto;
}

textarea#message {
    min-height: 4rem;
    height: 100px;
    resize: none;
    overflow: auto;
}

textarea#content {
    min-height: 12rem;
}

.form-membership,
.form-contact,
.narrow {
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 760px) {
    .form-membership,
    .form-contact,
    .narrow {
        min-width: 400px;
        width: min-content;
        margin: 0 auto;
    }
}

/* SEARCH */
.form-search {
    margin-bottom: 1rem;
}

.form-search label span {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.form-search input:focus {
    outline: none;
}

.form-search input[type='text'] {
    padding: 0.1rem 0.5rem;
    line-height: 1.5;
    vertical-align: bottom;
    border-top: 1px solid #8b8885;
    border-right: none;
    border-bottom: 1px solid #8b8885;
    border-left: 1px solid #8b8885;
    border-radius: 4px 0 0 4px;
}

.form-search .btn {
    /* -webkit-appearance: none;  */
    border-radius: 0 4px 4px 0;
    font-size: 1rem;
}

.form-search input[type='submit'] {
    float: none;
    margin-bottom: 0;
}

.input-digit {
    display: inline-block;
    width: calc(3ch + 5rem);
    min-width: calc(3ch + 5rem);
    max-width: calc(3ch + 5rem);
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
    box-sizing: border-box;
}

/* PAGINATION */
nav.pagination {
    text-align: center;
}

.pagination ul {
    display: inline-block;
    list-style-type: none;
    margin: 0 0 2em 0;
    padding: 0;
}

.pagination ul li {
    display: inline-block;
}

.pagination a.active {
    color: #295073;
    border: 1px solid #295073;
    background-color: #fff;
}

/* ALERTS */
.alert {
    background: #fff;
    border: 1px solid transparent;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #a62d2d;
    background: #f8d7da;
    border-color: #a62d2d;
}

.alert-success {
    color: #155724;
    background: #d1e7dd;
    border-color: #c3e6cb;
}

/**********************/
/* 6: ADMIN           */
/**********************/
.admin h1 {
    margin-bottom: 1em;
}

table {
    width: 100%;
    margin-top: 2rem;
    table-layout: fixed;
    background-color: transparent;
    border-collapse: collapse;
}

table.admin,
table.menus {
    max-width: 700px;
    margin: 0 auto;
}

th {
    text-align: left;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: normal;
    border-bottom: 1px solid #d6d6d6;
    padding: 0.75rem;
    vertical-align: top;
}

td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

td img {
    max-width: 200px;
}

p.alt {
    margin-top: 0.5em;
}

.text-center {
    text-align: center;
}

.img-centered {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
}

.delete-text {
    margin: 1rem 0 1.5rem;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 860px) {
    th.edit,
    th.view {
        width: 5em;
    }
    th.create,
    th.del,
    th.pub {
        width: 7em;
    }
    th.created {
        width: 9em;
    }
}

.image-placeholder {
    background-color: #d6d6d6;
    background-image: url(../uploads/blank.png);
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    width: 100%;
    min-height: 23.5em;
    text-align: center;
    padding: 1em;
    color: #333;
}

.password-wrap { position: relative; display: flex; align-items: center; }
.password-wrap input { flex: 1; padding-right: 2.5rem; }
.pw-toggle {
  position: absolute;
  right: .5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1;
  padding: .25rem;
}


/**********************/
/* 7: ICONS           */
/**********************/

@font-face {
    font-family: 'icons';
    src: url('../font/icons/icons.eot?29469745');
    src:
        url('../font/icons/icons.eot?29469745#iefix') format('embedded-opentype'),
        url('../font/icons/icons.woff2?29469745') format('woff2'),
        url('../font/icons/icons.woff?29469745') format('woff'),
        url('../font/icons/icons.ttf?29469745') format('truetype'),
        url('../font/icons/icons.svg?29469745#icons') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^='icon-']:before,
[class*=' icon-']:before {
    font-family: 'icons';
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    text-decoration: none;
    width: 1em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-menu:before {
    content: '\f0c9';
}
.icon-search:before {
    content: '\e803';
}
.icon-comment:before {
    content: '\e800';
}
.icon-comment-empty:before {
    content: '\f0e5';
}
.icon-heart:before {
    content: '\e801';
}
.icon-heart-empty:before {
    content: '\e802';
}

/* Same styles as .btn
   Repeated here as adding them to existing .btn class
   can prevent rules for button being processed. */
input[type='file']::-webkit-file-upload-button {
    color: #fff;
    background: #295073;
    display: inline-block;
    width: min-content;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 0.1rem 0.5rem;
    line-height: 1.5;
    vertical-align: middle;
    text-transform: uppercase;
}
input[type='file']::file-selector-button {
    color: #fff;
    background: #295073;
    display: inline-block;
    width: min-content;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 0.1rem 0.5rem;
    line-height: 1.5;
    vertical-align: middle;
    text-transform: uppercase;
}

/* SOCIAL */
.social {
    font-size: 0.9rem;
    color: #575252;
    border-bottom: 1px solid #d9cdcd;
    height: 1.7rem;
    margin-bottom: 0.4rem;
    display: flex;
}

.story.social {
    border-top: 1px solid #d9cdcd;
    padding: 0.2rem 0;
    margin: 0.2rem 0 1rem 0;
}

.like-count,
.comment-count {
    flex-basis: 50%;
}

.comment-count {
    text-align: right;
}

.comments {
    padding: 1rem;
    background-color: #fff;
    box-sizing: border-box;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.comments h2 {
    margin-bottom: 1rem;
}

.comment {
    border-bottom: 1px solid #d6d6d6;
    margin-bottom: 1rem;
}

.comment img {
    height: 50px;
    width: 50px;
    float: left;
    margin-right: 1rem;
    border-radius: 50%;
}

.comment p {
    clear: both;
    margin: 2rem 0 1rem 0;
}

/***********************************/
/* 8.Other CSS styles for  website */
/***********************************/

#splash-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
}

#splash-screen img {
    max-width: 100%;
    max-height: 100%;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.support-intro {
    text-align: center;
    margin: 20px 0 30px 0;
}

/* Image delete preview */
.delete-image-preview {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
    border-radius: 6px;
}

/************************************/
/* 8.1 Admin / Delete Forms         */
/************************************/
.container.admin form.narrow.story-delete {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container.admin form.narrow.story-delete h1 {
    text-align: center;
    width: 100%;
}

.container.admin form.narrow.story-delete img {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
}

.container.admin form.narrow.story-delete p {
    text-align: center;
}

.container.admin form.narrow.story-delete .story-delete__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.container.admin form.narrow.story-delete .btn {
    width: auto;
}

/************************************/
/* 9. Terms & Privacy Policy Stiles */
/************************************/
/* Improve spacing in Terms & Privacy table of contents */
nav.toc ul > li {
    margin-bottom: 0.6rem !important;
}

nav.toc ul ul > li {
    margin-bottom: 0.45rem !important;
}

nav.toc > ul > li {
    margin-top: 0.75rem !important;
}

/* Add spacing between top-level headings and their first sub-item */
nav.toc ul > li > ul {
    margin-top: 0.5rem !important;
}

/* Reposition Google reCAPTCHA v3 badge */
.grecaptcha-badge {
    position: fixed !important;
    left: 20px !important;
    right: auto !important;
    bottom: 20px !important;
    z-index: 9999 !important;
}

/* 3 digits + room for spinner + padding */
.form-group input[type='number'].input-digit {
    width: calc(3ch + 5rem);
    min-width: calc(3ch + 5rem);
    max-width: calc(3ch + 5rem);
    padding: 0.25rem 0.5rem;
    box-sizing: border-box;
}
main.grid img.story-thumb {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
    display: block !important;
}

main.grid img.story-thumb.thumb-portrait {
    object-position: 50% 10% !important;
}

/* ===== GUIDE PAGE BASE ===== */
.guide-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

/* ===== HEADER ===== */
.guide-header {
    text-align: center;
    margin-bottom: 30px;
}

.guide-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.guide-header p {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== INTRO CARD ===== */
.guide-intro-card {
    background: #f4f8fb;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.guide-intro-card h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* ===== GRID LAYOUT ===== */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ===== CARD ===== */
.guide-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    position: relative;
}

/* subtle hover effect */
.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* ===== CARD TITLE ===== */
.guide-card h2 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: #1f2937;
}

/* ===== SUBTITLE ===== */
.guide-card-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 12px;
}

/* ===== TEXT ===== */
.guide-card p {
    margin-bottom: 12px;
    color: #444;
}

/* ===== HEADINGS INSIDE CARD ===== */
.guide-card h3 {
    font-size: 0.95rem;
    margin-top: 15px;
    margin-bottom: 6px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== LISTS ===== */
.guide-card ul,
.guide-card ol {
    padding-left: 18px;
    margin-bottom: 10px;
}

.guide-card li {
    margin-bottom: 6px;
}

/* ===== STEP NUMBER BADGE ===== */
.guide-card::before {
    content: attr(id);
    display: none; /* turn on if you want numbered cards */
}

/* ===== OPTIONAL: HIGHLIGHT "TRY THIS" ===== */
.guide-card ol {
    background: #f9fafb;
    border-left: 3px solid #60a5fa;
    padding: 10px 15px;
    border-radius: 6px;
}

/* ===== LINKS ===== */
.guide-card a {
    color: #2563eb;
    text-decoration: none;
}

.guide-card a:hover {
    text-decoration: underline;
}
.guide-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .guide-header h1 {
        font-size: 1.5rem;
    }

    .guide-card {
        padding: 16px;
    }
}
/******************************************/
/*  TFOL Specials                         */
/******************************************/
/* Story Delete: escape admin grid layout */
.container.admin form.narrow.story-delete {
    grid-column: 1 / -1;
}

/* ===== Splash hard-lock (KEEP AT END OF FILE) ===== */
html.splash-active {
    overflow: hidden !important;
    height: 100% !important;
}

html.splash-active body,
body.splash-active {
    position: fixed !important;
    inset: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}
/* ===== Admin Story Delete: hard reset to a single column ===== */
./* ===== Admin Story Delete: force a single centered column ===== */

/* If the admin layout is a grid, make THIS form span full width */
#content.container.admin form.narrow.story-delete {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: 100%;
}

/* One inner column that we control */
main#content.container.admin form.narrow.story-delete .story-delete__inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* Ensure anything inside doesn’t get placed into “two columns” */
main#content.container.admin form.narrow.story-delete .story-delete__inner > * {
    width: 100%;
}

/* Image centered */
main#content.container.admin form.narrow.story-delete .story-delete__inner img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

/* Buttons centered and not stretched */
main#content.container.admin form.narrow.story-delete .story-delete__actions {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    width: 100%;
    margin-top: 1rem;
}

main#content.container.admin form.narrow.story-delete .story-delete__actions .btn,
main#content.container.admin form.narrow.story-delete .story-delete__actions input[type='submit'] {
    width: auto !important;
    display: inline-block !important;
}
/* Keep text from riding up over image */
#content.container.admin form.narrow.story-delete .story-delete__inner img {
    margin-bottom: 1.25rem !important;
}

#content.container.admin form.narrow.story-delete .story-delete__inner p {
    margin-top: 0 !important;
    max-width: 520px; /* optional: keeps the text block tidy */
}
/* Match button sizing */
#content.container.admin form.narrow.story-delete .story-delete__actions .btn,
#content.container.admin form.narrow.story-delete .story-delete__actions input[type='submit'] {
    padding: 0.6rem 1.1rem !important; /* tweak if needed */
    line-height: 1.1 !important;
    height: 44px !important; /* guarantees same height */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Reduce image size on admin confirm/delete pages */
#content.container.admin form.narrow.story-delete img {
    max-width: 70%;
    height: auto;
}
