/*
Theme Name: Tamil Times News
Theme URI: https://example.com
Author: Custom
Author URI: https://example.com
Description: பாரம்பரிய அச்சு நாளிதழ் பாணியில் (broadsheet newspaper) வடிவமைக்கப்பட்ட தமிழ் செய்தி வெப்சைட் தீம். Multi-column front page, masthead, மற்றும் classic serif typography கொண்டது.
Version: 1.3
Requires at least: 5.8
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tamil-times-news
Tags: news, blog, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   1. GENERAL / RESET
   ========================================================================== */

* {
    box-sizing: border-box;
}

:root {
    --tt-black: #1a1a1a;
    --tt-ink: #222222;
    --tt-grey: #4a4a4a;
    --tt-light-grey: #8a8a8a;
    --tt-line: #1a1a1a;
    --tt-hair-line: #cfcfcf;
    --tt-paper: #fdfcf8;
    --tt-red: #7a1c1c;
    --tt-max-width: 1200px;
    --tt-serif: Georgia, "Noto Serif Tamil", "Tiro Tamil", "Times New Roman", serif;
    --tt-headline: "Playfair Display", "Noto Serif Tamil", Georgia, serif;
    --tt-sans: "Noto Sans Tamil", Arial, Helvetica, sans-serif;
    --tt-masthead-font: "UnifrakturMaguntia", "Noto Serif Tamil", var(--tt-headline);
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: #e9e7e0;
    color: var(--tt-ink);
    font-family: var(--tt-serif);
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    padding: 0;
}

body.tt-wrap-bg {
    background: #e9e7e0;
}

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

a {
    color: var(--tt-ink);
    text-decoration: none;
}

a:hover {
    color: var(--tt-red);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tt-headline);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.4em;
    color: var(--tt-black);
}

p {
    margin: 0 0 1em;
}

ul, ol {
    padding-inline-start: 1.2em;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ==========================================================================
   2. LAYOUT CONTAINER (Paper sheet look)
   ========================================================================== */

.tt-page-shell {
    max-width: var(--tt-max-width);
    margin: 24px auto;
    background: var(--tt-paper);
    box-shadow: 0 0 0 1px #d8d6cd, 0 8px 30px rgba(0,0,0,0.15);
    padding: 0 28px 40px;
}

@media (max-width: 900px) {
    .tt-page-shell {
        margin: 0;
        padding: 0 14px 30px;
        box-shadow: none;
    }
}

/* ==========================================================================
   3. UTILITY BAR (date, weather, social)
   ========================================================================== */

.tt-utility-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--tt-sans);
    font-size: 12px;
    letter-spacing: 0.03em;
    color: var(--tt-grey);
    padding: 10px 0 8px;
    border-bottom: 1px solid var(--tt-hair-line);
    flex-wrap: wrap;
    gap: 8px;
}

.tt-utility-bar .tt-date {
    text-transform: uppercase;
}

.tt-utility-social a {
    margin-inline-start: 10px;
    font-size: 12px;
    color: var(--tt-grey);
}

/* ==========================================================================
   4. MASTHEAD (Newspaper name banner)
   ========================================================================== */

.tt-masthead {
    text-align: center;
    padding: 22px 0 10px;
    border-bottom: 4px double var(--tt-line);
    position: relative;
}

.tt-masthead-topline {
    display: flex;
    justify-content: space-between;
    font-family: var(--tt-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tt-grey);
    border-top: 1px solid var(--tt-hair-line);
    border-bottom: 1px solid var(--tt-hair-line);
    padding: 6px 2px;
    margin-bottom: 14px;
}

.tt-site-title {
    font-family: var(--tt-masthead-font);
    font-size: clamp(48px, 9vw, 92px);
    letter-spacing: 0.01em;
    margin: 0;
    font-weight: 400;
}

/* Tamil எழுத்துருக்களுக்கு Blackletter font ஆதரவு இல்லை என்பதால்,
   Tamil தலைப்புகளுக்கு தடிமனான பாரம்பரிய serif style பயன்படுத்தப்படுகிறது.
   தலைப்பு English/Latin ஆக இருந்தால் "tt-site-title--latin" class சேர்த்து
   உண்மையான Old English பாணியைப் பெறலாம் (header.php பார்க்கவும்). */
.tt-site-title--latin {
    font-family: var(--tt-masthead-font);
    font-weight: 400;
}

.tt-site-title--tamil {
    font-family: "Noto Serif Tamil", var(--tt-headline);
    font-weight: 900;
    letter-spacing: 0;
}

.tt-site-title a {
    color: var(--tt-black);
}

.tt-site-description {
    font-family: var(--tt-sans);
    font-style: italic;
    font-size: 14px;
    color: var(--tt-grey);
    margin-top: 6px;
}

.tt-masthead-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--tt-sans);
    font-size: 11px;
    color: var(--tt-grey);
    padding-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   5. PRIMARY NAVIGATION (section tabs, like a newspaper index)
   ========================================================================== */

