<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>109</ContextCount>
  <ElementCount>95</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>16</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>5</UnitCount>
  <MyReports>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>1001 - Document - Cover</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/Cover</Role>
      <ShortName>Cover</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1002 - Statement - Statements of Net Assets Available For Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/StatementsOfNetAssetsAvailableForBenefits</Role>
      <ShortName>Statements of Net Assets Available For Benefits</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1003 - Statement - Statement of Changes in Net Assets Available for Benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/StatementOfChangesInNetAssetsAvailableForBenefits</Role>
      <ShortName>Statement of Changes in Net Assets Available for Benefits</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1004 - Disclosure - Description of the Plan</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/DescriptionOfThePlan</Role>
      <ShortName>Description of the Plan</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1005 - Disclosure - Accounting Policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/AccountingPolicies</Role>
      <ShortName>Accounting Policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1006 - Disclosure - Fair Value Measurements and Investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/FairValueMeasurementsAndInvestments</Role>
      <ShortName>Fair Value Measurements and Investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>1007 - Disclosure - Income Tax Status</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/IncomeTaxStatus</Role>
      <ShortName>Income Tax Status</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>1008 - Disclosure - Transactions with Parties-In-Interest</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/TransactionsWithPartiesInInterest</Role>
      <ShortName>Transactions with Parties-In-Interest</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>1009 - Disclosure - Plan Termination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/PlanTermination</Role>
      <ShortName>Plan Termination</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>1010 - Disclosure - Reconciliation of Financial Statements to Form 5500</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/ReconciliationOfFinancialStatementsToForm5500</Role>
      <ShortName>Reconciliation of Financial Statements to Form 5500</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>1011 - Disclosure - Schedule H, Line 4i- Schedule of Assets (Held at End of Year)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/ScheduleHLine4IScheduleOfAssetsHeldAtEndOfYear</Role>
      <ShortName>Schedule H, Line 4i- Schedule of Assets (Held at End of Year)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>1012 - Disclosure - Accounting Policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/AccountingPoliciesPolicies</Role>
      <ShortName>Accounting Policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <ParentRole>http://www.graymedia.com/role/AccountingPolicies</ParentRole>
      <Position>12</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>1013 - Disclosure - Fair Value Measurements and Investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/FairValueMeasurementsAndInvestmentsTables</Role>
      <ShortName>Fair Value Measurements and Investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.graymedia.com/role/FairValueMeasurementsAndInvestments</ParentRole>
      <Position>13</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>1014 - Disclosure - Reconciliation of Financial Statements to Form 5500 (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/ReconciliationOfFinancialStatementsToForm5500Tables</Role>
      <ShortName>Reconciliation of Financial Statements to Form 5500 (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.graymedia.com/role/ReconciliationOfFinancialStatementsToForm5500</ParentRole>
      <Position>14</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>1015 - Disclosure - Description of the Plan - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/DescriptionOfThePlanAdditionalInformationDetail</Role>
      <ShortName>Description of the Plan - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>1016 - Disclosure - Fair Value Measurements and Investments - Summary of the Plan's Assets at Fair Value (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/FairValueMeasurementsAndInvestmentsSummaryOfThePlansAssetsAtFairValueDetail</Role>
      <ShortName>Fair Value Measurements and Investments - Summary of the Plan's Assets at Fair Value (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>1017 - Disclosure - Fair Value Measurements and Investments - Summary of Employee Benefit Plan Investment At NAV  (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/FairValueMeasurementsAndInvestmentsSummaryOfEmployeeBenefitPlanInvestmentAtNavDetails</Role>
      <ShortName>Fair Value Measurements and Investments - Summary of Employee Benefit Plan Investment At NAV  (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>1018 - Disclosure - Income Tax Status - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/IncomeTaxStatusAdditionalInformationDetail</Role>
      <ShortName>Income Tax Status - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>1019 - Disclosure - Reconciliation of Financial Statements to Form 5500 - Summary of Reconciliation of Net Assets Available for Benefits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/ReconciliationOfFinancialStatementsToForm5500SummaryOfReconciliationOfNetAssetsAvailableForBenefitsDetail</Role>
      <ShortName>Reconciliation of Financial Statements to Form 5500 - Summary of Reconciliation of Net Assets Available for Benefits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>1020 - Disclosure - Reconciliation of Financial Statements to Form 5500 - Summary of Reconciliation of Investments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/ReconciliationOfFinancialStatementsToForm5500SummaryOfReconciliationOfInvestmentsDetail</Role>
      <ShortName>Reconciliation of Financial Statements to Form 5500 - Summary of Reconciliation of Investments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>1021 - Disclosure - Reconciliation of Financial Statements to Form 5500 - Summary of Reconciliation of the Increase In Net Assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/ReconciliationOfFinancialStatementsToForm5500SummaryOfReconciliationOfTheIncreaseInNetAssetsDetail</Role>
      <ShortName>Reconciliation of Financial Statements to Form 5500 - Summary of Reconciliation of the Increase In Net Assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="d220134d11k.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>1022 - Disclosure - Schedule&amp;#160;H, Line 4i - Schedule of Assets (Held at End of Year) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.graymedia.com/role/ScheduleHLine4IScheduleOfAssetsHeldAtEndOfYearDetail</Role>
      <ShortName>Schedule&amp;#160;H, Line 4i - Schedule of Assets (Held at End of Year) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="11-K" isDefinitelyFs="true" isUsgaap="true" original="d220134d11k.htm">d220134d11k.htm</File>
    <File>gtn-20251231.xsd</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="285">http://fasb.org/us-gaap-ebp/2025</BaseTaxonomy>
    <BaseTaxonomy items="13">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
