<?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_1b202284-e535-4c8f-9251-5426fe5a7d48">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-27</startDate>
            <endDate>2026-08-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_1b202284-e535-4c8f-9251-5426fe5a7d48"
      id="F_39139bac-0d6b-4c0d-aa9c-a8617f3bcbdb">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1b202284-e535-4c8f-9251-5426fe5a7d48"
      id="F_d87cfe2b-6019-400d-8558-b3f3045a42aa">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_1b202284-e535-4c8f-9251-5426fe5a7d48"
      id="F_73d106ad-e4a2-4b57-ac9e-2915e873847a">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_1b202284-e535-4c8f-9251-5426fe5a7d48"
      id="F_edc49668-a0a8-4924-a516-7eeb1815fc88">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_1b202284-e535-4c8f-9251-5426fe5a7d48"
      id="F_a06cb5de-75bf-4d54-b883-1ea9c802eaf3">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_1b202284-e535-4c8f-9251-5426fe5a7d48"
      id="F_372856ed-26bf-459d-be8f-75422b2e93e1">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_1b202284-e535-4c8f-9251-5426fe5a7d48"
      id="F_3efd3d83-a586-44df-b136-0985385ec9ee">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_1b202284-e535-4c8f-9251-5426fe5a7d48"
      id="F_e59d3d0c-3167-4a9f-af7e-7d13c6266101">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_1b202284-e535-4c8f-9251-5426fe5a7d48"
      id="F_93ec9e5e-eb90-48d5-bfaf-ab219a662db5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_1b202284-e535-4c8f-9251-5426fe5a7d48"
      id="F_897ac34e-8b18-4626-b1a7-428d19535727">&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;275,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_1b202284-e535-4c8f-9251-5426fe5a7d48"
      decimals="-3"
      id="F_157644d7-006e-4c11-9806-770cbdd0a900"
      unitRef="U_USD">275000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
