<?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_8e0b04de-4ff8-41a2-927a-d786c4130cf2">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      id="F_0f51bede-3ca1-4c3c-8b18-c94434c97d5c">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      id="F_dd8ecef3-8e9a-4bd7-87cc-ec636d6aafbb">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      id="F_2912c411-5698-4388-ad8e-a4468e0f185b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      id="F_c02dffb8-96c2-435e-ab87-8e1cafd29e10">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      id="F_0a6c1a45-85c9-4c35-b91f-4d4f09860941">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      id="F_76a5bfb3-f050-41a1-af60-307657316569">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      id="F_3cbc37c9-bf6e-4484-8b42-3129842751ae">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      id="F_fb8915b1-8911-432e-931b-44344e33a7bd">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      id="F_7257c991-5b85-4fdd-88d9-d2533bf909ef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      id="F_60cf3236-7536-45f8-8965-00f92223d4df">&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,960,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_8e0b04de-4ff8-41a2-927a-d786c4130cf2"
      decimals="-3"
      id="F_c981b043-f3bd-4ea6-9623-20be90b52244"
      unitRef="U_USD">2960000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
