<?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_243cbaba-cde1-4a54-965d-396092f601aa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_243cbaba-cde1-4a54-965d-396092f601aa"
      id="F_f676f163-9fd3-45ce-9ae0-73f8c8be5e7c">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_243cbaba-cde1-4a54-965d-396092f601aa"
      id="F_17fbd7fc-8437-401b-857c-ea31e7df7853">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_243cbaba-cde1-4a54-965d-396092f601aa"
      id="F_62d76ea3-8464-4695-9084-89c9bf729d4c">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_243cbaba-cde1-4a54-965d-396092f601aa"
      id="F_fdf63c60-c4c5-4ab4-b094-dd0142c5532f">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_243cbaba-cde1-4a54-965d-396092f601aa"
      id="F_42ad77c4-6137-4909-9f56-f041a312c32c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_243cbaba-cde1-4a54-965d-396092f601aa"
      id="F_f2016cf3-32f6-402e-a8bc-88e1d2c0bcf1">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_243cbaba-cde1-4a54-965d-396092f601aa"
      id="F_f2aaa688-bafb-482c-8b1b-9c2c53125346">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_243cbaba-cde1-4a54-965d-396092f601aa"
      id="F_948f5126-019d-43b3-814f-79b9731e3888">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_243cbaba-cde1-4a54-965d-396092f601aa"
      id="F_b2cdc58b-c2c2-4761-8c8c-655365e4b522">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_243cbaba-cde1-4a54-965d-396092f601aa"
      id="F_29b23d80-9e30-43cb-9c57-3e212b9a809e">&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;4,121,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_243cbaba-cde1-4a54-965d-396092f601aa"
      decimals="-3"
      id="F_c6da7cd6-9557-45a1-a19c-87da6a7f949b"
      unitRef="U_USD">4121000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
