<?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_696265f3-0860-4b9e-a5d5-3b178fb7b577">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-16</startDate>
            <endDate>2026-06-16</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      id="F_d3cbf237-d24e-480d-af72-2937adf39f3d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      id="F_407502ed-2fe2-47c4-95d5-a0a963ec9ec5">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      id="F_211fe0f9-0d59-478f-b943-d6a550779b37">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      id="F_19afb077-f4e8-4e31-bdf4-5c534fc07465">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      id="F_7b760e99-c8e3-4ded-8d66-969c9ef6ff9e">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      id="F_1a822f11-52c6-46de-9abe-8042c3d01dec">0000886982</dei:EntityCentralIndexKey>
    <ffd:OfferingTableNa
      contextRef="C_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      id="F_4e084eef-b48d-43cd-ad31-c413b2c42f28">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      id="F_59c88458-8cdf-451d-a5cb-54ac5e6e6d79">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      id="F_eec92e98-0be2-4745-8631-2f74fecaf677">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      id="F_8bd43897-2d7b-4374-8ff0-aeda2b1faedd">&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;2,623,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_696265f3-0860-4b9e-a5d5-3b178fb7b577"
      decimals="-3"
      id="F_54cd8278-d26f-4b23-a434-18ef4e4d5bf4"
      unitRef="U_USD">2623000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
