<?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_0ee271aa-e05c-4e2f-8730-f7647a637007">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-18</startDate>
            <endDate>2026-06-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_0ee271aa-e05c-4e2f-8730-f7647a637007"
      id="F_47547f02-a131-420f-9dc5-6f5e28479ac0">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_0ee271aa-e05c-4e2f-8730-f7647a637007"
      id="F_528a6626-ac73-42fc-8ab9-1fa6fb9534a4">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0ee271aa-e05c-4e2f-8730-f7647a637007"
      id="F_380dfe11-1938-46ac-87a4-f432b4eae0f5">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0ee271aa-e05c-4e2f-8730-f7647a637007"
      id="F_fddf3ede-13d2-45da-a856-5928269f3a08">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0ee271aa-e05c-4e2f-8730-f7647a637007"
      id="F_0f7b521b-fe1e-46c7-a64c-5e810140725a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_0ee271aa-e05c-4e2f-8730-f7647a637007"
      id="F_e4057527-5084-46e8-85bd-5d31e47e41f2">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_0ee271aa-e05c-4e2f-8730-f7647a637007"
      id="F_f8493dc4-6bde-4165-a033-26a34b3677d3">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_0ee271aa-e05c-4e2f-8730-f7647a637007"
      id="F_3c97985f-c6fc-43ba-9512-2d56637f27a6">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_0ee271aa-e05c-4e2f-8730-f7647a637007"
      id="F_642fc7be-876d-4342-ba12-d7d1173d9255">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_0ee271aa-e05c-4e2f-8730-f7647a637007"
      id="F_194328ed-9cf9-40cd-96b8-2df63a4963c7">&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;1,000,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_0ee271aa-e05c-4e2f-8730-f7647a637007"
      decimals="-6"
      id="F_492b27a7-c74b-4b41-9afe-00b90e9deaaa"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
