<?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_11a2c811-f2f5-40e3-a915-61fcd2d1a793">
        <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:OffsetTableNa
      contextRef="C_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      id="F_83adba38-b112-4f34-a610-ecaf131a5fe2">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      id="F_b35ee36f-b905-44cf-b71a-0bb0ad33776e">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      id="F_2c2b1aef-c28f-4d74-9e55-7187f38198d5">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      id="F_bc9537e2-9cf9-4f5c-9df6-930f26f4bfc1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      id="F_a1903cbb-191c-4da6-afe7-de4e72016dc6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      id="F_ceeec5d5-3046-4ddb-b988-5aeeb33ce78e">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      id="F_0ea37e42-ff3b-4dd6-a564-f353a963c716">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      id="F_43e73918-913f-4647-9103-ff34c5fccf55">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      id="F_aaa8a994-59c6-46ef-bec1-76e765f503c5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      id="F_01585b50-fefa-4c59-b421-1a8dc7492218">&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;5,664,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_11a2c811-f2f5-40e3-a915-61fcd2d1a793"
      decimals="-3"
      id="F_5665213d-5b00-4591-8f2f-41697965ea3f"
      unitRef="U_USD">5664000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
