/*
Theme Name:   Philosophy On Tap
Description:  Pub-toned child of Twenty Twenty-Five for PhilosophyOnTap.org.
Template:     twentytwentyfive
Version:      1.1.0
Text Domain:  philosophyontap
*/

/* Title and menu sit on the barrel photo; keep them legible on its bright brass */
.pot-header .wp-block-site-title a,
.pot-header .wp-block-navigation a { text-shadow: 0 1px 6px rgba(0,0,0,.75); }
.pot-header .wp-block-site-title a { text-decoration: none; border-bottom: 2px solid currentColor; }

/* Post cards on the blog index */
.pot-card { background: var(--wp--preset--color--accent-2); }
.pot-card .wp-block-post-featured-image img { height: 100%; object-fit: cover; }

/* Fluent Forms buttons in the theme's brass rather than Fluent's blue */
.fluentform { --fluentform-primary: var(--wp--preset--color--accent-1); }
.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:not(.ff_btn_no_style) { background-color: var(--wp--preset--color--accent-1) !important; border-color: var(--wp--preset--color--accent-1) !important; color: var(--wp--preset--color--base) !important; }
.fluentform .ff-btn-submit:hover { background-color: var(--wp--preset--color--contrast) !important; border-color: var(--wp--preset--color--contrast) !important; }

/* Portrait images (book covers) sit whole inside the card's image box instead of being cropped */
.pot-card .wp-block-post-featured-image img.is-portrait { object-fit: contain !important; background: var(--wp--preset--color--accent-5); padding: var(--wp--preset--spacing--20) 0; box-sizing: border-box; }

/* Comments: members only, so keep the form plain and readable on the dark background */
.wp-block-post-comments-form input[type="text"], .wp-block-post-comments-form input[type="email"], .wp-block-post-comments-form textarea { background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--accent-6); }
.wp-block-comment-author-name a { text-decoration: none; }

/* Sign-in / join modal (pot-accounts mu-plugin) */
body.pot-modal-open { overflow: hidden; }
.pot-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; }
.pot-modal[hidden] { display: none; }
.pot-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.pot-modal__box { position: relative; width: min(92vw, 420px); max-height: 90vh; overflow: auto; padding: 2rem; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 4px; background: var(--wp--preset--color--accent-5); color: var(--wp--preset--color--contrast); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.pot-modal__x { position: absolute; top: .5rem; right: .75rem; background: none; border: 0; color: var(--wp--preset--color--accent-4); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pot-modal__title { font-family: var(--wp--preset--font-family--oswald); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; font-size: 1.5rem; margin: 0 0 1rem; }
.pot-modal__tabs { display: flex; gap: 1.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.pot-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: .4rem 0; color: var(--wp--preset--color--accent-4); font-family: var(--wp--preset--font-family--oswald); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.pot-tab.is-active { color: var(--wp--preset--color--contrast); border-bottom-color: var(--wp--preset--color--accent-1); }
.pot-panel { display: none; gap: .9rem; }
.pot-panel label { display: grid; gap: .3rem; font-size: .9rem; color: var(--wp--preset--color--accent-4); }
.pot-panel input { padding: .55rem .65rem; background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--accent-6); border-radius: 3px; }
.pot-btn { padding: .6rem 1rem; background: var(--wp--preset--color--accent-1); color: var(--wp--preset--color--base); border: 0; border-radius: 3px; font-family: var(--wp--preset--font-family--oswald); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.pot-btn:hover { background: var(--wp--preset--color--contrast); }
.pot-modal__note { margin: 0 0 1rem; padding: .6rem .75rem; border-left: 3px solid var(--wp--preset--color--accent-3); background: rgba(168,112,63,.15); font-size: .9rem; }
.pot-modal__small { margin: 0; font-size: .82rem; color: var(--wp--preset--color--accent-4); }
.pot-hp { position: absolute; left: -9999px; }
