<?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_2e655878-fee7-4ff1-81b1-02a2803da4d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-12</startDate>
            <endDate>2026-06-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      id="F_28b118e2-3a40-498b-8b17-db1623f1f88d">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      id="F_fb8a376b-154d-4ac2-8942-8feb61fdc7d3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      id="F_67c9fcec-d937-43f4-bdef-e49f0386316f">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      id="F_95c2be14-63c1-4adb-b9aa-b8589f41aa15">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      id="F_6f2ca3df-9c68-4c2c-9030-d6acc57fcbbb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      id="F_50fbd165-7caa-48af-a473-6ab83737dcd0">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      id="F_d5e29475-1aba-4f74-844e-40ec99e76990">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      id="F_8d67ec84-1d42-451b-b201-63ec96d65eb1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      id="F_52d8eabd-5e85-455d-adc3-0f438c0071ce">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      id="F_ec29fb2a-3001-400a-b97e-9702a4c2de23">&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;576,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_2e655878-fee7-4ff1-81b1-02a2803da4d5"
      decimals="-3"
      id="F_6886c9ca-d4bf-410c-8776-e3cc8f7b8383"
      unitRef="U_USD">576000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
