<?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_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-10-14</startDate>
            <endDate>2026-10-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      id="F_417b968b-ed18-4bab-b6e0-aea66cbef187">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      id="F_20949fec-d92f-437b-b748-1701327b200f">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      id="F_9a9546f2-0707-47e6-9fe2-ac1c3873ce72">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      id="F_fe90a187-84a1-4d0c-b7f1-f1194360dd33">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      id="F_29803ca5-d4eb-4641-b4da-3bbca8caa34a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      id="F_77c7dd3e-7c61-4a53-a0b3-95ea1ccff9ae">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      id="F_89b95bcb-4fd7-4ae6-ad8d-332f21b038c0">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      id="F_59ef6586-7db5-40be-847f-c936d27236ee">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      id="F_ef87794f-cfe2-45a8-8bd7-82745aa9fc04">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      id="F_43ef441a-83ee-41f5-a75e-8f29f5c872e4">&lt;p style="tab-size:26.66px;font-size:12pt;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;329,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_39e1f5e2-c5dd-432d-bf37-b2a4126b5aff"
      decimals="-3"
      id="F_6b7b4b61-ddc6-4830-8915-812f886eb53f"
      unitRef="U_USD">329000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
