<?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_3d45279f-5154-48a3-ba48-51f77d5152d2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-10-30</startDate>
            <endDate>2025-10-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_3d45279f-5154-48a3-ba48-51f77d5152d2"
      id="F_82d14a5f-e4ae-4f1a-be3b-e86586ab4e4c">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_3d45279f-5154-48a3-ba48-51f77d5152d2"
      id="F_21e180ce-568c-4d80-9598-5f38d4ffb8e3">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3d45279f-5154-48a3-ba48-51f77d5152d2"
      id="F_ec59c8a5-690e-4731-a1ca-80973578d7bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_3d45279f-5154-48a3-ba48-51f77d5152d2"
      id="F_6c27f8ae-43c6-4ace-8506-2e5f9e6f37e4">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_3d45279f-5154-48a3-ba48-51f77d5152d2"
      id="F_c2844ba7-23b8-4d6c-a37b-f592bbfcda0a">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_3d45279f-5154-48a3-ba48-51f77d5152d2"
      id="F_0dcd2651-4fcf-4a66-8d18-1d0c41700aa2">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3d45279f-5154-48a3-ba48-51f77d5152d2"
      id="F_db6e1eed-cd8f-4f54-8a4f-2273c11b44fc">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_3d45279f-5154-48a3-ba48-51f77d5152d2"
      id="F_8258e90b-da4e-4375-8ea6-36883ce69f6d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_3d45279f-5154-48a3-ba48-51f77d5152d2"
      id="F_b460088c-6a0b-4017-893b-2d1c4e216b10">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_3d45279f-5154-48a3-ba48-51f77d5152d2"
      id="F_6e701e7a-ad28-4f2b-877e-87623cf827e8">&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;1,513,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_3d45279f-5154-48a3-ba48-51f77d5152d2"
      decimals="0"
      id="F_26e0c49d-d4ee-4497-ad5b-761b08cebb1c"
      unitRef="U_USD">1513000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