.tt-primary-nav {
    background: var(--tt-black);
    margin: 14px 0 0;
}

.tt-primary-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.tt-primary-nav li {
    position: relative;
}

.tt-primary-nav a {
    display: block;
    color: #f2f0e8;
    font-family: var(--tt-sans);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 18px;
    border-inline-end: 1px solid rgba(255,255,255,0.15);
}

.tt-primary-nav a:hover,
.tt-primary-nav li.current-menu-item > a {
    background: var(--tt-red);
    color: #fff;
}

.tt-primary-nav .sub-menu {
    display: none;
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    background: var(--tt-black);
    min-width: 200px;
    z-index: 50;
}

.tt-primary-nav li:hover > .sub-menu {
    display: block;
}

.tt-primary-nav .sub-menu a {
    border-inline-end: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tt-mobile-toggle {
    display: none;
}

@media (max-width: 780px) {
    .tt-primary-nav ul {
        flex-direction: column;
        display: none;
    }
    .tt-primary-nav ul.tt-nav-open {
        display: flex;
    }
    .tt-primary-nav a {
        border-inline-end: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .tt-mobile-toggle {
        display: block;
        width: 100%;
        background: var(--tt-black);
        color: #fff;
        font-family: var(--tt-sans);
        text-align: center;
        padding: 10px;
        border: none;
        font-size: 14px;
        letter-spacing: 0.05em;
        cursor: pointer;
    }
}

/* ==========================================================================
   6. FRONT PAGE HERO GRID — 10 items total: 1 large main (thalaiyangam) + 9 small
   ========================================================================== */

.tt-front-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "s1 s2 main main s3"
        "s4 s5 main main s6"
        "s7 s8 s9 .    .";
    gap: 26px;
    padding: 26px 0 10px;
    border-bottom: 2px solid var(--tt-line);
}

.tt-fg-main { grid-area: main; }
.tt-fg-s1 { grid-area: s1; }
.tt-fg-s2 { grid-area: s2; }
.tt-fg-s3 { grid-area: s3; }
.tt-fg-s4 { grid-area: s4; }
.tt-fg-s5 { grid-area: s5; }
.tt-fg-s6 { grid-area: s6; }
.tt-fg-s7 { grid-area: s7; }
.tt-fg-s8 { grid-area: s8; }
.tt-fg-s9 { grid-area: s9; }

.tt-fg-item {
    border-bottom: 1px solid var(--tt-hair-line);
    padding-bottom: 14px;
}

.tt-fg-item .tt-col-headline {
    font-size: 18px;
}

.tt-fg-item .tt-excerpt {
    font-size: 13px;
}

@media (max-width: 900px) {
    .tt-front-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "s1"
            "s2"
            "s3"
            "s4"
            "s5"
            "s6"
            "s7"
            "s8"
            "s9";
    }
}

.tt-frontpage-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 26px;
    padding: 26px 0 10px;
    border-bottom: 2px solid var(--tt-line);
}

@media (max-width: 900px) {
    .tt-frontpage-grid {
        grid-template-columns: 1fr;
    }
}

.tt-col {
    padding-inline-end: 22px;
    border-inline-end: 1px solid var(--tt-hair-line);
}

.tt-col:last-child {
    border-inline-end: none;
    padding-inline-end: 0;
}

@media (max-width: 900px) {
    .tt-col {
        border-inline-end: none;
        border-bottom: 1px solid var(--tt-hair-line);
        padding-bottom: 20px;
        margin-bottom: 20px;
        padding-inline-end: 0;
    }
}

.tt-kicker {
    font-family: var(--tt-sans);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tt-red);
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.tt-col-headline {
    font-size: 24px;
    margin-bottom: 10px;
}

.tt-col-headline a {
    color: var(--tt-black);
}

.tt-byline {
    font-family: var(--tt-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--tt-grey);
    margin-bottom: 10px;
}

.tt-excerpt {
    font-size: 14.5px;
    color: var(--tt-grey);
    column-count: 1;
}

/* MAIN CENTER STORY */
.tt-main-story .tt-thumb-caption {
    font-family: var(--tt-sans);
    font-size: 11px;
    color: var(--tt-light-grey);
    font-style: italic;
    margin-top: 4px;
    text-align: center;
}

.tt-main-story .tt-headline-tag {
    text-align: center;
    font-family: var(--tt-sans);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tt-grey);
    margin-bottom: 4px;
}

.tt-main-story .tt-col-headline {
    text-align: center;
    font-size: 38px;
    margin: 4px 0 8px;
}

.tt-main-story .tt-subhead {
    text-align: center;
    font-family: var(--tt-serif);
    font-style: italic;
    font-size: 17px;
    color: var(--tt-grey);
    margin-bottom: 14px;
    padding: 0 20px;
}

.tt-main-story .tt-story-columns {
    columns: 2;
    column-gap: 26px;
    font-size: 14.5px;
}

