<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_df53d946-2e5a-413b-bdce-b6383f3eccb8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-11</startDate>
            <endDate>2026-08-11</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      id="F_53ddf2f3-df82-43cf-8f07-b5e94f0aecc6">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      id="F_99146dda-34e0-42af-ad68-9d913b241067">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      id="F_8635b6c1-8b36-492d-8fad-9cd7705937dc">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      id="F_af825922-be82-449d-bf97-3cc258cf9908">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      id="F_b285fc1d-b52f-4cff-b987-f3cced23fc98">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      id="F_9e9f2ae0-c267-4dcc-9b22-95267de86bdb">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      id="F_3d4fc449-04b3-4daf-8112-b7adeef56e97">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      id="F_b855a04b-76bb-423a-9026-13b9e818d92a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      id="F_b2b1e2c9-c661-4800-8662-9c6e7e442955">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      id="F_e8addfaf-965e-47be-a966-6adcbb60246a">&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,712,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_df53d946-2e5a-413b-bdce-b6383f3eccb8"
      decimals="-3"
      id="F_51f922c0-7109-4868-8e96-0b14745a393b"
      unitRef="U_USD">1712000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
