<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-28</startDate>
            <endDate>2026-04-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      id="F_b8eb7b53-eca3-4cd6-aec2-85868eca3f64">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      id="F_9c8e4fde-8430-4fb5-89ee-b92efa29657b">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      id="F_1f5e9c5f-b2a0-400f-af84-862386471b00">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      id="F_b693adb9-0885-4c15-9a3e-f2d7cad92d5b">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      id="F_4a3c25e4-4c41-4384-8ff2-b48b368f230b">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      id="F_62443d99-2b7d-4e22-a5fe-5919648ebaf8">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      id="F_d2d33223-bbe6-4188-b9cf-6d5aed2b3f22">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      id="F_d9faac27-acb8-44d1-a18a-60592310737c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      id="F_1825ad85-0277-4e45-b83e-daa71524236e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      id="F_d9b65c7f-db04-4419-8b79-3631dbfe5115">&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;560,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_9a8f8143-dcd2-4ef2-b17c-272abd7cc99c"
      decimals="0"
      id="F_9e62ecdb-3024-4b6b-897c-3437c11590b3"
      unitRef="U_USD">560000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
