<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_ef95a130-c226-43fd-b5bc-91cd44415d17">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-27</startDate>
            <endDate>2025-12-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      id="F_f1a0b970-f991-4cbe-bc21-0451720a92d8">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      id="F_397b8dda-ee52-464e-bb85-72db943a4d66">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      id="F_3fcdd009-4400-4aec-902d-ccc3344761f0">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      id="F_7922a11e-b9eb-4c77-9eb6-f7af42043756">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      id="F_ed6952fb-2e33-4945-b999-5d6d98812ef0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      id="F_ec54f247-1a80-4ed2-b8f4-462126b6438b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      id="F_79d746d7-83e2-44f1-a088-e8f3906d3525">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      id="F_e60336a7-2024-45a8-b9d8-b1a0bc5f2627">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      id="F_fbe8be8d-12bc-412b-813d-c05cc1ecaf32">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      id="F_3e91630f-5bde-431b-9045-1740b54481db">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;6,811,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_ef95a130-c226-43fd-b5bc-91cd44415d17"
      decimals="0"
      id="F_506eb81f-fa98-4d15-a94b-234ee1d4f91a"
      unitRef="U_USD">6811000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
