<?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_10347fb6-483e-4d2e-b259-b7bb27f4be0a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-28</startDate>
            <endDate>2026-08-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      id="F_d58fba6f-546c-4888-99ca-8dac9b2743eb">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      id="F_16524036-7cd0-4e84-94b0-7f2744a2c34c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      id="F_8853f3d4-b5f6-46ae-9bd4-9c3e5be020a7">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      id="F_4f17fee2-f9ea-4821-9b25-664687da8067">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      id="F_998114d2-f3de-44dd-9312-b717f0d52e11">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      id="F_16179fc8-de7e-490b-8d04-7e9badd1185a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      id="F_70649169-e407-4ae6-8cb1-ca04e8f1311e">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      id="F_3250a8da-418a-400e-810c-197a618af7cf">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      id="F_5e5cf831-bb95-47b2-9987-12e497a4e210">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      id="F_ffec4096-37e7-4ef5-84b2-af1fdc976827">&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;8,000,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_10347fb6-483e-4d2e-b259-b7bb27f4be0a"
      decimals="-6"
      id="F_6dadb5b3-45b3-4daa-a40a-fd4045027a65"
      unitRef="U_USD">8000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