.tt-more-link {
    font-family: var(--tt-sans);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tt-red);
    font-weight: 700;
}

/* ==========================================================================
   7. SECONDARY STORY STRIP (footer of front page grid, like sample bottom row)
   ========================================================================== */

.tt-story-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--tt-hair-line);
}

@media (max-width: 900px) {
    .tt-story-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 540px) {
    .tt-story-strip {
        grid-template-columns: 1fr;
    }
}

.tt-strip-item {
    border-inline-start: 1px solid var(--tt-hair-line);
    padding-inline-start: 18px;
}

.tt-strip-item:first-child {
    border-inline-start: none;
    padding-inline-start: 0;
}

.tt-strip-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.tt-strip-item p {
    font-size: 13px;
    color: var(--tt-grey);
    margin-bottom: 0;
}

/* ==========================================================================
   8. MAIN CONTENT AREA + SIDEBAR (inner pages / below front strip)
   ========================================================================== */

.tt-content-layout {
    display: grid;
    grid-template-columns: 2.3fr 1fr;
    gap: 40px;
    padding: 30px 0;
}

@media (max-width: 900px) {
    .tt-content-layout {
        grid-template-columns: 1fr;
    }
}

.tt-section-title {
    font-family: var(--tt-sans);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--tt-line);
    padding-bottom: 8px;
    margin-bottom: 18px;
    color: var(--tt-black);
    font-weight: 700;
}

article.tt-article-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--tt-hair-line);
}

@media (max-width: 600px) {
    article.tt-article-card {
        grid-template-columns: 1fr;
    }
}

article.tt-article-card h2 {
    font-size: 21px;
    margin-bottom: 6px;
}

article.tt-article-card .tt-excerpt {
    font-size: 14.5px;
    color: var(--tt-grey);
}

/* Single post */
.tt-single-article header.tt-single-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tt-hair-line);
}

.tt-single-header .tt-col-headline {
    font-size: 34px;
    text-align: center;
}

.tt-single-content {
    max-width: 780px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
}

.tt-single-content p:first-of-type::first-letter {
    font-family: var(--tt-headline);
    font-size: 62px;
    float: inline-start;
    line-height: 0.8;
    padding-inline-end: 8px;
    padding-top: 6px;
    font-weight: 900;
    color: var(--tt-black);
}

/* ==========================================================================
   9. SIDEBAR / WIDGETS
   ========================================================================== */

.tt-widget {
    margin-bottom: 34px;
}

.tt-widget-title {
    font-family: var(--tt-sans);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--tt-line);
    padding-bottom: 8px;
    margin-bottom: 14px;
    font-weight: 700;
}

.tt-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tt-widget li {
    padding: 9px 0;
    border-bottom: 1px solid var(--tt-hair-line);
    font-size: 14px;
}

.tt-ad-box {
    background: #efeee7;
    border: 1px dashed var(--tt-light-grey);
    text-align: center;
    font-family: var(--tt-sans);
    font-size: 12px;
    color: var(--tt-light-grey);
    padding: 40px 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   10. PAGINATION
   ========================================================================== */

.tt-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
    font-family: var(--tt-sans);
    font-size: 13px;
}

.tt-pagination a,
.tt-pagination span {
    padding: 8px 13px;
    border: 1px solid var(--tt-hair-line);
}

.tt-pagination .current {
    background: var(--tt-black);
    color: #fff;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.tt-site-footer {
    background: var(--tt-black);
    color: #d9d7cd;
    margin-top: 20px;
}

.tt-footer-inner {
    max-width: var(--tt-max-width);
    margin: 0 auto;
    padding: 40px 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    font-family: var(--tt-sans);
    font-size: 13px;
}

@media (max-width: 780px) {
    .tt-footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .tt-footer-inner {
        grid-template-columns: 1fr;
    }
}

.tt-footer-inner h4 {
    color: #fff;
    font-family: var(--tt-headline);
    font-size: 17px;
    margin-bottom: 12px;
}

.tt-footer-inner ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tt-footer-inner li {
    padding: 5px 0;
}

.tt-footer-inner a {
    color: #cfcdc2;
}

.tt-footer-bottom {
    text-align: center;
    font-family: var(--tt-sans);
    font-size: 12px;
    color: #928f83;
    padding: 16px 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ==========================================================================
   12. COMMENTS
   ========================================================================== */

.tt-comments {
    max-width: 780px;
    margin: 30px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--tt-hair-line);
}

.tt-comments .comment-list {
    list-style: none;
    padding: 0;
}

.tt-comments .comment-body {
    padding: 14px 0;
    border-bottom: 1px solid var(--tt-hair-line);
    font-size: 14px;
}

.tt-comments .comment-author {
    font-family: var(--tt-sans);
    font-weight: 700;
    font-size: 13px;
}
.tt-story-strip {
    background-color: #eaf2f8;
    padding: 24px 16px;
    border-radius: 6px;
}