<?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_de78c216-3f30-44d0-8837-6c5a62c2652b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-12</startDate>
            <endDate>2025-11-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_de78c216-3f30-44d0-8837-6c5a62c2652b"
      id="F_dee8a2a5-cf36-47f6-8161-33126a53f268">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_de78c216-3f30-44d0-8837-6c5a62c2652b"
      id="F_78a17741-3e1e-4f83-b643-eedfd51b4eb2">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_de78c216-3f30-44d0-8837-6c5a62c2652b"
      id="F_dd84403b-7c80-4de8-9d76-bf15b313ea6b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_de78c216-3f30-44d0-8837-6c5a62c2652b"
      id="F_531d2eb6-5462-4d0a-8480-16fd80916254">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_de78c216-3f30-44d0-8837-6c5a62c2652b"
      id="F_ec9db121-575e-41cd-b9d7-fb1379f2a9b4">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_de78c216-3f30-44d0-8837-6c5a62c2652b"
      id="F_bba13968-f599-4e5e-a48b-d9a5e4d96e7e">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_de78c216-3f30-44d0-8837-6c5a62c2652b"
      id="F_a0728c25-b1e5-45c9-81ab-a569d97cc687">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_de78c216-3f30-44d0-8837-6c5a62c2652b"
      id="F_ca6f1881-b01a-4eff-bca9-5b2e419e0bdd">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_de78c216-3f30-44d0-8837-6c5a62c2652b"
      id="F_722a697a-4a59-4779-a8b8-378ebfc1e91e">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_de78c216-3f30-44d0-8837-6c5a62c2652b"
      id="F_0ef1f862-a6d6-49ad-8574-d482457293f5">&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;547,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_de78c216-3f30-44d0-8837-6c5a62c2652b"
      decimals="0"
      id="F_95ed36b9-69cd-4ae0-abe0-a0a0e369bf8b"
      unitRef="U_USD">547000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
