<?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_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-24</startDate>
            <endDate>2026-06-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      id="F_f0059686-f9b8-4616-9ba6-d486160c272d">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      id="F_3d2303d2-4853-4833-997c-d2354dd14db9">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      id="F_735be330-bc04-4661-8e68-be2d91bd5670">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      id="F_937ecca0-9700-492c-a490-80aa4185ffd2">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      id="F_e10ebe7a-727d-4b90-8618-27f640e8b6a2">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      id="F_40c51186-c82d-4428-967b-37e4a52c2588">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      id="F_56437305-5f10-4cfd-935a-6dbea047fb79">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      id="F_a05a6ae3-1d3d-4309-8a87-976c4809ce25">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      id="F_5fc3c605-d474-4341-b73d-f0cedcf216d5">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      id="F_cef4c04f-9189-4c30-a0d8-39cf65ce8ad3">&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;9,396,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_487a3b6f-e44f-4b7b-96bc-2dd5c6039e0b"
      decimals="-3"
      id="F_c5d63571-1870-40b3-9a66-7434855c00b2"
      unitRef="U_USD">9396000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
