<?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_399bad12-15ca-4f91-8a5d-70fb73d968b4">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      id="F_13c9ed66-ad47-4b11-9924-de7f272465d7">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      id="F_e053eac8-5109-424b-9d9e-2762f0cee8c9">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      id="F_42136081-66a7-4320-ab7f-68418ec6f7d3">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      id="F_34e7e06d-ba16-45c8-b1e8-4b6c94ec0fe9">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      id="F_086b31b6-3967-44f1-b529-900c2a506625">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      id="F_01eb578c-8457-4f72-8f20-ff5c3969bf39">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      id="F_28aab937-bbb4-402e-9133-d405cd6620e6">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      id="F_8fb60b37-d043-4312-ac2f-cf21a1800439">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      id="F_1209f2ad-8e4c-419b-b2d1-9519ef91b3ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      id="F_5abfd927-e280-4fd4-ad6e-3d79c1b8ea73">&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;5,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_399bad12-15ca-4f91-8a5d-70fb73d968b4"
      decimals="-6"
      id="F_6e7f771e-6857-41d7-8c0a-efd5e638d684"
      unitRef="U_USD">5000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
