<?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_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-12-04</startDate>
            <endDate>2025-12-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      id="F_b9a561aa-e485-494a-b87b-41090594f2ad">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      id="F_8a306410-4307-491d-aa25-b46ac275867e">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      id="F_f85e9cad-00a5-4328-ac05-090d4d245307">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      id="F_e98b85aa-929e-4c4c-8bfc-26fe23b1573f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      id="F_4a7d205b-50fe-4ec5-b30e-c8e6044a55b9">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      id="F_8b0b155c-beb1-44c3-8ec6-97ed0279b4ed">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      id="F_4a5d03f3-2d5a-430e-995d-43e8066b51f5">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      id="F_b0ec73b8-2282-4f41-b3fa-eec45cb364b5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      id="F_b2b45abf-4776-47bb-a87e-33b5067f94ad">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      id="F_dae457e5-ae0f-4e9f-9a4f-638baaaebf56">&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;500,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_7b21f5fb-9f58-4d3f-b017-9c1eb73afe4b"
      decimals="0"
      id="F_d639a696-474f-41f2-9b93-06ae2a33787f"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
